Changeset 2615 for production/onslow_2006/project_new.py
- Timestamp:
- Mar 28, 2006, 11:00:20 AM (19 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
production/onslow_2006/project_new.py
r2470 r2615 9 9 10 10 from pmesh.create_mesh import convert_points_from_latlon_to_utm 11 12 from coordinate_transforms.redfearn import degminsec2decimal_degrees 13 14 from time import localtime, strftime 15 16 from os import getcwd 11 17 12 18 #Making assumptions about the location of scenario data 13 19 scenario_dir_name = 'onslow_tsunami_scenario_2006' 14 20 15 16 21 # 250m data to be provided 17 22 coarsename = 'onsl_bathydem250' # get from Neil/Ingo (DEM or topo data) 18 """ 23 19 24 # 30m data to be provided 20 finename = 'onshore_30' # get from Neil/Ingo (DEM or topo data) 21 """ 25 onshore_name = 'onslow_onshore_30m_dted' # get from Neil/Ingo (DEM or topo data) 22 26 23 # clipping region for fine elevation data 24 west = 240000 25 east = 340000 26 south = 7570000 27 north = 7645000 27 offshore_name = 'onslow_offshore_points' 28 29 boundary_basename = 'SU-AU' 28 30 29 31 #swollen/ all data output 30 32 basename = 'source' 33 34 codename = 'project.py' 31 35 32 36 if sys.platform == 'win32': … … 36 40 37 41 #Derive subdirectories and filenames 42 timedir = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir 43 outputdir = home+sep+scenario_dir_name+sep+'output'+sep+timedir+sep 38 44 meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep 39 45 datadir = home+sep+scenario_dir_name+sep+'topographies'+sep 40 outputdir = home+sep+scenario_dir_name+sep+'output'+sep 46 41 47 polygondir = home+sep+scenario_dir_name+sep+'polygons'+sep 42 48 boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep 49 50 codedir = getcwd()+sep 51 52 codedirname = codedir + 'project.py' 43 53 44 54 meshname = meshdir + basename 45 55 46 56 coarsedemname = datadir + coarsename 47 """ 48 finedemname = datadir + finename 49 combineddemname = datadir + 'onslow_combined_elevation' 50 """ 57 58 onshore_dem_name = datadir + onshore_name 59 60 offshore_dem_name = datadir + offshore_name 61 62 combined_dem_name = datadir + 'onslow_combined_elevation' 51 63 52 64 outputname = outputdir + basename #Used by post processing … … 54 66 #!gauge_filename = outputdir + 'onslow_gauges.xya' 55 67 #!gauge_outname = outputdir + 'gauges_max_output.xya' 68 69 # clipping region for fine elevation data 70 eastingmin = 250000 71 eastingmax = 330000 72 northingmin = 7580000 73 northingmax = 7635000 74 75 south = degminsec2decimal_degrees(-22,00,0) 76 north = degminsec2decimal_degrees(-21,10,0) 77 west = degminsec2decimal_degrees(114,30,0) 78 east = degminsec2decimal_degrees(115,30,0) 79 80 # region for visualisation 81 eminviz = 260000 82 emaxviz = 320000 83 nminviz = 7590000 84 nmaxviz = 7630000 56 85 57 86 #Georeferencing … … 97 126 poly_direction = [k0, k1, k2, k3] 98 127 99 #!slump_origin = [385000.0, 6255000.0] #Absolute UTM
Note: See TracChangeset
for help on using the changeset viewer.