Ignore:
Timestamp:
May 18, 2006, 10:01:58 AM (18 years ago)
Author:
nick
Message:

update onslow and pt hedland

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/pt_hedland_2006/project.py

    r2855 r2902  
    33"""
    44
    5 from os import sep, environ
     5from os import sep, environ, getenv, getcwd
    66from os.path import expanduser
    77from utilities.polygon import read_polygon
     
    1010from coordinate_transforms.redfearn import degminsec2decimal_degrees
    1111from time import localtime, strftime
    12 from os import getcwd
    1312
    1413#Making assumptions about the location of scenario data
     
    3231
    3332if 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
    3536else:   
    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('~')
    3743
    3844#Derive subdirectories and filenames
    3945time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir
     46#print 'home', home
    4047outputtimedir = home+sep+scenario_dir_name+sep+'output'+sep+time+sep
     48#print 'outputtimedir', outputtimedir
    4149meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
    4250datadir = home+sep+scenario_dir_name+sep+'topographies'+sep
     
    4856tidedir = home+sep+scenario_dir_name+sep+'tide_data'+sep
    4957
    50 print'bound', boundarydir
     58#print'bound', boundarydir
    5159
    5260#gauge_filename = gaugedir + 'onslow_gauges.xya'
     
    5967#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
    6068
    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__
    6476
    6577meshname = meshdir + basename
     
    8193
    8294# for ferret2sww
    83 #south =
    84 #north =
    85 #west =
    86 #east =
     95south = degminsec2decimal_degrees(-20,30,0)
     96north = degminsec2decimal_degrees(-17,10,0)
     97west = degminsec2decimal_degrees(117,00,0)
     98east = degminsec2decimal_degrees(120,00,0)
    8799
    88100# region to export (used from export_results.py)
     
    96108
    97109# bounding polygon provided by Hamish
    98 d0 = [818732.55, 8062768.27]
     110#d0 = [818732.55, 8062768.27]
     111d0 = [755000.0, 8025000.0]
    99112d1 = [708940.32, 7750510.33]
    100113d2 = [656561.15, 7732615.11]
     
    102115d4 = [517682.34, 7899310.22]
    103116
    104 polyAll = [d0, d1, d2, d3, d4]
     117polyAll = [d0, d4, d3, d2, d1]
    105118
    106119#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]
     120i0 = [668000, 7757000]
     121i1 = [659000, 7755000]
     122i2 = [660000, 7749000]
     123i3 = [667000, 7746000]
     124i4 = [678000, 7751000]
    110125
    111 poly_pt_hedland = [i0, i1, i2]
     126poly_pt_hedland = [i0, i1, i2, i3, i4]
    112127
    113128#Are there other significant features?
    114 j0 = []
    115 j1 = []
    116 j2 = []
    117 j3 = []
     129j0 = [670000, 7780000]
     130j1 = [620000, 7745000]
     131j2 = [665000, 7735000]
     132j3 = [700000, 7755000]
    118133
    119 poly_ = [j0, j1, j2, j3]
     134poly_region = [j0, j1, j2, j3]
    120135
Note: See TracChangeset for help on using the changeset viewer.