Ignore:
Timestamp:
May 19, 2006, 5:34:17 PM (18 years ago)
Author:
nick
Message:

update to pt hedland

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/pt_hedland_2006/project.py

    r2922 r2930  
    44
    55from os import sep, environ, getenv, getcwd
    6 from os.path import expanduser
     6from os.path import expanduser, basename
    77from utilities.polygon import read_polygon
    88import sys
     
    1010from coordinate_transforms.redfearn import degminsec2decimal_degrees
    1111from time import localtime, strftime
     12
     13
     14
    1215
    1316#Making assumptions about the location of scenario data
     
    3437#    python_home = getenv('PWD')     
    3538#    home = environ['INUNDATIONHOME']     #Sandpit's parent dir
     39    user = basename(getenv('USERPROFILE'))
     40    print 'USER:', user
    3641else:   
    37 #    home = environ['INUNDATIONHOME']     #Sandpit's parent dir
    38 #    home = getenv('INUNDATIONHOME')     
    39 #    python_home = getenv('PWD')     
    4042    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
    4146#    home = sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation'
    4247#    home = expanduser('~')
     
    111116# bounding polygon provided by Hamish
    112117#d0 = [818732.55, 8062768.27]
     118"""
     119old
    113120d0 = [755000.0, 8025000.0]
    114121d1 = [708940.32, 7750510.33]
     
    116123d3 = [604415.81, 7733013.56]
    117124d4 = [517682.34, 7899310.22]
     125"""
    118126
    119 polyAll = [d0, d4, d3, d2, d1]
     127d0 = [763852.0, 7934358.0]
     128d1 = [710987.0, 7925797.0]
     129d2 = [658264.0, 7926314.0]
     130d3 = [552686.0, 7871580.0]
     131d4 = [604415.81, 7733013.56]
     132d5 = [656561.15, 7732615.11]
     133d6 = [708940.32, 7750510.33]
     134
     135polyAll = [d0, d1, d2, d3, d4, d5, d6]
    120136
    121137#Interior region - Pt Hedland town
     
    129145
    130146#Are there other significant features?
    131 j0 = [670000, 7780000]
    132 j1 = [620000, 7745000]
    133 j2 = [665000, 7735000]
    134 j3 = [700000, 7755000]
     147j0 = [670000, 7760000]
     148j1 = [630000, 7745000]
     149j2 = [665000, 7743000]
     150j3 = [690000, 7755000]
    135151
    136152poly_region = [j0, j1, j2, j3]
Note: See TracChangeset for help on using the changeset viewer.