Changeset 6755
- Timestamp:
- Apr 8, 2009, 7:48:21 AM (16 years ago)
- Location:
- anuga_work/production/australia_ph2
- Files:
-
- 8 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/adelaide/project.py
r6753 r6755 32 32 event_number = int(sys.argv[1]) 33 33 else: 34 event_number = 46591# the event number or the mux file name34 event_number = 64322 # the event number or the mux file name 35 35 36 36 event_number_list = [27346, 58334, 64322] # To piggy back multiple events … … 81 81 # Used in build_elevation.py 82 82 # Format for ascii grids, as produced in ArcGIS + a projection file 83 ##ascii_grid_filenames = ['busselton_v2', # Topo 84 ## 'grid_250m_clip'] # Busselton Topo 83 ascii_grid_filenames = [] 85 84 86 85 # Format for points is x,y,elevation (with header) -
anuga_work/production/australia_ph2/albany/project.py
r6724 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 = 'albany' 20 scenario_folder = scenario_name21 22 20 23 21 #------------------------------------------------------------------------------- … … 27 25 # Model specific parameters. 28 26 # One or all can be changed each time the run_model script is executed 27 28 central_meridian = 117.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 = 64344 # the event number or the mux file name 35 36 event_number_list = [27319, 64344, 46697] # To piggy back multiple events 37 29 38 tide = 0 # difference between MSL and HAT 30 central_meridian = 117.0 # central meridian for projection (optional)31 event_number = 64344 # the event number or the mux file name32 # selected events: 27319 (java), 64344 (sandwich), 46697 (midamerica),33 # other possible sources:34 # 7873 (altiplano), 11061 (andaman),35 # 53986 (puna), 57486 (peru), 58353 (puysegur), 68821 (sumatra)36 37 39 alpha = 0.1 # smoothing parameter for mesh 38 40 friction=0.01 # manning's friction coefficient 39 41 starttime=0 # start time for simulation 40 finaltime=1000 # final time for simulation 41 42 # index is only used when wave = Tb 43 index = 1330 # index from the PTHA - 1 in 2000 wave 0.389m 44 wave = 'Tb' # Bf (sts wave) Tb (index wave) 45 46 setup = 'basic' # 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 47 44 # trial - coarsest mesh, fast 48 45 # basic - coarse mesh 49 46 # final - fine mesh, slowest 47 48 # index is only used when wave = Tb 49 index = 1330 # index from the PTHA 50 wave = 'Tb' # Bf (sts wave) Tb (index wave) 51 50 52 51 53 internal_polygon = False … … 65 67 internal_poly_comment = 'internal' 66 68 else: 67 internal_poly_comment = None69 internal_poly_comment = '' 68 70 69 71 output_comment = [setup, tide, event_number, index, wave, internal_poly_comment] 70 71 72 72 73 #------------------------------------------------------------------------------- … … 79 80 ascii_grid_filenames = [] # 250m grid 2005 80 81 81 # Format for point is x,y,elevation (with header)82 point_filenames = ['grid_250m.txt'] # 250m grid 200582 # Format for points is x,y,elevation (with header) 83 point_filenames = ['grid_250m.txt'] # 250m grid 2005 83 84 84 85 ### Add csv header list to all files in point_filenames … … 87 88 ## add_csv_header(join(topographies_folder, f), headerlist) 88 89 89 90 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 90 91 # Used in build_elevation.py 91 # Format for points easting,northing (no header)92 # Format for points: easting,northing (no header) 92 93 bounding_polygon_filename = 'bounding_polygon.csv' 93 94 bounding_polygon_maxarea = 100000 … … 96 97 # Used in run_model.py 97 98 # Format for points easting,northing (no header) 98 ##interior_regions_data = []99 99 interior_regions_data = [] 100 100 … … 104 104 # format is same (2 column .csv; easting, northing; no header) 105 105 if internal_polygon: 106 interior_regions_data.append([' coast_to_20km_polygon.csv',106 interior_regions_data.append(['internal_polygon.csv', 107 107 bounding_polygon_maxarea]) 108 108 … … 119 119 # Used in run_building_inundation.py 120 120 # Format latitude,longitude etc (geographic) 121 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS121 building_exposure_filename = '.csv' # from NEXIS 122 122 123 123 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 137 137 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 138 138 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 139 ##mux_input_filename = event_number # to be found in event_folder 140 # (ie boundaries/event_number/) 139 ##mux_input_filename = 'Java-0016-z.grd' 141 140 ##multi_mux = False 142 141 mux_input_filename = 'event.list' 143 142 multi_mux = True 144 145 143 146 144 # Specify if share cache is to be used … … 168 166 # Path to MUX data 169 167 ENV_MUXHOME = 'MUXHOME' 170 171 168 172 169 #------------------------------------------------------------------------------- … … 198 195 from anuga.caching import caching 199 196 caching.set_option('cachedir', cachedir) 200 201 197 202 198 # check various directories/files that must exist 203 anuga_folder = join(home, state, scenario_ folder, 'anuga')199 anuga_folder = join(home, state, scenario_name, 'anuga') 204 200 topographies_folder = join(anuga_folder, 'topographies') 205 201 polygons_folder = join(anuga_folder, 'polygons') … … 258 254 259 255 # sts gauge with desired index number - used for wave 'Tb' 260 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) +'.csv') 261 256 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 257 258 -
anuga_work/production/australia_ph2/broome/project.py
r6731 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 = 'broome' 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 = 123.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 = 70869 # the event number or the mux file name 35 36 event_number_list = [27337, 70336, 70869] # To piggy back multiple events 37 28 38 tide = 0 # difference between MSL and HAT 29 central_meridian = 123.0 # central meridian for projection (optional)30 event_number = 70468 # (sumba) the event number or the mux file name31 39 alpha = 0.1 # smoothing parameter for mesh 32 40 friction=0.01 # manning's friction coefficient 33 41 starttime=0 # start time for simulation 34 finaltime=80000 # final time for simulation 35 36 # index is only used when wave = Tb 37 ##index = 1693 # index from the PTHA - Y2000 5.4259m 38 index = 1661 # index from the PTHA - TO DO 39 40 wave = 'Tb' # Bf (sts wave) Tb (index wave) 41 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 = 1661 # 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 = [] # Grid data 76 77 # Format for point is x,y,elevation (with header) 78 point_filenames = ['grid.txt'] # 250m grid 2005 80 ascii_grid_filenames = ['grid250m_simple'] 81 82 # Format for points is x,y,elevation (with header) 83 point_filenames = [] # 250m grid 2005 84 85 ### Add csv header list to all files in point_filenames 86 ##headerlist = ['x', 'y', 'elevation'] 87 ##for f in point_filenames: 88 ## add_csv_header(join(topographies_folder, f), headerlist) 79 89 80 90 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 81 91 # Used in build_elevation.py 82 # Format for points easting,northing (no header)92 # Format for points: easting,northing (no header) 83 93 bounding_polygon_filename = 'bounding_polygon.csv' 84 94 bounding_polygon_maxarea = 100000 … … 109 119 # Used in run_building_inundation.py 110 120 # Format latitude,longitude etc (geographic) 111 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS121 building_exposure_filename = '.csv' # from NEXIS 112 122 113 123 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 118 128 # Thinned ordering file from Hazard Map (geographic) 119 129 # Format is index,latitude,longitude (with header) 120 urs_order_filename = 'urs_order .csv'130 urs_order_filename = 'urs_order_simple.csv' 121 131 122 132 # Landward bounding points … … 127 137 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 128 138 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 129 ##mux_input_filename = event_number # to be found in event_folder 130 # (ie boundaries/event_number/) 139 ##mux_input_filename = 'Java-0016-z.grd' 131 140 ##multi_mux = False 132 141 mux_input_filename = 'event.list' 133 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' 134 148 135 149 … … 174 188 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 175 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) 176 197 177 198 # check various directories/files that must exist 178 anuga_folder = join(home, state, scenario_ folder, 'anuga')199 anuga_folder = join(home, state, scenario_name, 'anuga') 179 200 topographies_folder = join(anuga_folder, 'topographies') 180 201 polygons_folder = join(anuga_folder, 'polygons') … … 234 255 # sts gauge with desired index number - used for wave 'Tb' 235 256 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 257 258 -
anuga_work/production/australia_ph2/darwin/project.py
r6741 r6755 128 128 # Thinned ordering file from Hazard Map (geographic) 129 129 # Format is index,latitude,longitude (with header) 130 urs_order_filename = 'urs_order .csv'130 urs_order_filename = 'urs_order_simple.csv' 131 131 132 132 # Landward bounding points -
anuga_work/production/australia_ph2/esperance/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 = 'esperance' 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 = 123.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 = [27329, 58367, 64449] # To piggy back multiple events 37 28 38 tide = 0 # difference between MSL and HAT 29 central_meridian = 123.0 # Central meridian for projection (optional)30 event_number = 58367 # the event number or the mux file name31 # main events: 27329 (java), 64449 (sandwich), 58367 (puysegur)32 # others: 7858 (altiplano), 31951 (kermandec), 46483 (midamerica),33 # 53960 (Puna), 57616 (peru), 65356 (shetland)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 = 1699 # index from the PTHA 41 wave = 'Tb' # 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 = 1699 # 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] … … 75 80 ascii_grid_filenames = [] # 250m grid 2005 76 81 77 # Format for point is x,y,elevation (with header)82 # Format for points is x,y,elevation (with header) 78 83 point_filenames = ['grid250m_pts.txt', 79 84 'coast_250.txt'] # 250m grid 2005 … … 84 89 ## add_csv_header(join(topographies_folder, f), headerlist) 85 90 86 91 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 87 92 # Used in build_elevation.py 88 # Format for points easting,northing (no header)93 # Format for points: easting,northing (no header) 89 94 bounding_polygon_filename = 'bounding_polygon.csv' 90 95 bounding_polygon_maxarea = 100000 … … 115 120 # Used in run_building_inundation.py 116 121 # Format latitude,longitude etc (geographic) 117 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS122 building_exposure_filename = '.csv' # from NEXIS 118 123 119 124 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 133 138 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 134 139 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 135 ##mux_input_filename = event_number # to be found in event_folder 136 # (ie boundaries/event_number/) 140 ##mux_input_filename = 'Java-0016-z.grd' 137 141 ##multi_mux = False 138 142 mux_input_filename = 'event.list' 139 143 multi_mux = True 144 145 # Specify if share cache is to be used 146 # Whatever is specified here will be relative to INUNDATION_HOME/.cache 147 # If nothing is specified, local cache will be used. 148 cachedir = '.python_cache_phII' 140 149 141 150 … … 180 189 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 181 190 muxhome = os.getenv(ENV_MUXHOME) 191 192 # Create absolute pathname for cache directory 193 # and change caching to use it 194 if 'cachedir' in dir(): 195 cachedir = join(os.getenv(ENV_INUNDATIONHOME), '.cache', cachedir) 196 from anuga.caching import caching 197 caching.set_option('cachedir', cachedir) 182 198 183 199 # check various directories/files that must exist 184 anuga_folder = join(home, state, scenario_ folder, 'anuga')200 anuga_folder = join(home, state, scenario_name, 'anuga') 185 201 topographies_folder = join(anuga_folder, 'topographies') 186 202 polygons_folder = join(anuga_folder, 'polygons') … … 239 255 240 256 # sts gauge with desired index number - used for wave 'Tb' 241 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) +'.csv') 257 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 258 259 -
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 -
anuga_work/production/australia_ph2/hobart/project.py
r6716 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 = 'hobart' 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 = 147.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 = 58082 # the event number or the mux file name 35 36 event_number_list = [51268, 58082, 64309] # To piggy back multiple events 37 28 38 tide = 0 # difference between MSL and HAT 29 central_meridian = 147.0 # Central meridian for projection (optional)30 31 39 alpha = 0.1 # smoothing parameter for mesh 32 40 friction=0.01 # manning's friction coefficient 33 41 starttime=0 # start time for simulation 34 finaltime=80000 # final time for simulation 35 36 # index is only used when wave = Tb 37 wave = 'Tb' # Bf (sts wave) Tb (index wave) 38 39 # for melbourne (west) side: 40 ##event_number = 58349 # the event number or the mux file name 41 # contributing sources: 42 # 51328 (newhebrides), 58349 (puysegur), 64535 (sandwich) 43 # other possible: 31966 (kermandec), 65350 (shetland) 44 ##index = 1983 # index from the PTHA - west side, close to melbourne; 1983 has 1 in 2000 wave height 0.534m 45 46 # for east, Hobart, side - point opposite hobart 47 event_number = 64461 # the event number or the mux file name 48 # contributing events: 51450 (newHebrides 7.3e-6), 58078 (puysegur 5.2e-6), 64461 (sandwich 8.2e-6) 49 # Others: 31816 (kermadec 4.7e-7), 46651 (midamerica 3.5e-7), 50 # 51 index = 2479 # index from PTHA - Y2000 1.0977m 52 53 # index = 2460 # for Bichen 54 55 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 56 44 # trial - coarsest mesh, fast 57 45 # basic - coarse mesh 58 46 # final - fine mesh, slowest 47 48 # index is only used when wave = Tb 49 index = 2528 # index from the PTHA - Y2000 0.257m 50 wave = 'Tb' # Bf (sts wave) Tb (index wave) 51 59 52 60 53 internal_polygon = False … … 74 67 internal_poly_comment = 'internal' 75 68 else: 76 internal_poly_comment = None69 internal_poly_comment = '' 77 70 78 71 output_comment = [setup, tide, event_number, index, wave, internal_poly_comment] … … 87 80 ascii_grid_filenames = [] # 250m grid 2005 88 81 89 # Format for point is x,y,elevation (with header)90 point_filenames = ['grid_250m.txt'] # 250m grid 200582 # Format for points is x,y,elevation (with header) 83 point_filenames = ['grid_250m.txt'] # 250m grid 2005 91 84 92 85 ### Add csv header list to all files in point_filenames … … 95 88 ## add_csv_header(join(topographies_folder, f), headerlist) 96 89 97 90 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 98 91 # Used in build_elevation.py 99 # Format for points easting,northing (no header)92 # Format for points: easting,northing (no header) 100 93 bounding_polygon_filename = 'bounding_polygon.csv' 101 94 bounding_polygon_maxarea = 100000 … … 121 114 # Used in get_timeseries.py. 122 115 # Format easting,northing,name,elevation (with header) 123 gauges_filename = ' MH_gauges_10m.csv'116 gauges_filename = 'gauges.csv' 124 117 125 118 # BUILDINGS EXPOSURE - for identifying inundated houses 126 119 # Used in run_building_inundation.py 127 120 # Format latitude,longitude etc (geographic) 128 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS121 building_exposure_filename = '.csv' # from NEXIS 129 122 130 123 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 135 128 # Thinned ordering file from Hazard Map (geographic) 136 129 # Format is index,latitude,longitude (with header) 137 urs_order_filename = 'urs_order .csv'130 urs_order_filename = 'urs_order_simple.csv' 138 131 139 132 # Landward bounding points … … 144 137 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 145 138 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 146 ##mux_input_filename = event_number # to be found in event_folder 147 # (ie boundaries/event_number/) 139 ##mux_input_filename = 'Java-0016-z.grd' 148 140 ##multi_mux = False 149 141 mux_input_filename = 'event.list' 150 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' 151 148 152 149 … … 191 188 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 192 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) 193 197 194 198 # check various directories/files that must exist 195 anuga_folder = join(home, state, scenario_ folder, 'anuga')199 anuga_folder = join(home, state, scenario_name, 'anuga') 196 200 topographies_folder = join(anuga_folder, 'topographies') 197 201 polygons_folder = join(anuga_folder, 'polygons') … … 250 254 251 255 # sts gauge with desired index number - used for wave 'Tb' 252 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) +'.csv') 256 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 257 258 -
anuga_work/production/australia_ph2/perth/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 = 'perth' 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 = 117.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 = 70921 # the event number or the mux file name 35 36 event_number_list = [64479, 70921] # To piggy back multiple events 37 28 38 tide = 0 # difference between MSL and HAT 29 central_meridian = 117.0 # Central meridian for projection (optional)30 event_number = 27240 # the event number or the mux file name31 # events: 11126 (andaman), 27240 (java), 64454 (sandwich)32 # 68840 (sumatra), 70903 (sumba_normal)33 # other events: 13215 (arakan),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 = 1039 # index from the PTHA - 1 in 2000 yr 0.5357m 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 = 803 # 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 = [ 'grid_250m_small.txt']# 250m grid 200580 ascii_grid_filenames = ['grid250m_simple'] # 250m grid 2005 81 82 # Format for points is x,y,elevation (with header) 83 point_filenames = [] # 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 … … 123 128 # Thinned ordering file from Hazard Map (geographic) 124 129 # Format is index,latitude,longitude (with header) 125 urs_order_filename = 'urs_order .csv'130 urs_order_filename = 'urs_order_simple.csv' 126 131 127 132 # Landward bounding points … … 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') … … 238 254 239 255 # sts gauge with desired index number - used for wave 'Tb' 240 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) +'.csv') 256 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 257 258 -
anuga_work/production/australia_ph2/portland/project.py
r6716 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 = 'portland' 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 = 141.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 = 64322 # the event number or the mux file name 35 36 event_number_list = [27289, 58358, 64322] # To piggy back multiple events 37 28 38 tide = 0 # difference between MSL and HAT 29 central_meridian = 141.0 # Central meridian for projection (optional)30 event_number = 64409 # the event number or the mux file name31 # main events: 64409 (sandwich 4.9e-6)32 # others:33 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 = 1970 # index from the PTHA - Y2000 is 0.43074m 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 = 1969 # index from the PTHA 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] … … 75 80 ascii_grid_filenames = [] # 250m grid 2005 76 81 77 # Format for point is x,y,elevation (with header)82 # Format for points is x,y,elevation (with header) 78 83 point_filenames = ['bight_grid250m.txt', 79 84 'melbourne_grid250m.txt'] # 250m grid 2005 … … 84 89 ## add_csv_header(join(topographies_folder, f), headerlist) 85 90 86 91 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 87 92 # Used in build_elevation.py 88 # Format for points easting,northing (no header)93 # Format for points: easting,northing (no header) 89 94 bounding_polygon_filename = 'bounding_polygon.csv' 90 95 bounding_polygon_maxarea = 100000 … … 115 120 # Used in run_building_inundation.py 116 121 # Format latitude,longitude etc (geographic) 117 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS122 building_exposure_filename = '.csv' # from NEXIS 118 123 119 124 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 124 129 # Thinned ordering file from Hazard Map (geographic) 125 130 # Format is index,latitude,longitude (with header) 126 urs_order_filename = 'urs_order .csv'131 urs_order_filename = 'urs_order_simple.csv' 127 132 128 133 # Landward bounding points … … 133 138 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 134 139 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 135 ##mux_input_filename = event_number # to be found in event_folder 136 # (ie boundaries/event_number/) 140 ##mux_input_filename = 'Java-0016-z.grd' 137 141 ##multi_mux = False 138 142 mux_input_filename = 'event.list' 139 143 multi_mux = True 144 145 # Specify if share cache is to be used 146 # Whatever is specified here will be relative to INUNDATION_HOME/.cache 147 # If nothing is specified, local cache will be used. 148 cachedir = '.python_cache_phII' 140 149 141 150 … … 180 189 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 181 190 muxhome = os.getenv(ENV_MUXHOME) 191 192 # Create absolute pathname for cache directory 193 # and change caching to use it 194 if 'cachedir' in dir(): 195 cachedir = join(os.getenv(ENV_INUNDATIONHOME), '.cache', cachedir) 196 from anuga.caching import caching 197 caching.set_option('cachedir', cachedir) 182 198 183 199 # check various directories/files that must exist 184 anuga_folder = join(home, state, scenario_ folder, 'anuga')200 anuga_folder = join(home, state, scenario_name, 'anuga') 185 201 topographies_folder = join(anuga_folder, 'topographies') 186 202 polygons_folder = join(anuga_folder, 'polygons') … … 239 255 240 256 # sts gauge with desired index number - used for wave 'Tb' 241 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) +'.csv') 257 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 258 259 -
anuga_work/production/australia_ph2/strahan/project.py
r6672 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 = 'strahan' 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 = 147.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 = 58337 # the event number or the mux file name 35 36 event_number_list = [58337, 64214, 68779] # To piggy back multiple events 37 28 38 tide = 0 # difference between MSL and HAT 29 central_meridian = 147.0 # Central meridian for projection (optional)30 event_number = 68779 # the event number or the mux file name31 # main events: 64214 (sandwich 1.4e-5), 58337 (puysegur 3e-6), 68779 (sumatra 7.53-7)32 # others: 27295 (java 3e-7), 31817 (kermadec 5e-7), 46559 (midAmerica 4.2e-7)33 # 51460 (newHebrides 7e-7), 57477 (peru 5.4e-7), 65322 (shetland 3.6e-7),34 35 39 alpha = 0.1 # smoothing parameter for mesh 36 40 friction=0.01 # manning's friction coefficient 37 41 starttime=0 # start time for simulation 38 finaltime=80000 # final time for simulation 39 40 # index is only used when wave = Tb 41 index = 2044 # index from the PTHA - Y2000 is 0.60374m 42 wave = 'Bf' # Bf (sts wave) Tb (index wave) 43 44 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 45 44 # trial - coarsest mesh, fast 46 45 # basic - coarse mesh 47 46 # final - fine mesh, slowest 47 48 # index is only used when wave = Tb 49 index = 2044 # index from the PTHA - Y2000 0.257m 50 wave = 'Tb' # Bf (sts wave) Tb (index wave) 51 48 52 49 53 internal_polygon = False … … 63 67 internal_poly_comment = 'internal' 64 68 else: 65 internal_poly_comment = None69 internal_poly_comment = '' 66 70 67 71 output_comment = [setup, tide, event_number, index, wave, internal_poly_comment] … … 76 80 ascii_grid_filenames = [] # 250m grid 2005 77 81 78 # Format for point is x,y,elevation (with header)79 point_filenames = ['grid_250m.txt'] # 250m grid 200582 # Format for points is x,y,elevation (with header) 83 point_filenames = ['grid_250m.txt'] # 250m grid 2005 80 84 81 85 ### Add csv header list to all files in point_filenames … … 84 88 ## add_csv_header(join(topographies_folder, f), headerlist) 85 89 86 90 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 87 91 # Used in build_elevation.py 88 # Format for points easting,northing (no header)92 # Format for points: easting,northing (no header) 89 93 bounding_polygon_filename = 'bounding_polygon.csv' 90 94 bounding_polygon_maxarea = 100000 … … 115 119 # Used in run_building_inundation.py 116 120 # Format latitude,longitude etc (geographic) 117 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS121 building_exposure_filename = '.csv' # from NEXIS 118 122 119 123 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 124 128 # Thinned ordering file from Hazard Map (geographic) 125 129 # Format is index,latitude,longitude (with header) 126 urs_order_filename = 'urs_order .csv'130 urs_order_filename = 'urs_order_simple.csv' 127 131 128 132 # Landward bounding points … … 133 137 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 134 138 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 135 ##mux_input_filename = event_number # to be found in event_folder 136 # (ie boundaries/event_number/) 139 ##mux_input_filename = 'Java-0016-z.grd' 137 140 ##multi_mux = False 138 141 mux_input_filename = 'event.list' 139 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' 140 148 141 149 … … 180 188 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 181 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) 182 197 183 198 # check various directories/files that must exist 184 anuga_folder = join(home, state, scenario_ folder, 'anuga')199 anuga_folder = join(home, state, scenario_name, 'anuga') 185 200 topographies_folder = join(anuga_folder, 'topographies') 186 201 polygons_folder = join(anuga_folder, 'polygons') … … 239 254 240 255 # sts gauge with desired index number - used for wave 'Tb' 241 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) +'.csv') 256 boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv') 257 258
Note: See TracChangeset
for help on using the changeset viewer.