Changeset 6755 for anuga_work/production/australia_ph2/eucla_motel
- Timestamp:
- Apr 8, 2009, 7:48:21 AM (16 years ago)
- Location:
- anuga_work/production/australia_ph2/eucla_motel
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/eucla_motel/project.py
r6617 r6755 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 = 'eucla_motel' 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 27 28 central_meridian = 129.0 # Central meridian for projection (optional) 29 #zone = 30 import sys 31 if len(sys.argv) > 1: 32 event_number = int(sys.argv[1]) 33 else: 34 event_number = 64449 # the event number or the mux file name 35 36 event_number_list = [58332, 64449, 68755] # To piggy back multiple events 37 28 38 tide = 0 # difference between MSL and HAT 29 central_meridian = 129.0 # Central meridian for projection (optional)30 event_number = 64449 # the event number or the mux file name31 # sources: 64449 (sandwich), 68755 (sumatra), 58332 (Puysegur)32 # others: 7859 (altiplano), 11016 (andaman), 17017 (columbia), 27252 (java), 46699 (midamerica)33 # 53961 (puna), 57582 (peru), 58332 (Puysegur), 64449 (sandwich), 68755 (sumatra)34 39 alpha = 0.1 # smoothing parameter for mesh 35 40 friction=0.01 # manning's friction coefficient 36 41 starttime=0 # start time for simulation 37 finaltime=80000 # final time for simulation 38 39 # index is only used when wave = Tb 40 index = 1837 # index from the PTHA 41 wave = 'Bf' # Bf (sts wave) Tb (index wave) 42 43 setup = 'final' # This can be one of three values 42 finaltime=1000 #60000 # final time for simulation 43 setup = 'trial' # This can be one of three values 44 44 # trial - coarsest mesh, fast 45 45 # basic - coarse mesh 46 46 # final - fine mesh, slowest 47 48 # index is only used when wave = Tb 49 index = 1837 # index from the PTHA - Y2000 0.257m 50 wave = 'Tb' # Bf (sts wave) Tb (index wave) 51 47 52 48 53 internal_polygon = False … … 62 67 internal_poly_comment = 'internal' 63 68 else: 64 internal_poly_comment = None69 internal_poly_comment = '' 65 70 66 71 output_comment = [setup, tide, event_number, index, wave, internal_poly_comment] … … 73 78 # Used in build_elevation.py 74 79 # Format for ascii grids, as produced in ArcGIS + a projection file 75 ascii_grid_filenames = [] # 250m grid 200576 77 # Format for point is x,y,elevation (with header)78 point_filenames = ['grid250m_pts.txt'] # 250m grid 200580 ascii_grid_filenames = [] 81 82 # Format for points is x,y,elevation (with header) 83 point_filenames = ['grid250m_pts.txt'] # 250m grid 2005 79 84 80 85 ### Add csv header list to all files in point_filenames … … 83 88 ## add_csv_header(join(topographies_folder, f), headerlist) 84 89 85 90 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 86 91 # Used in build_elevation.py 87 # Format for points easting,northing (no header)92 # Format for points: easting,northing (no header) 88 93 bounding_polygon_filename = 'bounding_polygon.csv' 89 94 bounding_polygon_maxarea = 100000 … … 114 119 # Used in run_building_inundation.py 115 120 # Format latitude,longitude etc (geographic) 116 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS121 building_exposure_filename = '.csv' # from NEXIS 117 122 118 123 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 132 137 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 133 138 # 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/) 139 ##mux_input_filename = 'Java-0016-z.grd' 136 140 ##multi_mux = False 137 141 mux_input_filename = 'event.list' 138 142 multi_mux = True 143 144 # Specify if share cache is to be used 145 # Whatever is specified here will be relative to INUNDATION_HOME/.cache 146 # If nothing is specified, local cache will be used. 147 cachedir = '.python_cache_phII' 139 148 140 149 … … 179 188 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 180 189 muxhome = os.getenv(ENV_MUXHOME) 190 191 # Create absolute pathname for cache directory 192 # and change caching to use it 193 if 'cachedir' in dir(): 194 cachedir = join(os.getenv(ENV_INUNDATIONHOME), '.cache', cachedir) 195 from anuga.caching import caching 196 caching.set_option('cachedir', cachedir) 181 197 182 198 # check various directories/files that must exist 183 anuga_folder = join(home, state, scenario_ folder, 'anuga')199 anuga_folder = join(home, state, scenario_name, 'anuga') 184 200 topographies_folder = join(anuga_folder, 'topographies') 185 201 polygons_folder = join(anuga_folder, 'polygons') … … 239 255 # sts gauge with desired index number - used for wave 'Tb' 240 256 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 257 258
Note: See TracChangeset
for help on using the changeset viewer.