Changeset 2902 for production/pt_hedland_2006/project.py
- Timestamp:
- May 18, 2006, 10:01:58 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/pt_hedland_2006/project.py
r2855 r2902 3 3 """ 4 4 5 from os import sep, environ 5 from os import sep, environ, getenv, getcwd 6 6 from os.path import expanduser 7 7 from utilities.polygon import read_polygon … … 10 10 from coordinate_transforms.redfearn import degminsec2decimal_degrees 11 11 from time import localtime, strftime 12 from os import getcwd13 12 14 13 #Making assumptions about the location of scenario data … … 32 31 33 32 if sys.platform == 'win32': 34 home = environ['INUNDATIONHOME'] #Sandpit's parent dir 33 home = getenv('INUNDATIONHOME') 34 # python_home = getenv('PWD') 35 # home = environ['INUNDATIONHOME'] #Sandpit's parent dir 35 36 else: 36 home = expanduser('~') 37 # home = environ['INUNDATIONHOME'] #Sandpit's parent dir 38 # home = getenv('INUNDATIONHOME') 39 # python_home = getenv('PWD') 40 home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation') 41 # home = sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation' 42 # home = expanduser('~') 37 43 38 44 #Derive subdirectories and filenames 39 45 time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir 46 #print 'home', home 40 47 outputtimedir = home+sep+scenario_dir_name+sep+'output'+sep+time+sep 48 #print 'outputtimedir', outputtimedir 41 49 meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep 42 50 datadir = home+sep+scenario_dir_name+sep+'topographies'+sep … … 48 56 tidedir = home+sep+scenario_dir_name+sep+'tide_data'+sep 49 57 50 print'bound', boundarydir58 #print'bound', boundarydir 51 59 52 60 #gauge_filename = gaugedir + 'onslow_gauges.xya' … … 59 67 #MOST_dir = 'f:'+sep+'3'+sep+'ehn'+sep+'users'+sep+'davidb'+sep+'tsunami'+sep+'WA_project'+sep+'SU-AU_90'+sep+'most_2'+sep+'detailed'+sep 60 68 61 codedir = getcwd()+sep 62 63 codedirname = codedir + 'project.py' 69 #print 'name', __name__ 70 #print 'path', __file__ 71 #codedir = getcwd()+sep 72 73 #project_code_name = __name__ 74 75 #project_code_dir_name = __file__ 64 76 65 77 meshname = meshdir + basename … … 81 93 82 94 # for ferret2sww 83 #south = 84 #north = 85 #west = 86 #east = 95 south = degminsec2decimal_degrees(-20,30,0) 96 north = degminsec2decimal_degrees(-17,10,0) 97 west = degminsec2decimal_degrees(117,00,0) 98 east = degminsec2decimal_degrees(120,00,0) 87 99 88 100 # region to export (used from export_results.py) … … 96 108 97 109 # bounding polygon provided by Hamish 98 d0 = [818732.55, 8062768.27] 110 #d0 = [818732.55, 8062768.27] 111 d0 = [755000.0, 8025000.0] 99 112 d1 = [708940.32, 7750510.33] 100 113 d2 = [656561.15, 7732615.11] … … 102 115 d4 = [517682.34, 7899310.22] 103 116 104 polyAll = [d0, d 1, d2, d3, d4]117 polyAll = [d0, d4, d3, d2, d1] 105 118 106 119 #Interior region - Pt Hedland town 107 i0 = [690000, 7750510.33] # these are just currently close to d1, d2 and d3 108 i1 = [656561.15, 7750000] 109 i2 = [620000, 7733013.56] 120 i0 = [668000, 7757000] 121 i1 = [659000, 7755000] 122 i2 = [660000, 7749000] 123 i3 = [667000, 7746000] 124 i4 = [678000, 7751000] 110 125 111 poly_pt_hedland = [i0, i1, i2 ]126 poly_pt_hedland = [i0, i1, i2, i3, i4] 112 127 113 128 #Are there other significant features? 114 j0 = [ ]115 j1 = [ ]116 j2 = [ ]117 j3 = [ ]129 j0 = [670000, 7780000] 130 j1 = [620000, 7745000] 131 j2 = [665000, 7735000] 132 j3 = [700000, 7755000] 118 133 119 poly_ = [j0, j1, j2, j3]134 poly_region = [j0, j1, j2, j3] 120 135
Note: See TracChangeset
for help on using the changeset viewer.