Ignore:
Timestamp:
Mar 28, 2006, 11:00:20 AM (19 years ago)
Author:
nick
Message:

update onslow

File:
1 moved

Legend:

Unmodified
Added
Removed
  • production/onslow_2006/project_new.py

    r2470 r2615  
    99
    1010from pmesh.create_mesh import convert_points_from_latlon_to_utm
     11
     12from coordinate_transforms.redfearn import degminsec2decimal_degrees
     13
     14from time import localtime, strftime
     15
     16from os import getcwd
    1117               
    1218#Making assumptions about the location of scenario data
    1319scenario_dir_name = 'onslow_tsunami_scenario_2006'
    1420
    15 
    1621# 250m data to be provided
    1722coarsename = 'onsl_bathydem250' # get from Neil/Ingo (DEM or topo data)
    18 """
     23
    1924# 30m data to be provided
    20 finename = 'onshore_30' # get from Neil/Ingo (DEM or topo data)
    21 """
     25onshore_name = 'onslow_onshore_30m_dted' # get from Neil/Ingo (DEM or topo data)
    2226
    23 # clipping region for fine elevation data
    24 west = 240000
    25 east = 340000
    26 south = 7570000
    27 north = 7645000
     27offshore_name = 'onslow_offshore_points'
     28
     29boundary_basename = 'SU-AU'
    2830
    2931#swollen/ all data output
    3032basename = 'source'
     33
     34codename = 'project.py'
    3135
    3236if sys.platform == 'win32':
     
    3640
    3741#Derive subdirectories and filenames
     42timedir = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir
     43outputdir = home+sep+scenario_dir_name+sep+'output'+sep+timedir+sep
    3844meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
    3945datadir = home+sep+scenario_dir_name+sep+'topographies'+sep
    40 outputdir = home+sep+scenario_dir_name+sep+'output'+sep
     46
    4147polygondir = home+sep+scenario_dir_name+sep+'polygons'+sep
    4248boundarydir = home+sep+scenario_dir_name+sep+'boundaries'+sep
     49
     50codedir = getcwd()+sep
     51                               
     52codedirname = codedir + 'project.py'
    4353
    4454meshname = meshdir + basename
    4555
    4656coarsedemname = datadir + coarsename
    47 """
    48 finedemname = datadir + finename
    49 combineddemname = datadir + 'onslow_combined_elevation'
    50 """
     57
     58onshore_dem_name = datadir + onshore_name
     59
     60offshore_dem_name = datadir + offshore_name
     61
     62combined_dem_name = datadir + 'onslow_combined_elevation'
    5163
    5264outputname = outputdir + basename  #Used by post processing
     
    5466#!gauge_filename = outputdir + 'onslow_gauges.xya'
    5567#!gauge_outname = outputdir + 'gauges_max_output.xya'
     68
     69# clipping region for fine elevation data
     70eastingmin = 250000
     71eastingmax = 330000
     72northingmin = 7580000
     73northingmax = 7635000
     74
     75south = degminsec2decimal_degrees(-22,00,0)
     76north = degminsec2decimal_degrees(-21,10,0)
     77west = degminsec2decimal_degrees(114,30,0)
     78east = degminsec2decimal_degrees(115,30,0)
     79
     80# region for visualisation
     81eminviz = 260000
     82emaxviz = 320000
     83nminviz = 7590000
     84nmaxviz = 7630000
    5685
    5786#Georeferencing
     
    97126poly_direction = [k0, k1, k2, k3]
    98127
    99 #!slump_origin = [385000.0, 6255000.0] #Absolute UTM
Note: See TracChangeset for help on using the changeset viewer.