Changeset 5825


Ignore:
Timestamp:
Oct 8, 2008, 9:42:45 AM (16 years ago)
Author:
kristy
Message:
 
File:
1 edited

Legend:

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

    r5818 r5825  
    3838# Note, the user needs to set up the directory system accordingly
    3939state = 'western_australia'
    40 scenario_name = 'onslow'
    41 scenario = 'onslow_tsunami_scenario_2008'
     40scenario_name = 'perth'
     41scenario = 'perth_tsunami_scenario'
    4242
    4343# Model specific parameters. One or all can be changed each time the
    4444# run_scenario script is executed
    45 tide = 0                #0.6
     45tide = 0.6                #0.6
    4646#event_number = 27255   # linked to hazard map
    4747event_number = 27283
     
    8282#------------------------------------------------------------------------------
    8383
    84 # elevation data used in build_onslow.py
     84# elevation data used in build_perth.py
    8585# onshore data: format ascii grid with accompanying projection file
    86 onshore_name = 'revised_onshore_20m_dli'
     86onshore_name = 'perth_dli_ext'
    8787# island: format ascii grid with accompanying projection file
    88 island_name = 'onslow_islands_dted2'
     88island_name = 'rott_dli_ext'
     89island_name1 = 'gard_dli_ext'
     90island_name2 = 'carnac_island_dli_ext'
     91island_name3 = 'penguin_dli_ext'
    8992# coastline: format x,y,elevation (with title)
    90 coast_name = 'revised_coastline.txt'
     93coast_name = 'coastline_perthP.txt'
    9194# bathymetry: format x,y,elevation (with title)
    92 offshore_name = 'onslow_offshore_points.txt'
    93 offshore_name1 = 'ONS16FINAL.txt'
    94 offshore_name2 = 'ONS18FINAL.txt'
    95 offshore_name3 = 'ONS18FINAL.txt'
    96 offshore_name4 = 'beach_survey.txt'
     95offshore_name = 'Perth.txt'
     96offshore_name1 = 'Perth_Chart.txt'
     97offshore_name2 = 'Fremantle_north.txt'
     98offshore_name3 = 'port_swanriver.txt'
    9799
    98100# gauges - used in get_timeseries.py
    99 #gauge_name = 'onslow.csv'
    100 #gauge_name2 = 'thinned_MGA50.csv'
    101 
    102 # BOUNDING POLYGON - used in build_boundary.py and run_onslow.py respectively
     101gauge_name = 'perth.csv'
     102gauge_name2 = 'thinned_MGA50.csv'
     103
     104# BOUNDING POLYGON - used in build_boundary.py and run_perth.py respectively
    103105# NOTE: when files are put together the points must be in sequence - for ease go clockwise!
    104 # Check the run_onslow.py for boundary_tags
     106# Check the run_perth.py for boundary_tags
    105107# thinned ordering file from Hazard Map: format is index,latitude,longitude (with title)
    106108order_filename = 'thinned_boundary_ordering.csv'
     
    113115# Output filename for elevation
    114116# this is a combination of all the data (utilisied in build_boundary)
    115 combined_name ='onslow_combined_elevation'
    116 combined_smaller_name = 'onslow_combined_elevation_smaller'
     117combined_name ='perth_combined_elevation'
     118combined_smaller_name = 'perth_combined_elevation_smaller'
    117119
    118120#------------------------------------------------------------------------------
     
    135137onshore_in_dir_name = topographies_in_dir + onshore_name
    136138island_in_dir_name = topographies_in_dir + island_name
     139island_in_dir_name1 = topographies_in_dir + island_name1
     140island_in_dir_name2 = topographies_in_dir + island_name2
     141island_in_dir_name3 = topographies_in_dir + island_name3
    137142coast_in_dir_name = topographies_in_dir + coast_name
    138143offshore_in_dir_name = topographies_in_dir + offshore_name
     
    140145offshore_in_dir_name2 = topographies_in_dir + offshore_name2
    141146offshore_in_dir_name3 = topographies_in_dir + offshore_name3
    142 offshore_in_dir_name4 = topographies_in_dir + offshore_name4
    143147
    144148# where the output data sits
    145149onshore_dir_name = topographies_dir + onshore_name
    146150island_dir_name = topographies_dir + island_name
     151island_dir_name1 = topographies_dir + island_name1
     152island_dir_name2 = topographies_dir + island_name2
     153island_dir_name3 = topographies_dir + island_name3
    147154coast_dir_name = topographies_dir + coast_name
    148155offshore_dir_name = topographies_dir + offshore_name
     
    150157offshore_dir_name2 = topographies_dir + offshore_name2
    151158offshore_dir_name3 = topographies_dir + offshore_name3
    152 offshore_dir_name4 = topographies_dir + offshore_name4
    153159
    154160# where the combined elevation file sits
     
    156162combined_smaller_name_dir = topographies_dir + combined_smaller_name
    157163
    158 # where the mesh sits (this is created during the run_onslow.py)
     164# where the mesh sits (this is created during the run_perth.py)
    159165meshes_dir_name = meshes_dir + scenario_name+'.msh'
    160166
     
    162168order_filename_dir = boundaries_dir + order_filename
    163169
    164 # where the landward points of boundary extent sit (this is used within run_onslow.py)
     170# where the landward points of boundary extent sit (this is used within run_perth.py)
    165171landward_dir = boundaries_dir + landward
    166172
     
    170176
    171177# where the directory of the output filename sits
    172 output_build_time_dir = output_dir+build_time+dir_comment+sep   #used for build_onslow.py
    173 output_run_time_dir = output_dir+run_time+dir_comment+sep       #used for run_onslow.py
     178output_build_time_dir = output_dir+build_time+dir_comment+sep   #used for build_perth.py
     179output_run_time_dir = output_dir+run_time+dir_comment+sep       #used for run_perth.py
    174180output_run_time_dir_name = output_run_time_dir + scenario_name  #Used by post processing
    175181
    176182#w here the directory of the gauges sit
    177 #gauges_dir_name = gauges_dir + gauge_name       #used for get_timeseries.py
    178 #gauges_dir_name2 = gauges_dir + gauge_name2     #used for get_timeseries.py
     183gauges_dir_name = gauges_dir + gauge_name       #used for get_timeseries.py
     184gauges_dir_name2 = gauges_dir + gauge_name2     #used for get_timeseries.py
    179185
    180186#------------------------------------------------------------------------------
     
    182188#------------------------------------------------------------------------------
    183189
    184 <<<<<<< .mine
    185 #Land North, to set the initial stage/water to be offcoast only
    186 poly_mainland_N = read_polygon(polygons_dir+'initial_conditions_N.csv')
    187 =======
    188190#Land, to set the initial stage/water to be offcoast only
    189 poly_mainland = read_polygon(polygons_dir+'initial_conditions_mainland.csv')
    190 >>>>>>> .r5816
    191 
    192 <<<<<<< .mine
    193 #Land South, to set the initial stage/water to be offcoast only
    194 poly_mainland_S = read_polygon(polygons_dir+'initial_conditions_S.csv')
    195 
    196 #Rottnest, to set the initial stage/water to be offcoast only
    197 poly_island1 = read_polygon(polygons_dir+'initial_conditions_rottnest.csv')
    198 
    199 #Garden, to set the initial stage/water to be offcoast only
    200 poly_island2 = read_polygon(polygons_dir+'initial_conditions_garden.csv')
    201 
    202 =======
    203 #Ocean
    204 poly_ocean = read_polygon(polygons_dir+'initial_conditions_ocean.csv')
    205 
    206 >>>>>>> .r5816
     191poly_mainland = read_polygon(polygons_dir+'initial_condition.csv')
     192
    207193# Initial bounding polygon for data clipping
    208194poly_all = read_polygon(polygons_dir+'poly_all.csv')
    209195res_poly_all = 100000*res_factor
    210196
    211 # Area of Interest 1 (Onslow)
    212 poly_aoi1 = read_polygon(polygons_dir+'aoi.csv')
     197# Area of Interest 1 (Fremantle)
     198poly_aoi1 = read_polygon(polygons_dir+'CBD_coastal.csv')
    213199res_aoi1 = 500*res_factor
    214200
    215 # Area of Significance 1 (Onslow)
    216 poly_aos1 = read_polygon(polygons_dir+'aos.csv')
     201# Area of Interest 2 (Rockingham)
     202poly_aoi2 = read_polygon(polygons_dir+'rockingham_penguin.csv')
     203res_aoi2 = 500*res_factor
     204
     205# Area of Interest 2 (garden Island)
     206poly_aoi2a = read_polygon(polygons_dir+'garden.csv')
     207res_aoi2a= 500*res_factor
     208
     209# Area of Interest 3 (geordie bay - record of tsunami impact)
     210poly_aoi3 = read_polygon(polygons_dir+'geordie_bay.csv')
     211res_aoi3 = 500*res_factor
     212
     213# Area of Interest 4 (sorrento - record of tsunami impact)
     214poly_aoi4 = read_polygon(polygons_dir+'sorrento_gauge.csv')
     215res_aoi4 = 500*res_factor
     216
     217# Area of Significance 1 (Garden Island and sand bank infront of Rockingham)
     218poly_aos1 = read_polygon(polygons_dir+'garden_rockingham.csv')
    217219res_aos1 = 1000*res_factor
    218220
     221# Area of Significance 2 (incorporate coastline of rottnest)
     222poly_aos2 = read_polygon(polygons_dir+'rottnest_external.csv')
     223res_aos2 = 1000*res_factor
     224
     225# Refined areas
     226# Polygon designed to incorporate dredged area from Fremantle to
     227# Rockingham as the steep incline was making the elevation go to 0
     228poly_aos3 = read_polygon(polygons_dir+'DredgeArea.csv')
     229res_aos3 = 1000*res_factor
     230
    219231# Shallow water 1
    220 poly_sw1 = read_polygon(polygons_dir+'shallow_water.csv')
     232poly_sw1 = read_polygon(polygons_dir+'internal_h20mORd3km.csv')
    221233res_sw1 = 25000*res_factor
    222234
     235# Deep water (land of Rottnest, ANUGA does not do donuts!)
     236poly_dw1 = read_polygon(polygons_dir+'rottnest_internal.csv')
     237res_dw1 = 100000*res_factor
     238
    223239# Combined all regions, must check that all are included!
    224 interior_regions = [[poly_aoi1,res_aoi1],[poly_aos1,res_aos1]
    225                      ,[poly_sw1,res_sw1]]
     240interior_regions = [[poly_aoi1,res_aoi1],[poly_aoi2,res_aoi2]
     241                     ,[poly_aoi2a,res_aoi2a],[poly_aoi3,res_aoi3]
     242                     ,[poly_aoi4,res_aoi4],[poly_aos1,res_aos1]
     243                     ,[poly_aos2,res_aos2],[poly_aos3,res_aos3]
     244                     ,[poly_sw1,res_sw1], [poly_dw1,res_dw1]]
    226245
    227246   
     
    234253#------------------------------------------------------------------------------
    235254
    236 ###Geordie Bay extract ascii grid
    237 ##xminGeordie = 358000
    238 ##xmaxGeordie = 362000
    239 ##yminGeordie = 6458500
    240 ##ymaxGeordie = 6461000
    241 ##
    242 ###Sorrento extract ascii grid
    243 ##xminSorrento = 379000
    244 ##xmaxSorrento = 382500
    245 ##yminSorrento = 6477000
    246 ##ymaxSorrento = 6480000
    247 ##
    248 ###Fremantle extract ascii grid
    249 ##xminFremantle = 376000
    250 ##xmaxFremantle = 388000
    251 ##yminFremantle = 6449000
    252 ##ymaxFremantle = 6461000
    253 ##
    254 ###Rockingham extract ascii grid
    255 ##xminRockingham = 373500
    256 ##xmaxRockingham = 385500
    257 ##yminRockingham = 6424000
    258 ##ymaxRockingham = 6433000
    259 
     255#Geordie Bay extract ascii grid
     256xminGeordie = 358000
     257xmaxGeordie = 362000
     258yminGeordie = 6458500
     259ymaxGeordie = 6461000
     260
     261#Sorrento extract ascii grid
     262xminSorrento = 379000
     263xmaxSorrento = 382500
     264yminSorrento = 6477000
     265ymaxSorrento = 6480000
     266
     267#Fremantle extract ascii grid
     268xminFremantle = 376000
     269xmaxFremantle = 388000
     270yminFremantle = 6449000
     271ymaxFremantle = 6461000
     272
     273#Rockingham extract ascii grid
     274xminRockingham = 373500
     275xmaxRockingham = 385500
     276yminRockingham = 6424000
     277ymaxRockingham = 6433000
     278
Note: See TracChangeset for help on using the changeset viewer.