Changeset 6797 for anuga_work/production/australia_ph2/dampier/project.py
- Timestamp:
- Apr 15, 2009, 8:51:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/dampier/project.py
r6605 r6797 29 29 tide = 0 # difference between MSL and HAT 30 30 zone = 50 # specify zone of model 31 event_number = 70385 # the event number or the mux file name 31 central_meridian = None 32 33 import sys 34 if len(sys.argv) > 1: 35 event_number = int(sys.argv[1]) 36 else: 37 event_number = 70844 # the event number or the mux file name 38 39 event_number_list = [70844, 27338, 70337] # To piggy back multiple events 40 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 44 finaltime=1000 # final time for simulation 45 46 # for sensetivity study 47 model = 'simple' #60km 90km 120km all 36 48 37 49 # index is only used when wave = Tb 38 index = 1 203# index from the PTHA39 wave = ' Bf' # Bf (sts wave) Tb (index wave)40 41 setup = ' final' # This can be one of three values50 index = 1307 # index from the PTHA 51 wave = 'Tb' # Bf (sts wave) Tb (index wave) 52 53 setup = 'trial' # This can be one of three values 42 54 # trial - coarsest mesh, fast 43 55 # basic - coarse mesh … … 55 67 #------------------------------------------------------------------------------- 56 68 57 output_comment = [setup, tide, event_number, index, wave]69 output_comment = [setup, tide, event_number, wave, model] 58 70 59 71 #------------------------------------------------------------------------------- … … 64 76 # Used in build_elevation.py 65 77 # Format for ascii grids, as produced in ArcGIS + a projection file 66 ascii_grid_filenames = [ ] # 250m grid 200578 ascii_grid_filenames = ['grid250m_simple'] # 250m grid 2005 67 79 68 80 # Format for point is x,y,elevation (with header) 69 point_filenames = [ 'grid250m.txt'] # 250m grid 200581 point_filenames = [] # 250m grid 2005 70 82 71 83 ### Add csv header list to all files in point_filenames … … 77 89 # Used in build_elevation.py 78 90 # Format for points easting,northing (no header) 79 bounding_polygon_filename = ' bounding_polygon.csv'91 bounding_polygon_filename = 'poly_all_' + model + '.csv' 80 92 bounding_polygon_maxarea = 100000 81 93 … … 106 118 # Thinned ordering file from Hazard Map (geographic) 107 119 # Format is index,latitude,longitude (with header) 108 urs_order_filename = 'urs_order .csv'120 urs_order_filename = 'urs_order_' + model + '.csv' 109 121 110 122 # Landward bounding points 111 123 # Format easting,northing (no header) 112 landward_boundary_filename = 'landward_boundary .csv'124 landward_boundary_filename = 'landward_boundary_' + model + '.csv' 113 125 114 126 # MUX input filename. … … 121 133 multi_mux = True 122 134 123 124 135 # Specify if share cache is to be used 136 # Whatever is specified here will be relative to INUNDATION_HOME/.cache 137 # If nothing is specified, local cache will be used. 138 cachedir = '.python_cache_phII' 125 139 126 140 ################################################################################ … … 164 178 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 165 179 muxhome = os.getenv(ENV_MUXHOME) 166 180 181 # Create absolute pathname for cache directory 182 # and change caching to use it 183 if 'cachedir' in dir(): 184 cachedir = join(os.getenv(ENV_INUNDATIONHOME), '.cache', cachedir) 185 from anuga.caching import caching 186 caching.set_option('cachedir', cachedir) 187 167 188 # check various directories/files that must exist 168 189 anuga_folder = join(home, state, scenario_folder, 'anuga') … … 201 222 202 223 # The absolute pathname for the .sts file, generated in build_boundary.py 203 event_sts = join(event_folder, scenario_name) 224 event_sts = join(event_folder, scenario_name)+ '_' +model 204 225 205 226 # The absolute pathname for the output folder names
Note: See TracChangeset
for help on using the changeset viewer.