Changeset 6769 for anuga_work/production/australia_ph2/lockhart_river
- Timestamp:
- Apr 8, 2009, 1:18:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/lockhart_river/project.py
r6746 r6769 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 = 'lockhart_river' 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 ##zone = 55 # specify zone of model 30 central_meridian = 143.5 # nonstandard projection 31 32 27 28 central_meridian = 143.5 # Central meridian for projection (optional) 29 zone = None 33 30 import sys 34 31 if len(sys.argv) > 1: … … 36 33 else: 37 34 event_number = 51316 # the event number or the mux file name 38 35 39 36 event_number_list = [51316, 62786] # To piggy back multiple events 40 # using run_multiple_events.py 41 37 38 tide = 0 # difference between MSL and HAT 42 39 alpha = 0.1 # smoothing parameter for mesh 43 40 friction=0.01 # manning's friction coefficient 44 41 starttime=0 # start time for simulation 45 finaltime=80000 # final time for simulation 46 47 # index is only used when wave = Tb 48 index = 1889 # index from the PTHA 49 wave = 'Tb' # Bf (sts wave) Tb (index wave) 50 42 finaltime=1000 #60000 # final time for simulation 51 43 setup = 'trial' # This can be one of three values 52 44 # trial - coarsest mesh, fast 53 45 # basic - coarse mesh 54 46 # final - fine mesh, slowest 47 48 # index is only used when wave = Tb 49 index = 1994 # index from the PTHA - Y2000 0.257m 50 wave = 'Tb' # Bf (sts wave) Tb (index wave) 51 55 52 56 53 internal_polygon = False … … 70 67 internal_poly_comment = 'internal' 71 68 else: 72 internal_poly_comment = None69 internal_poly_comment = '' 73 70 74 71 output_comment = [setup, tide, event_number, index, wave, internal_poly_comment] … … 83 80 ascii_grid_filenames = ['grid250m_pro'] # 250m grid 2005 84 81 85 # Format for point is x,y,elevation (with header) 86 ##point_filenames = [] 87 point_filenames = ['ahs100_0.txt', 88 'ahs100_1.txt', 89 'ahs100_2.txt', 90 'ahs100_3.txt', 91 'ahs100_4.txt', 92 'ahs100_5.txt', 93 'ahs100_6.txt', 94 'ahs100_7.txt', 95 'ahs100_8.txt', 96 'ahs100_9.txt', 97 'ahs100_10.txt', 98 'ahs100_11.txt', 99 'ahs100_12.txt', 100 'ahs100_13.txt'] # LADS data 82 # Format for points is x,y,elevation (with header) 83 point_filenames = [] 84 ##point_filenames = ['ahs100_0.txt', 85 ## 'ahs100_1.txt', 86 ## 'ahs100_2.txt', 87 ## 'ahs100_3.txt', 88 ## 'ahs100_4.txt', 89 ## 'ahs100_5.txt', 90 ## 'ahs100_6.txt', 91 ## 'ahs100_7.txt', 92 ## 'ahs100_8.txt', 93 ## 'ahs100_9.txt', 94 ## 'ahs100_10.txt', 95 ## 'ahs100_11.txt', 96 ## 'ahs100_12.txt', 97 ## 'ahs100_13.txt'] # LADS data 98 99 ### Add csv header list to all files in point_filenames 100 ##headerlist = ['x', 'y', 'elevation'] 101 ##for f in point_filenames: 102 ## add_csv_header(join(topographies_folder, f), headerlist) 101 103 102 104 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 103 105 # Used in build_elevation.py 104 # Format for points easting,northing (no header)106 # Format for points: easting,northing (no header) 105 107 bounding_polygon_filename = 'bounding_polygon.csv' 106 108 bounding_polygon_maxarea = 125000 … … 131 133 # Used in run_building_inundation.py 132 134 # Format latitude,longitude etc (geographic) 133 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS135 building_exposure_filename = '.csv' # from NEXIS 134 136 135 137 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 149 151 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 150 152 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 151 ##mux_input_filename = event_number # to be found in event_folder 152 # (ie boundaries/event_number/) 153 ##mux_input_filename = 'Java-0016-z.grd' 153 154 ##multi_mux = False 154 155 mux_input_filename = 'event.list' 155 156 multi_mux = True 157 158 # Specify if share cache is to be used 159 # Whatever is specified here will be relative to INUNDATION_HOME/.cache 160 # If nothing is specified, local cache will be used. 161 cachedir = '.python_cache_phII' 156 162 157 163 … … 196 202 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 197 203 muxhome = os.getenv(ENV_MUXHOME) 204 205 # Create absolute pathname for cache directory 206 # and change caching to use it 207 if 'cachedir' in dir(): 208 cachedir = join(os.getenv(ENV_INUNDATIONHOME), '.cache', cachedir) 209 from anuga.caching import caching 210 caching.set_option('cachedir', cachedir) 198 211 199 212 # check various directories/files that must exist 200 anuga_folder = join(home, state, scenario_ folder, 'anuga')213 anuga_folder = join(home, state, scenario_name, 'anuga') 201 214 topographies_folder = join(anuga_folder, 'topographies') 202 215 polygons_folder = join(anuga_folder, 'polygons') … … 235 248 event_sts = join(event_folder, scenario_name) 236 249 237 238 239 250 # The absolute pathname for the output folder names 240 251 # Used for build_elevation.py
Note: See TracChangeset
for help on using the changeset viewer.