Changeset 5360


Ignore:
Timestamp:
May 23, 2008, 6:57:13 PM (16 years ago)
Author:
sexton
Message:

updates to Perth polygons and scripts by Kristy

Location:
anuga_work/production/perth
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/perth/build_perth.py

    r4147 r5360  
    3131#from anuga.pmesh.mesh_interface import create_mesh_from_regions
    3232from anuga.geospatial_data.geospatial_data import *
    33 from anuga.abstract_2d_finite_volumes.util import start_screen_catcher, copy_code_files
     33from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files
    3434
    3535# Application specific imports
     
    5555# Fine pts file to be clipped to area of interest
    5656#-------------------------------------------------------------------------------
    57 print"project.bounding_polygon",project.bounding_polygon
     57print"project.poly_all",project.poly_all
    5858print"project.combined_dir_name",project.combined_dir_name
    5959
     
    6666island_in_dir_name3 = project.island_in_dir_name3
    6767offshore_in_dir_name = project.offshore_in_dir_name
    68 offshore1_in_dir_name = project.offshore1_in_dir_name
     68
    6969
    7070onshore_dir_name = project.onshore_dir_name
     
    103103G1 = Geospatial_data(file_name = onshore_dir_name + '.pts')
    104104print'create Geospatial data2 objects from topographies'
    105 G2 = Geospatial_data(file_name = coast_in_dir_name + '.xya')
     105G2 = Geospatial_data(file_name = coast_in_dir_name + '.txt')
    106106print'create Geospatial data3 objects from topographies'
    107107G3 = Geospatial_data(file_name = island_dir_name + '.pts')
     
    113113G6 = Geospatial_data(file_name = island_dir_name3 + '.pts')
    114114print'create Geospatial data7 objects from topographies'
    115 G_off = Geospatial_data(file_name = offshore_in_dir_name + '.xya')
    116 print'create Geospatial data8 objects from topographies'
    117 G_off1 = Geospatial_data(file_name = offshore1_in_dir_name + '.xya')
     115G_off = Geospatial_data(file_name = offshore_in_dir_name + '.txt')
     116
    118117
    119118print'add all geospatial objects'
  • anuga_work/production/perth/project.py

    r5357 r5360  
    8181anuga_dir = home+state+sep+scenario+sep+'anuga'+sep
    8282
    83 topographies_in_dir = home+sep+state+sep+scenario+sep+'elevation_final'+sep+'points'+sep
     83topographies_in_dir = home+state+sep+scenario+sep+'elevation_final'+sep+'points'+sep
    8484topographies_dir = anuga_dir+'topographies'+sep
    8585#topographies_time_dir = topographies_dir+build_time+sep
     
    173173
    174174#Polygon designed by 20m contours, or 3km from the coastline
    175 poly_internal_20_3 = read_polygon(polygons_dir+'internalh20mORd3km.csv')
     175poly_internal_20_3 = read_polygon(polygons_dir+'internal_h20mORd3km.csv')
    176176res_internal_20_3 = 20000*res_factor
    177177
     
    181181
    182182#Polygon designed to incorporate coastline of rottnest
    183 poly_rottnest = read_polygon(polygons_dir+'rottnest.csv')
    184 res_rottnest = 1000*res_factor
     183poly_rottnest_ex = read_polygon(polygons_dir+'rottnest_external.csv')
     184res_rottnest_ex = 1000*res_factor
     185
     186#Polygon designed to cut out the rottnest island land.
     187poly_rottnest_in = read_polygon(polygons_dir+'rottnest_internal.csv')
     188res_rottnest_in = 20000*res_factor
    185189
    186190#Polygon designed to incorporate perth and Fremantle CBD
     
    202206                     ,[poly_garden_rockingham,res_garden_rockingham]
    203207                     ,[poly_penguin,res_penguin],[poly_geordie_bay,res_geordie_bay]
    204                      ,[poly_sorrento_gauge,res_sorrento_gauge],[poly_rottnest, res_rottnest]]
    205 
    206 boundary_tags={'back': [4], 'side': [0,3],'ocean': [1, 2]}
     208                     ,[poly_sorrento_gauge,res_sorrento_gauge],[poly_rottnest_in, res_rottnest_in]
     209                     ,[poly_rottnest_ex, res_rottnest_ex]]
     210
     211boundary_tags={'back': [0,1,2], 'side': [3,6],'ocean': [4, 5]}
    207212
    208213trigs_min = number_mesh_triangles(interior_regions, poly_all, res_poly_all)
  • anuga_work/production/perth/run_perth.py

    r5111 r5360  
    9393                             interior_regions=project.interior_regions,
    9494                             filename=project.meshes_dir_name+'.msh',
    95                              use_cache=False,
     95                             use_cache=True,
    9696                             verbose=True)
    9797    barrier()
     
    134134        domain.set_quantity('elevation',
    135135                            filename = kwargs['bathy_file'],
    136                             use_cache = True,
     136                            use_cache = False,
    137137                            verbose = True,
    138138                            alpha = kwargs['alpha'])
     
    179179        Bf = Field_boundary(kwargs['boundary_file'],
    180180                    domain, time_thinning=kwargs['time_thinning'], mean_stage=kwargs['tide'],
    181                     use_cache=True, verbose=True)
     181                    use_cache=False, verbose=True)
    182182        domain.set_boundary({'back': Br,
    183183                             'side': Bd,
Note: See TracChangeset for help on using the changeset viewer.