Ignore:
Timestamp:
Feb 14, 2006, 3:29:11 PM (19 years ago)
Author:
sexton
Message:

Tidying up project script for Sydney scenario

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/sydney_2006/project.py

    r2353 r2403  
    22Also includes origin for slump scenario.
    33"""
    4 
    54
    65from os import sep
     
    109#Making assumptions about the location of scenario data
    1110scenario_dir_name = 'sydney_tsunami_scenario_2006'
    12 # original 100m data
    13 #basename = 'sydney_2006_100' # get from Neil/Ingo (DEM or topo data)
    1411# revised 100m data
    1512coarsename = 'bathyland100' # get from Neil/Ingo (DEM or topo data)
    1613# revised 25m data
    17 #finename = 'bathyland25' # get from Neil/Ingo (DEM or topo data)
    18 #finename = 'bathyland100' # get from Neil/Ingo (DEM or topo data)
    1914finename = 'bathy_dem25' # get from Neil/Ingo (DEM or topo data) Wed 25 Jan
    2015
     
    2419northingmin = 6246250
    2520northingmax = 6264100
    26 #northingmax = 6280100
    2721
    28 # creating easting and northing max and min for export viz purposes
    29 #eminviz = 332000
    30 #emaxviz = 350000
    31 #nminviz = 6231000
    32 #nmaxviz = 6283000
    33 
    34 # version2
     22# creating easting and northing max and min for export viz purposes
    3523eminviz = 318000
    3624emaxviz = 351000
    3725nminviz = 6231000
    3826nmaxviz = 6283000
    39 # for harbour region
    40 #nminviz = 6248000
    41 #nmaxvix = 6270000
    42 # for botany bay region
    43 #nmaxviz = 6248000
    44 #nminvix = 6283000
    4527
    46 basename = 'slump_ole'
     28basename = 'slump'
    4729
    4830if sys.platform == 'win32':
     
    5638datadir = home+sep+scenario_dir_name+sep+'topographies'+sep
    5739outputdir = home+sep+scenario_dir_name+sep+'output'+sep
    58 #boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep
    5940
    6041meshname = meshdir + basename
     
    6243finedemname = datadir + finename
    6344combineddemname = datadir + 'sydneytopo'
    64 #boundaryname = boundarydir + boundary_basename
    6545outputname = outputdir + basename  #Used by post processing
    66 #newoutputname = outputdir+'Combined Data v1'+sep+'d400'+sep+basename
    6746gauge_filename = outputdir + 'sydney_gauges.xya'
    6847gauge_outname = outputdir + 'gauges_max_output.xya'
    6948
    7049#Georeferencing
    71 #from pyvolution.coordinate_transforms.redfearn import degminsec2decimal_degrees
    7250from coordinate_transforms.redfearn import degminsec2decimal_degrees
    7351
    74 #Origin of existing dem (FIXME: Temporary measure)
    75 #x0_origin = 314036 #original 100m data
    76 #y0_origin = 6224951
    77 #refzone = 56
    78 #x0_origin = 314036.58727982 #revised 100m and 25m data
    79 #y0_origin = 6224951.2960092
    80 #mesh_origin = (refzone, x0_origin, y0_origin)  # input from Neil's data
    81 
    8252# define clipping polygon
    83 south = degminsec2decimal_degrees(-34,05,0)
    84 north = degminsec2decimal_degrees(-33,33,0)
    85 west = degminsec2decimal_degrees(151,1,0)
    86 east = degminsec2decimal_degrees(151,30,0)
    87 p0 = [south, west]
    88 p1 = [south, east]
    89 p2 = [north, east]
    90 p3 = [north, west]
    91    
    92 polygonall = [p0, p1, p2, p3]
    93 
    9453dsouth = degminsec2decimal_degrees(-34,05,0)
    9554dnorth = degminsec2decimal_degrees(-33,33,0)
     
    11372dp8 = [dnorth, dwest]
    11473   
    115 #diffpolygonall = [dp0, dp1, dp2, dp3, dp4, dp5, dp6, dp7]
    11674diffpolygonall = [dp0, dp1, dp2, dp3, dp4, dp5, dp6, dp7]
    117 # to put chunk back in
    118 #diffpolygonall = [dp0, dp1, dp2, dp3, dp4, dp8]
    11975
    120 #Interior regions - the Harbour - take 2
     76#Interior regions - the Harbour
    12177harbour_1x = degminsec2decimal_degrees(-33,51,0)
    12278harbour_1y = degminsec2decimal_degrees(151,2,30)
     
    12985harbour_3x = degminsec2decimal_degrees(-33,47,0)
    13086harbour_3y = degminsec2decimal_degrees(151,20,30)
    131 #harbour_4x = degminsec2decimal_degrees(-33,48,0)
    13287harbour_4x = degminsec2decimal_degrees(-33,47,50)
    13388harbour_4y = degminsec2decimal_degrees(151,8,10)
    134 #harbour_5x = degminsec2decimal_degrees(-33,49,0)
    13589harbour_5x = degminsec2decimal_degrees(-33,48,10)
    13690harbour_5y = degminsec2decimal_degrees(151,8,0)
     
    13993harbour_7x = degminsec2decimal_degrees(-33,34,30)
    14094harbour_7y = degminsec2decimal_degrees(151,20,20)
    141 #harbour_8x = degminsec2decimal_degrees(-33,33,30)
    142 #harbour_8y = degminsec2decimal_degrees(151,15,0)
    14395harbour_8x = degminsec2decimal_degrees(-33,33,30)
    14496harbour_8y = degminsec2decimal_degrees(151,17,0)
    145 #harbour_9x = degminsec2decimal_degrees(-33,45,30)
    146 #harbour_9y = degminsec2decimal_degrees(151,15,0)
    14797harbour_9x = degminsec2decimal_degrees(-33,45,30)
    14898harbour_9y = degminsec2decimal_degrees(151,17,0)
     
    172122k142 = [harbour_15x, harbour_15y]
    173123
    174 #harbour_polygon_2 = [k02, k112, k122, k12, k22, k62, k72, k82, k92, k102, k32, k42, k52]
    175 #harbour_polygon_2 = [k122, k12, k22, k62, k72, k102] #worked
    176124harbour_polygon_2 = [k02, k112, k122, k12, k22, k62, k72, k82, k102, k42, k52] #worked
    177125
    178 #Interior region - Botany Bay - take 2
     126#Interior region - Botany Bay
    179127bb_1x = degminsec2decimal_degrees(-34,3,0)
    180128bb_1y = degminsec2decimal_degrees(151,2,30)
     
    210158
    211159botanybay_polygon_2 = [j92, j12, j22, j62, j82, j72, j42] # worked
    212 #botanybay_polygon_2 = [j02, j12, j22, j32, j42, j52] # worked
    213160
    214 # this section sets up source origin for slump scenario
    215 # close to harbour opening (343000,6255000)
    216 # x0 = 28964
    217 # y0 = 30049
    218 # around 10km harbour opening (353000,6255000)
    219 #x0 = 38964
    220 #y0 = 30049
    221 # around 18km across from harbour(361000,6255000)
    222 #x0 = 46964
    223 #y0 = 30049
    224161# around 42km across from harbour(385000,6255000)
    225 x0 = 28964 + 42000
    226 y0 = 30049
    227 
    228 #revised 100m and 25m data
    229 slump_origin = [x0+314036.58727982, y0+6224951.2960092] #Absolute UTM
    230 
    231 
    232 # close to botany bay opening (340000,6236000)
    233 # x0 = 25964
    234 # y0 = 11049
    235 # around 10km from botany bay opening (350000,6236000)
    236 # x0 = 35964
    237 # y0 = 11049
    238 # around 21km from botany bay opening (361000,6236000)
    239 #x0 = 46964
    240 #y0 = 11049
    241 
    242 # not used for sydney scenario, original interior regions listed though
    243 # setting up problem area for doing just around the harbour
    244 hsouth = degminsec2decimal_degrees(-33,54,0)
    245 hnorth = degminsec2decimal_degrees(-33,48,0)
    246 hwest = degminsec2decimal_degrees(151,0,0)
    247 heast = degminsec2decimal_degrees(151,30,0)
    248 
    249 hp0 = [hsouth, hwest]
    250 hp1 = [hsouth, heast]
    251 hp2 = [hnorth, heast]
    252 hp3 = [hnorth, hwest]
    253 polygon_h = [hp0, hp1, hp2, hp3]
    254 
    255 #Interior regions - the Harbour - take 1
    256 harbour_south = degminsec2decimal_degrees(-33,53,0)
    257 harbour_north = degminsec2decimal_degrees(-33,47,0)
    258 harbour_west = degminsec2decimal_degrees(151,5,0)
    259 harbour_east = degminsec2decimal_degrees(151,19,0)
    260 
    261 #harbour_south1 = degminsec2decimal_degrees(-33,53,0)
    262 #harbour_south2 = degminsec2decimal_degrees(-33,52,0)
    263 #harbour_north1 = degminsec2decimal_degrees(-33,45,0)
    264 #harbour_north2 = degminsec2decimal_degrees(-33,48,0)
    265 #harbour_west = degminsec2decimal_degrees(151,5,0)
    266 #harbour_east = degminsec2decimal_degrees(151,19,0)
    267 
    268 k0 = [harbour_south, harbour_west]
    269 k1 = [harbour_south, harbour_east]
    270 k2 = [harbour_north, harbour_east]
    271 k3 = [harbour_north, harbour_west]   
    272 
    273 harbour_polygon = [k0, k1, k2, k3]
    274 
    275 # setting up problem area for doing just around Botany Bay
    276 bsouth = degminsec2decimal_degrees(-33,56,0)
    277 bnorth = degminsec2decimal_degrees(-34,3,0)
    278 bwest = degminsec2decimal_degrees(151,0,0)
    279 beast = degminsec2decimal_degrees(151,30,0)
    280 
    281 bp0 = [bsouth, bwest]
    282 bp1 = [bsouth, beast]
    283 bp2 = [bnorth, beast]
    284 bp3 = [bnorth, bwest]
    285 polygon_bb = [bp0, bp1, bp2, bp3]
    286 
    287 #Interior region - Botany Bay - take 1
    288 botanybay_south = degminsec2decimal_degrees(-33,58,0)
    289 botanybay_north = degminsec2decimal_degrees(-34,1,0)
    290 botanybay_west = degminsec2decimal_degrees(151,5,0)
    291 botanybay_east = degminsec2decimal_degrees(151,18,0)
    292 
    293 j0 = [botanybay_south, botanybay_west]
    294 j1 = [botanybay_south, botanybay_east]
    295 j2 = [botanybay_north, botanybay_east]
    296 j3 = [botanybay_north, botanybay_west]   
    297 
    298 botanybay_polygon = [j0, j1, j2, j3]
     162#x0 = 28964 + 42000
     163#y0 = 30049
     164#slump_origin = [x0+314036.58727982, y0+6224951.2960092] #Absolute UTM
     165slump_origin = [385000.0, 6255000.0] #Absolute UTM
Note: See TracChangeset for help on using the changeset viewer.