Changeset 6794
- Timestamp:
- Apr 15, 2009, 8:50:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/carnarvon/project.py
r6715 r6794 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 = 'carnarvon' 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 = 113.5 # Central meridian for projection (optional) 29 zone = None 30 31 import sys 32 if len(sys.argv) > 1: 33 event_number = int(sys.argv[1]) 34 else: 35 event_number = 27285 # the event number or the mux file name 36 37 event_number_list = [27285, 68754, 70881] # To piggy back multiple events 38 # events: 27285 (java), 68794 (sumatra), 70375 (sumba) 39 28 40 tide = 0 # difference between MSL and HAT 29 central_meridian = 111.0 # Central meridian for projection (optional)30 event_number = 27285 # the event number or the mux file name31 # events: 27285 (java), 68794 (sumatra), 70375 (sumba)32 41 alpha = 0.1 # smoothing parameter for mesh 33 42 friction=0.01 # manning's friction coefficient 34 43 starttime=0 # start time for simulation 35 finaltime=80000 # final time for simulation 36 37 # index is only used when wave = Tb 38 index = 109 # index from the PTHA - Y2000 1.6275m 39 wave = 'Tb' # Bf (sts wave) Tb (index wave) 40 41 setup = 'final' # This can be one of three values 44 finaltime=1000 #60000 # final time for simulation 45 setup = 'trial' # This can be one of three values 42 46 # trial - coarsest mesh, fast 43 47 # basic - coarse mesh 44 48 # final - fine mesh, slowest 45 49 46 internal_polygon = True 50 # index is only used when wave = Tb 51 index = 84 # index from the PTHA - Y2000 0.257m 52 wave = 'Tb' # Bf (sts wave) Tb (index wave) 53 54 55 internal_polygon = False 47 56 48 57 #------------------------------------------------------------------------------- … … 60 69 internal_poly_comment = 'internal' 61 70 else: 62 internal_poly_comment = None71 internal_poly_comment = '' 63 72 64 73 output_comment = [setup, tide, event_number, index, wave, internal_poly_comment] … … 71 80 # Used in build_elevation.py 72 81 # Format for ascii grids, as produced in ArcGIS + a projection file 73 ascii_grid_filenames = [] # 250m grid 2005 74 75 # Format for point is x,y,elevation (with header) 76 point_filenames = ['buss_grid250m.txt', 77 'exmouth_grid250m.txt'] # 250m grid 2005 82 ascii_grid_filenames = ['grid250m_simple'] 83 84 # Format for points is x,y,elevation (with header) 85 point_filenames = [] 78 86 79 87 ### Add csv header list to all files in point_filenames … … 82 90 ## add_csv_header(join(topographies_folder, f), headerlist) 83 91 84 92 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 85 93 # Used in build_elevation.py 86 # Format for points easting,northing (no header)87 bounding_polygon_filename = 'bounding_polygon .csv'88 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 89 97 90 98 # INTERIOR REGIONS - for designing the mesh … … 108 116 # Used in get_timeseries.py. 109 117 # Format easting,northing,name,elevation (with header) 110 gauges_filename = ' MH_gauges_10m.csv'118 gauges_filename = 'gauges.csv' 111 119 112 120 # BUILDINGS EXPOSURE - for identifying inundated houses 113 121 # Used in run_building_inundation.py 114 122 # Format latitude,longitude etc (geographic) 115 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS123 building_exposure_filename = '.csv' # from NEXIS 116 124 117 125 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 122 130 # Thinned ordering file from Hazard Map (geographic) 123 131 # Format is index,latitude,longitude (with header) 124 urs_order_filename = 'urs_order .csv'132 urs_order_filename = 'urs_order_simple.csv' 125 133 126 134 # Landward bounding points 127 135 # Format easting,northing (no header) 128 landward_boundary_filename = 'landward_boundary .csv'136 landward_boundary_filename = 'landward_boundary_simple.csv' 129 137 130 138 # MUX input filename. 131 139 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 132 140 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 133 ##mux_input_filename = event_number # to be found in event_folder 134 # (ie boundaries/event_number/) 141 ##mux_input_filename = 'Java-0016-z.grd' 135 142 ##multi_mux = False 136 143 mux_input_filename = 'event.list' 137 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' 138 150 139 151 … … 178 190 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 179 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) 180 199 181 200 # check various directories/files that must exist 182 anuga_folder = join(home, state, scenario_ folder, 'anuga')201 anuga_folder = join(home, state, scenario_name, 'anuga') 183 202 topographies_folder = join(anuga_folder, 'topographies') 184 203 polygons_folder = join(anuga_folder, 'polygons') … … 238 257 # sts gauge with desired index number - used for wave 'Tb' 239 258 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 259 260
Note: See TracChangeset
for help on using the changeset viewer.