Ignore:
Timestamp:
Apr 15, 2009, 8:51:36 AM (15 years ago)
Author:
kristy
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/dampier/project.py

    r6605 r6797  
    2929tide = 0                # difference between MSL and HAT
    3030zone = 50               # specify zone of model
    31 event_number = 70385    # the event number or the mux file name
     31central_meridian = None
     32
     33import sys
     34if len(sys.argv) > 1:
     35    event_number = int(sys.argv[1])
     36else:   
     37    event_number = 70844    # the event number or the mux file name
     38
     39event_number_list = [70844, 27338, 70337] # To piggy back multiple events
     40
    3241alpha = 0.1             # smoothing parameter for mesh
    3342friction=0.01           # manning's friction coefficient
    3443starttime=0             # start time for simulation
    35 finaltime=80000          # final time for simulation
     44finaltime=1000          # final time for simulation
     45
     46# for sensetivity study
     47model = 'simple' #60km 90km 120km all
    3648
    3749# index is only used when wave = Tb
    38 index = 1203            # index from the PTHA
    39 wave = 'Bf'             # Bf (sts wave) Tb (index wave)
    40 
    41 setup = 'final'         # This can be one of three values
     50index = 1307            # index from the PTHA
     51wave = 'Tb'             # Bf (sts wave) Tb (index wave)
     52
     53setup = 'trial'         # This can be one of three values
    4254                        #    trial - coarsest mesh, fast
    4355                        #    basic - coarse mesh
     
    5567#-------------------------------------------------------------------------------
    5668
    57 output_comment = [setup, tide, event_number, index, wave]
     69output_comment = [setup, tide, event_number, wave, model]
    5870
    5971#-------------------------------------------------------------------------------
     
    6476# Used in build_elevation.py
    6577# Format for ascii grids, as produced in ArcGIS + a projection file
    66 ascii_grid_filenames = [] # 250m grid 2005
     78ascii_grid_filenames = ['grid250m_simple'] # 250m grid 2005
    6779
    6880# Format for point is x,y,elevation (with header)
    69 point_filenames = ['grid250m.txt'] # 250m grid 2005
     81point_filenames = [] # 250m grid 2005
    7082
    7183### Add csv header list to all files in point_filenames
     
    7789# Used in build_elevation.py
    7890# Format for points easting,northing (no header)
    79 bounding_polygon_filename = 'bounding_polygon.csv'
     91bounding_polygon_filename = 'poly_all_' + model + '.csv'
    8092bounding_polygon_maxarea = 100000
    8193
     
    106118# Thinned ordering file from Hazard Map (geographic)
    107119# Format is index,latitude,longitude (with header)
    108 urs_order_filename = 'urs_order.csv'
     120urs_order_filename = 'urs_order_' + model + '.csv'
    109121
    110122# Landward bounding points
    111123# Format easting,northing (no header)
    112 landward_boundary_filename = 'landward_boundary.csv'
     124landward_boundary_filename = 'landward_boundary_' + model + '.csv'
    113125
    114126# MUX input filename.
     
    121133multi_mux = True
    122134
    123 
    124 
     135# Specify if share cache is to be used
     136# Whatever is specified here will be relative to INUNDATION_HOME/.cache
     137# If nothing is specified, local cache will be used.
     138cachedir = '.python_cache_phII'
    125139
    126140################################################################################
     
    164178home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder
    165179muxhome = os.getenv(ENV_MUXHOME)
    166    
     180
     181# Create absolute pathname for cache directory
     182# and change caching to use it
     183if 'cachedir' in dir():
     184    cachedir = join(os.getenv(ENV_INUNDATIONHOME), '.cache', cachedir)
     185    from anuga.caching import caching
     186    caching.set_option('cachedir', cachedir)
     187 
    167188# check various directories/files that must exist
    168189anuga_folder = join(home, state, scenario_folder, 'anuga')
     
    201222
    202223# The absolute pathname for the .sts file, generated in build_boundary.py
    203 event_sts = join(event_folder, scenario_name)
     224event_sts = join(event_folder, scenario_name)+ '_' +model
    204225
    205226# The absolute pathname for the output folder names
Note: See TracChangeset for help on using the changeset viewer.