Changeset 6805
- Timestamp:
- Apr 15, 2009, 8:54:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/wyndham/project.py
r6731 r6805 8 8 from time import localtime, strftime, gmtime 9 9 from os.path import join, exists 10 10 from anuga.lib.add_csv_header.add_csv_header import add_csv_header 11 11 12 12 #------------------------------------------------------------------------------- … … 18 18 state = 'australia_ph2' 19 19 scenario_name = 'wyndham' 20 scenario_folder = scenario_name21 20 22 21 #------------------------------------------------------------------------------- … … 26 25 # Model specific parameters. 27 26 # One or all can be changed each time the run_model script is executed 28 tide = 0 # difference between MSL and HAT 29 central_meridian = 129.0 # Central meridian for projection (optional) 30 event_number = 64962 # the event number or the mux file name 27 28 central_meridian = 128.0 # Central meridian for projection (optional) 29 zone = None 30 import sys 31 if len(sys.argv) > 1: 32 event_number = int(sys.argv[1]) 33 else: 34 event_number = 64962 # the event number or the mux file name 35 36 event_number_list = [17918, 64962, 70920] # To piggy back multiple events 31 37 # contributing events: 17918 (Flores), 64962 (Seram), 70920 (Sumba_normal), 32 38 # others: 27308 (java) 39 40 tide = 0 # difference between MSL and HAT 33 41 alpha = 0.1 # smoothing parameter for mesh 34 42 friction=0.01 # manning's friction coefficient 35 43 starttime=0 # start time for simulation 36 finaltime=80000 # final time for simulation 37 38 # index is only used when wave = Tb 39 index = 1823 # index from the PTHA - Y2000 = 0.452m 40 wave = 'Bf' # Bf (sts wave) Tb (index wave) 41 42 setup = 'final' # This can be one of three values 44 finaltime=1000 # final time for simulation 45 setup = 'trial' # This can be one of three values 43 46 # trial - coarsest mesh, fast 44 47 # basic - coarse mesh 45 48 # final - fine mesh, slowest 49 50 # index is only used when wave = Tb 51 index = 1823 # index from the PTHA - Y2000 0.257m 52 wave = 'Tb' # Bf (sts wave) Tb (index wave) 53 46 54 47 55 internal_polygon = False … … 61 69 internal_poly_comment = 'internal' 62 70 else: 63 internal_poly_comment = None71 internal_poly_comment = '' 64 72 65 73 output_comment = [setup, tide, event_number, index, wave, internal_poly_comment] … … 72 80 # Used in build_elevation.py 73 81 # Format for ascii grids, as produced in ArcGIS + a projection file 74 ascii_grid_filenames = [] # 250m grid 2005 75 76 # Format for point is x,y,elevation (with header) 77 point_filenames = ['darwin_grid250m_wyndham.txt', 78 'derby_grid250m_wyndham.txt'] # 250m grid 2005 82 ascii_grid_filenames = ['grid250m_simple'] 83 84 # Format for points is x,y,elevation (with header) 85 point_filenames = [] 79 86 80 87 ### Add csv header list to all files in point_filenames … … 83 90 ## add_csv_header(join(topographies_folder, f), headerlist) 84 91 85 92 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 86 93 # Used in build_elevation.py 87 # Format for points easting,northing (no header)88 bounding_polygon_filename = 'bounding_polygon .csv'89 bounding_polygon_maxarea = 1 0000094 # Format for points: easting,northing (no header) 95 bounding_polygon_filename = 'bounding_polygon_simple.csv' 96 bounding_polygon_maxarea = 125000 90 97 91 98 # INTERIOR REGIONS - for designing the mesh … … 114 121 # Used in run_building_inundation.py 115 122 # Format latitude,longitude etc (geographic) 116 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS123 building_exposure_filename = '.csv' # from NEXIS 117 124 118 125 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 123 130 # Thinned ordering file from Hazard Map (geographic) 124 131 # Format is index,latitude,longitude (with header) 125 urs_order_filename = 'urs_order .csv'132 urs_order_filename = 'urs_order_simple.csv' 126 133 127 134 # Landward bounding points 128 135 # Format easting,northing (no header) 129 landward_boundary_filename = 'landward_boundary .csv'136 landward_boundary_filename = 'landward_boundary_simple.csv' 130 137 131 138 # MUX input filename. 132 139 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 133 140 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 134 ##mux_input_filename = event_number # to be found in event_folder 135 # (ie boundaries/event_number/) 141 ##mux_input_filename = 'Java-0016-z.grd' 136 142 ##multi_mux = False 137 143 mux_input_filename = 'event.list' 138 144 multi_mux = True 145 146 # Specify if share cache is to be used 147 # Whatever is specified here will be relative to INUNDATION_HOME/.cache 148 # If nothing is specified, local cache will be used. 149 cachedir = '.python_cache_phII' 139 150 140 151 … … 179 190 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 180 191 muxhome = os.getenv(ENV_MUXHOME) 192 193 # Create absolute pathname for cache directory 194 # and change caching to use it 195 if 'cachedir' in dir(): 196 cachedir = join(os.getenv(ENV_INUNDATIONHOME), '.cache', cachedir) 197 from anuga.caching import caching 198 caching.set_option('cachedir', cachedir) 181 199 182 200 # check various directories/files that must exist 183 anuga_folder = join(home, state, scenario_ folder, 'anuga')201 anuga_folder = join(home, state, scenario_name, 'anuga') 184 202 topographies_folder = join(anuga_folder, 'topographies') 185 203 polygons_folder = join(anuga_folder, 'polygons') … … 238 256 239 257 # sts gauge with desired index number - used for wave 'Tb' 240 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) +'.csv') 258 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 259 260
Note: See TracChangeset
for help on using the changeset viewer.