Changeset 6799 for anuga_work/production/australia_ph2/melbourne
- Timestamp:
- Apr 15, 2009, 8:52:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/melbourne/project.py
r6692 r6799 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 = 'melbourne' 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 import sys 28 if len(sys.argv) > 1: 29 event_number = int(sys.argv[1]) 30 else: 31 event_number = 58348 # the event number or the mux file name 32 33 event_side = 'west' #'east' 34 if event_side == 'west': 35 index = 1979 # index from the PTHA - Y2000 0.257m 36 event_number_list = [58348, 64288, 68793] # To piggy back multiple events 37 38 elif event_side == 'east': 39 index = 2649 40 event_number_list = [31853, 51449, 58115] # To piggy back multiple events 41 42 central_meridian = 146.0 # Central meridian for projection (optional) 43 zone = None 28 44 tide = 0 # difference between MSL and HAT 29 central_meridian = 146.0 # Central meridian for projection (optional)30 31 45 alpha = 0.1 # smoothing parameter for mesh 32 46 friction=0.01 # manning's friction coefficient 33 47 starttime=0 # start time for simulation 34 finaltime=80000 # final time for simulation 35 36 # index is only used when wave = Tb 37 wave = 'Bf' # Bf (sts wave) Tb (index wave) 38 39 event_side = 'west' # for the Tb wave, need to set which side is wave 40 # (other ocean boundary will be set to transmissive) 41 42 # for melbourne (west) side: 43 event_number = 64288 # the event number or the mux file name 44 # sources: 45 # other possible: 46 index = 1982 # index from the PTHA - Y2000 is 0.43302m 47 48 finaltime=60000 # final time for simulation 48 49 setup = 'final' # This can be one of three values 49 50 # trial - coarsest mesh, fast 50 51 # basic - coarse mesh 51 52 # final - fine mesh, slowest 53 54 # index is only used when wave = Tb 55 56 wave = 'Tb' # Bf (sts wave) Tb (index wave) 52 57 53 58 internal_polygon = False … … 67 72 internal_poly_comment = 'internal' 68 73 else: 69 internal_poly_comment = None70 71 output_comment = [setup, tide, event_number, index, wave, internal_poly_comment]74 internal_poly_comment = '' 75 76 output_comment = [setup, tide, event_number, index, wave, event_side, internal_poly_comment] 72 77 73 78 #------------------------------------------------------------------------------- … … 78 83 # Used in build_elevation.py 79 84 # Format for ascii grids, as produced in ArcGIS + a projection file 80 ascii_grid_filenames = [ ] # 250m grid 200581 82 # Format for point is x,y,elevation (with header)83 point_filenames = [ 'grid_250m.txt'] # 250m grid 200585 ascii_grid_filenames = ['grid_250m_simple'] 86 87 # Format for points is x,y,elevation (with header) 88 point_filenames = [] # 84 89 85 90 ### Add csv header list to all files in point_filenames … … 88 93 ## add_csv_header(join(topographies_folder, f), headerlist) 89 94 90 95 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 91 96 # Used in build_elevation.py 92 # Format for points easting,northing (no header)97 # Format for points: easting,northing (no header) 93 98 bounding_polygon_filename = 'bounding_polygon.csv' 94 bounding_polygon_maxarea = 1 0000099 bounding_polygon_maxarea = 125000 95 100 96 101 # INTERIOR REGIONS - for designing the mesh … … 119 124 # Used in run_building_inundation.py 120 125 # Format latitude,longitude etc (geographic) 121 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS126 building_exposure_filename = '.csv' # from NEXIS 122 127 123 128 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 128 133 # Thinned ordering file from Hazard Map (geographic) 129 134 # Format is index,latitude,longitude (with header) 130 urs_order_filename_W = 'urs_order_west .csv'131 urs_order_filename_E ='urs_order_east .csv'135 urs_order_filename_W = 'urs_order_west_simple.csv' 136 urs_order_filename_E ='urs_order_east_simple.csv' 132 137 ##urs_order_filename = 'urs_order_both.csv' # east is first, then west 133 138 … … 140 145 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 141 146 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 142 ##mux_input_filename = event_number # to be found in event_folder 143 # (ie boundaries/event_number/) 147 ##mux_input_filename = 'Java-0016-z.grd' 144 148 ##multi_mux = False 145 149 mux_input_filename = 'event.list' 146 150 multi_mux = True 151 152 # Specify if share cache is to be used 153 # Whatever is specified here will be relative to INUNDATION_HOME/.cache 154 # If nothing is specified, local cache will be used. 155 cachedir = '.python_cache_phII' 147 156 148 157 … … 187 196 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 188 197 muxhome = os.getenv(ENV_MUXHOME) 198 199 # Create absolute pathname for cache directory 200 # and change caching to use it 201 if 'cachedir' in dir(): 202 cachedir = join(os.getenv(ENV_INUNDATIONHOME), '.cache', cachedir) 203 from anuga.caching import caching 204 caching.set_option('cachedir', cachedir) 189 205 190 206 # check various directories/files that must exist 191 anuga_folder = join(home, state, scenario_ folder, 'anuga')207 anuga_folder = join(home, state, scenario_name, 'anuga') 192 208 topographies_folder = join(anuga_folder, 'topographies') 193 209 polygons_folder = join(anuga_folder, 'polygons') … … 249 265 250 266 # sts gauge with desired index number - used for wave 'Tb' 251 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) +'.csv') 267 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 268 269
Note: See TracChangeset
for help on using the changeset viewer.