Changeset 2487


Ignore:
Timestamp:
Mar 7, 2006, 10:33:14 AM (18 years ago)
Author:
sexton
Message:

New run_sydney file incorporating (1) reading in polygons (created by GIS guys) to create the interior regions, (2) allocating a test data set (defined in project.py) for elevation to test for the black screen of death and (3) track the volume in time (plot_integral.py is the script to plot the output)

Location:
production/sydney_2006
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • production/sydney_2006/project.py

    r2420 r2487  
    1010from pmesh.create_mesh import convert_points_from_latlon_to_utm
    1111               
    12 
    13 
    1412
    1513#Making assumptions about the location of scenario data
     
    2018finename = 'bathy_dem25' # get from Neil/Ingo (DEM or topo data) Wed 25 Jan
    2119
    22 
    23 
    2420# creating easting and northing max and min for fine data - region of interest
    2521eastingmin = 332090
     
    3430nmaxviz = 6283000
    3531
    36 basename = 'slump_TEST'
    37 basename2 = 'slump_newfriction'
     32basename = 'slump_friction04'
     33basename4 = 'slump_poly_ingo_test'
    3834
    3935if sys.platform == 'win32':
     
    4238    home = expanduser('~')
    4339   
    44 
    45 
    4640#Derive subdirectories and filenames
    4741meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
     
    4943outputdir = home+sep+scenario_dir_name+sep+'output'+sep
    5044polygondir = home+sep+scenario_dir_name+sep+'polygons'+sep
     45gaugedir = home+sep+scenario_dir_name+sep+'gauges'+sep
    5146
    5247meshname = meshdir + basename
     48meshname4 = meshdir + basename4
    5349coarsedemname = datadir + coarsename
    5450finedemname = datadir + finename
    5551combineddemname = datadir + 'sydneytopo'
    5652outputname = outputdir + basename  #Used by post processing
    57 outputname2 = outputdir + basename2  #Used by post processing
     53outputname4 = outputdir + basename4  #Used by post processing
    5854
    5955#csv file of coastline 50m epsilon belt
     
    6258#print manly_polygon
    6359
    64 gauge_filename = outputdir + 'sydney_gauges.xya'
    65 gauge_outname = outputdir + 'gauges_max_output.xya'
    66 polygonptsfile = outputdir + 'poly'
     60gauge_filename = gaugedir + 'sydney_gauges.xya'
     61gauge_outname = gaugedir + 'gauges_max_output.xya'
     62#gauge_filename = gaugedir + 'nest_gauges_Manly.xya'
     63#gauge_filename = gaugedir + 'west_of_quay_yprofile.xya'
     64#gauge_filename = gaugedir + 'GA_gauge.csv' # from Benfield
     65#gauge_outname = gaugedir + 'gauges_max_output_next.xya'
     66gaugetimeseries = gaugedir + 'gauges_time_series_Benfield'
     67polygonptsfile = polygondir + 'poly'
     68integraltimeseries = outputdir + 'integral_time_series'
    6769
    6870#Georeferencing
     
    181183np1 = [318200, 6253000]
    182184np2 = [327000, 6250500]
     185np2east = [327200, 6250500]
     186np2west = [326800, 6250500]
    183187np3 = [333000, 6249000]
    184188np4 = [342000, 6249000]
     
    186190np6 = [343000, 6256000]
    187191np7 = [344000, 6258000]
    188 np8 = [343000, 6260000]
     192np8 = [343000, 6260300]
     193#np8 = [343000, 6260000]
    189194np9 = [343000, 6264000]
    190195np10 = [345000, 6265000]
     
    216221np34 = [337000, 6256000]
    217222np35 = [338000, 6255000]
    218 np36 = [319000, 6254000]
     223np36 = [320000, 6254000]
    219224np37 = [322000, 6252000]
    220225np38 = [324000, 6253000]
     
    234239#             np31, np32, \
    235240#             np23]
    236 newpoly1 = [np2, np3, \
    237             np28, np29, np30, \
     241newpoly1 = [np28, np29, np30, \
    238242            np5, np6, np7, np8, np9, np10, \
    239243            np11, np12, np13, np14, np15, \
    240244            np27, np26, np25, np24, np17, \
    241             np18, np19, np20, np21, np31]
     245            np33, \
     246            np19, np20, np21, np22, np31, np32, \
     247            np36, np37, np38, np39, np2, np3]
     248# last two lines for second run
     249
     250north1 = [np2, np3, np30, np5, np24, np17, np33, np19, np20, np21, \
     251          np31, np32, np37, np38, np39]
     252north2 = [np8, np9, np19, np11, np12, np13, np14, np15, np27, np27, np25]
     253npinsert = [332000, 6255000]
     254parrariver = [np3, np18, npinsert, np19, np32, np36, np38, np39, np2] #first run
     255#parrariver = [np32, np36, np37, np38, np39, np2west, np31] #second run
    242256
    243257# south
     
    266280sp23 = [339000, 6236000]
    267281
    268 newpoly2 = [sp1, sp2, sp3, \
     282south1 = [sp1, sp2, sp3, \
    269283             sp16, sp17, sp18, sp19, sp20, sp21, sp22, sp23, \
    270284             sp4, sp5, sp6, sp7, sp8, sp9, sp10, \
     
    446460#slump_origin = [x0+314036.58727982, y0+6224951.2960092] #Absolute UTM
    447461slump_origin = [385000.0, 6255000.0] #Absolute UTM
     462
     463a = [340000, 6255000]
     464b = [340000, 6270000]
     465c = [318000, 6255000]
     466d = [318000, 6270000]
     467e = [316000, 6255000]
     468f = [395000, 6255000]
     469g = [355000, 6280000]
     470h = [355000, 6224000]
     471test_pts = [a, b, c, d, e, f, g, h]
     472test_elev = [1.0, 4.0, 3.0, 0.1, 5, -10.0, -20, -15]
Note: See TracChangeset for help on using the changeset viewer.