Changeset 2930 for production/pt_hedland_2006/project.py
- Timestamp:
- May 19, 2006, 5:34:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/pt_hedland_2006/project.py
r2922 r2930 4 4 5 5 from os import sep, environ, getenv, getcwd 6 from os.path import expanduser 6 from os.path import expanduser, basename 7 7 from utilities.polygon import read_polygon 8 8 import sys … … 10 10 from coordinate_transforms.redfearn import degminsec2decimal_degrees 11 11 from time import localtime, strftime 12 13 14 12 15 13 16 #Making assumptions about the location of scenario data … … 34 37 # python_home = getenv('PWD') 35 38 # home = environ['INUNDATIONHOME'] #Sandpit's parent dir 39 user = basename(getenv('USERPROFILE')) 40 print 'USER:', user 36 41 else: 37 # home = environ['INUNDATIONHOME'] #Sandpit's parent dir38 # home = getenv('INUNDATIONHOME')39 # python_home = getenv('PWD')40 42 home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation') 43 user = getenv('LOGNAME') 44 print 'USER:', user 45 41 46 # home = sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation' 42 47 # home = expanduser('~') … … 111 116 # bounding polygon provided by Hamish 112 117 #d0 = [818732.55, 8062768.27] 118 """ 119 old 113 120 d0 = [755000.0, 8025000.0] 114 121 d1 = [708940.32, 7750510.33] … … 116 123 d3 = [604415.81, 7733013.56] 117 124 d4 = [517682.34, 7899310.22] 125 """ 118 126 119 polyAll = [d0, d4, d3, d2, d1] 127 d0 = [763852.0, 7934358.0] 128 d1 = [710987.0, 7925797.0] 129 d2 = [658264.0, 7926314.0] 130 d3 = [552686.0, 7871580.0] 131 d4 = [604415.81, 7733013.56] 132 d5 = [656561.15, 7732615.11] 133 d6 = [708940.32, 7750510.33] 134 135 polyAll = [d0, d1, d2, d3, d4, d5, d6] 120 136 121 137 #Interior region - Pt Hedland town … … 129 145 130 146 #Are there other significant features? 131 j0 = [670000, 77 80000]132 j1 = [6 20000, 7745000]133 j2 = [665000, 77 35000]134 j3 = [ 700000, 7755000]147 j0 = [670000, 7760000] 148 j1 = [630000, 7745000] 149 j2 = [665000, 7743000] 150 j3 = [690000, 7755000] 135 151 136 152 poly_region = [j0, j1, j2, j3]
Note: See TracChangeset
for help on using the changeset viewer.