Changeset 7385
- Timestamp:
- Aug 20, 2009, 9:20:31 AM (16 years ago)
- Location:
- anuga_work/production
- Files:
-
- 3 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/busselton_rerun/Arc_asc2raster_GDA94z50.py
r6984 r7385 32 32 time_dir6 = '20090330_120458_run_final_0_27283_Bt_kvanputt' 33 33 34 time_dirs = [time_dir 6] #1, time_dir2, time_dir3, time_dir4, time_dir5]34 time_dirs = [time_dir1] #1, time_dir2, time_dir3, time_dir4, time_dir5] 35 35 36 36 for time_dir in time_dirs: … … 57 57 58 58 generate_filename = [] 59 input_ascii = glob.glob(folder + '* depth_max.asc')59 input_ascii = glob.glob(folder + '*elevation.asc') 60 60 61 61 for infile in input_ascii: … … 78 78 ",PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996]" 79 79 ",PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]") 80 output_extract = output_DEM + '_E'81 print 'Output Extract ',output_extract82 print 'Process: Extract by Mask'83 gp.ExtractByMask_sa(output_DEM, land, output_extract)80 ## output_extract = output_DEM + '_E' 81 ## print 'Output Extract ',output_extract 82 ## print 'Process: Extract by Mask' 83 ## gp.ExtractByMask_sa(output_DEM, land, output_extract) 84 84 85 85 -
anuga_work/production/carnarvon/carnarvon_rerun/Arc_asc2raster_GDA94z49.py
r6984 r7385 32 32 time_dir6 = '20090327_160753_run_final_0_27283_Bt_kvanputt' 33 33 34 time_dirs = [time_dir1 , time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]34 time_dirs = [time_dir1] #, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6] 35 35 36 36 for time_dir in time_dirs: … … 55 55 56 56 generate_filename = [] 57 input_ascii = glob.glob(folder + '* depth_max.asc')57 input_ascii = glob.glob(folder + '*elevation.asc') 58 58 59 59 for infile in input_ascii: … … 80 80 81 81 82 print 'Process: Extract by Mask'83 output_extract = output_DEM + '_E'84 print 'Output Extract ',output_extract85 gp.ExtractByMask_sa(output_DEM, land, output_extract)82 ## print 'Process: Extract by Mask' 83 ## output_extract = output_DEM + '_E' 84 ## print 'Output Extract ',output_extract 85 ## gp.ExtractByMask_sa(output_DEM, land, output_extract) 86 86 87 87 -
anuga_work/production/dampier_2009/Arc_asc2raster_GDA94z50.py
r7272 r7385 22 22 gp.overwriteoutput = 1 23 23 24 scenario_dir = "\\\\nas2\\gemd\\georisk_models\\inundation\\data\\western_australia\\ onslow_tsunami_scenario_2009\\"24 scenario_dir = "\\\\nas2\\gemd\\georisk_models\\inundation\\data\\western_australia\\dampier_tsunami_scenario_2009\\" 25 25 output_dir="anuga\\outputs\\" 26 26 27 time_dir1 = '20090616_154908_run_final_0.0_27283_mhingee' 28 ##time_dir2 = '20090416_072538_run_final_0_27338_1307_Tb__kvanputt' 29 ##time_dir3 = '20090417_021634_run_final_0_70337_1307_Tb__kvanputt' 27 time_dir1 = '20090817_150959_run_final_0.0_70408_kvanputt' 30 28 31 ##time_dir2 = '20090422_102457_run_final_0_70844_1307_Tb_internal_mhingee' 32 33 time_dirs = [time_dir1]#, time_dir2]#, time_dir3] 29 time_dirs = [time_dir1] 34 30 35 31 for time_dir in time_dirs: … … 48 44 49 45 #replication dictionary 50 replicate = ((' onslow', ''),('_', ''),('max','_M'),51 ('CBD', 'CDB'),(' All',''),46 replicate = (('dampier', ''),('_', ''),('max','_M'), 47 ('CBD', 'CDB'),('Dampier', 'Damp'),('Karratha', 'Karr') 52 48 ('depth','_depth'),('speed', '_speed'), 53 ('elevation', '_ele _'), ('stage','_stage'))49 ('elevation', '_ele'), ('stage','_stage')) 54 50 55 51 generate_filename = [] 56 input_ascii = glob.glob(folder + '* elevation.asc')52 input_ascii = glob.glob(folder + '*.asc') 57 53 58 54 for infile in input_ascii: … … 72 68 73 69 print 'Process: Define Projection' 74 #GDA_1994_MGA_Zone_5475 70 gp.DefineProjection_management(output_DEM, "PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]" 76 71 ",PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996]" -
anuga_work/production/dampier_2009/project.py
r7272 r7385 29 29 zone = 50 # specify UTM zone of model 30 30 central_meridian = None 31 event_number = 27283# 27255,27283 the event number or the mux file name31 event_number = 70408 # 27255,27283 the event number or the mux file name 32 32 alpha = 0.1 # smoothing parameter for mesh 33 33 friction=0.01 # manning's friction coefficient … … 60 60 # Used in build_elevation.py 61 61 # Format for ascii grids, as produced in ArcGIS + a projection file 62 ascii_grid_filenames = [ ]62 ascii_grid_filenames = ['topo_to_raster_0_30', 'land_final_240107'] 63 63 64 64 # Format for point is x,y,elevation (with header) 65 point_filenames = [ ]65 point_filenames = ['Hydro_fair_chart.txt', 'coast_line.txt'] 66 66 67 67 ### Add csv header list to all files in point_filenames … … 79 79 # Used in run_model.py 80 80 # Format for points easting,northing (no header) 81 interior_regions_data = [['dampier_region.csv', 3000], 82 ['dampier_aos.csv', 800], 83 ['dampier_aoi.csv', 500], 84 ['dampier_north_aos.csv', 800], 85 ['dampier_north_aoi.csv', 500], 86 ['karratha_aos.csv', 800], 87 ['karratha_aoi.csv', 500], 88 ['ref_ne_islands1.csv', 1500], ## islands to the NE and headland between dampier and karratha 89 ['ref_ne_islands2.csv', 1500], ## island in entrance to bay for Karratha 90 ## ['nwislands.csv', 1500], ## all islands to the NW: 91 ['ref_nw4.csv', 1500], 92 ['ref_nw5.csv', 1500], 93 ['ref_nw6.csv', 1500], 94 ['ref_nw7.csv', 1500], 95 ['ref_nw8.csv', 1500], 96 ['island0.csv', 10000], ## make large triangles for land areas of islands to reduce no. of triangles 97 ['island1.csv', 10000], 98 ['island2.csv', 10000], 99 ['island3.csv', 10000], 100 ['island4.csv', 10000], 101 ['island5.csv', 10000], 102 ['island6.csv', 10000], 103 ['island7.csv', 10000], 104 ['island8.csv', 10000]] 105 106 PriorityArea_filename = None 81 interior_regions_data = [['dampier_aoi.csv', 500], 82 ['karratha_aoi.csv', 500]] 83 84 PriorityArea_filename = 'aos.csv' 107 85 108 86 # LAND - used to set the initial stage/water to be offcoast only 109 87 # Used in run_model.py. Format for points easting,northing,id,value 110 land_initial_conditions_filename = [['mainland_only.csv',0], ## these are all placeholders until proper initial conditions made 111 ['island0.csv',0]] 88 land_initial_conditions_filename = 'initial_conditions_simple.csv' 112 89 113 90 # GAUGES - for creating timeseries at a specific point … … 153 130 154 131 # ASCII export grid for Dampier 155 ##xmin = 156 ##xmax = 157 ##ymin = 158 ##ymax = 132 xminDampier = 465000 133 xmaxDampier = 471000 134 yminDampier = 7713000 135 ymaxDampier = 7719000 159 136 160 137 # ASCII export grid for Karratha 161 ##xmin = 162 ##xmax = 163 ##ymin = 164 ##ymax = 165 166 # ASCII export grid for Dampier northern area 167 ##xmin = 168 ##xmax = 169 ##ymin = 170 ##ymax = 171 138 xminKarratha = 475700 139 xmaxKarratha = 489600 140 yminKarratha = 7707000 141 ymaxKarratha = 7718000 172 142 173 143 ################################################################################ -
anuga_work/production/dampier_2009/setup_model.py
r7272 r7385 27 27 sanity_error = True 28 28 29 if os.getenv(project.ENV_MUXHOME) is None:30 print "Environment variable '%s' is not set" % project.ENV_MUXHOME31 sanity_error = True32 33 29 #------------------------------------------------------------------------------- 34 30 # Check filename strings that MUST be set … … 52 48 if not exists(project.home): 53 49 print "Sorry, data directory '%s' doesn't exist" % project.home 54 sanity_error = True55 56 if not exists(project.muxhome):57 print "Sorry, MUX directory '%s' doesn't exist" % project.muxhome58 50 sanity_error = True 59 51 … … 84 76 print "Sorry, gauges directory '%s' doesn't exist" % project.gauges_folder 85 77 sanity_error = True 86 87 if not exists(project.mux_data_folder):88 print "Sorry, mux data directory '%s' doesn't exist" % project.mux_data_folder89 sanity_error = True90 91 # if multi_mux is True, check if multi-mux file exists92 if project.multi_mux:93 if not exists(project.mux_input):94 print ("Sorry, MUX input file '%s' doesn't exist"95 % project.mux_input)96 sanity_error = True97 78 98 79 #----- … … 166 147 % type(project.land_initial_conditions_filename)) 167 148 raise Exception, msg 149 168 150 # Create list of interior polygons with scaling factor 169 151 project.interior_regions = [] -
anuga_work/production/exmouth_2009/project.py
r7274 r7385 8 8 from time import localtime, strftime, gmtime 9 9 from os.path import join, exists 10 from anuga.lib.add_csv_header.add_csv_header import add_csv_header11 10 12 11 #------------------------------------------------------------------------------- … … 26 25 # Model specific parameters. 27 26 # One or all can be changed each time the run_model script is executed 28 tide = 0 .0 # 3.6difference between MSL and HAT in metres29 zone = None # specify UTM zone of model30 central_meridian = 114 .031 event_number = 27283 # 27255,27283the event number or the mux file name27 tide = 0 # difference between MSL and HAT in metres 28 zone = None 29 central_meridian = 114 # specify the central merdian for the data 30 event_number = 27283 # the event number or the mux file name 32 31 alpha = 0.1 # smoothing parameter for mesh 33 32 friction=0.01 # manning's friction coefficient … … 60 59 # Used in build_elevation.py 61 60 # Format for ascii grids, as produced in ArcGIS + a projection file 62 ##ascii_grid_filenames = ['extract_dli', 63 ## 'extract_dted'] 64 ascii_grid_filenames = [] 65 66 # Format for point is x,y,elevation (with header) 61 ascii_grid_filenames = ['extract_dli', 'extract_dted'] # onshore elevation data 62 63 64 # Format for point is x,y,elevation (with header) 67 65 point_filenames = ['coastline.txt', # coastline points with 0m elevation 68 66 'Exmouth.txt', # combined bathymetry for most of model 69 'extract_dgapcs100.txt', # interpolated bathy. for gap in data just NE of Exmouth itself 70 'extract_rivoli.txt', # interpolated bathy. for gap in data near Rivoli islands 71 'extract_dli.txt', # onshore elevation data 72 'extract_dted.txt', # more onshore elevation data 73 'exmouth_aoi_aos_gridded.txt'] # fine grid of data interpolated from Exmouth.txt for use in refined grids (aoi and aos) 67 'extract_dgap_cs100.txt', # interpolated bathy. for gap in data just NE of Exmouth itself 68 'extract_rivoli100.txt'] # interpolated bathy. for gap in data near Rivoli islands 69 #'exmouth_aoi_aos_gridded.txt'] # fine grid of data interpolated from Exmouth.txt for use in refined grids (aoi and aos) 74 70 75 71 ### Add csv header list to all files in point_filenames … … 81 77 # Used in build_elevation.py 82 78 # Format for points easting,northing (no header) 83 bounding_polygon_filename = ' poly_all_MH.csv'84 bounding_polygon_maxarea = 100000 79 bounding_polygon_filename = 'bounding_polygon.csv' 80 bounding_polygon_maxarea = 1000000 85 81 86 82 # INTERIOR REGIONS - for designing the mesh 87 83 # Used in run_model.py 88 84 # Format for points easting,northing (no header) 89 interior_regions_data = [['sw_MH.csv', 3000], 90 ['aos_MH.csv', 800], 91 ['aoi_small_MH.csv', 500], 92 ['island1_MH.csv', 3000], 93 ['island2_MH.csv', 3000], 94 ['island3_MH.csv', 3000], 95 ['island4_MH.csv', 3000], 96 ['island5_MH.csv', 3000]]#, 97 ## ['island6_MH.csv', 3000]] 98 99 PriorityArea_filename = None 85 86 interior_regions_data = [['aoi.csv', 500]] 87 PriorityArea_filename = 'aos.csv' 100 88 101 89 # LAND - used to set the initial stage/water to be offcoast only 102 # Used in run_model.py. Format for points easting,northing ,id,value103 land_initial_conditions_filename = 'initial_condition _comb.csv'90 # Used in run_model.py. Format for points easting,northing (no header) 91 land_initial_conditions_filename = 'initial_conditions_simple.csv' 104 92 105 93 # GAUGES - for creating timeseries at a specific point 106 94 # Used in get_timeseries.py. 107 95 # Format easting,northing,name,elevation (with header) 108 gauges_filename = '' 96 gauges_filename = '' #'TideGaugesPoints.csv' #'tsunamipointsMGA.csv' 97 109 98 # BUILDINGS EXPOSURE - for identifying inundated houses 110 99 # Used in run_building_inundation.py 111 100 # Format latitude,longitude etc (geographic) 112 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS101 building_exposure_filename = '' # from NEXIS 113 102 114 103 # AREA OF IMAGES - Extent of each image to find out highest runup 115 104 # Header - easting,northing,id,value 116 105 # Used in get_runup.py 117 images_filename = ' '106 images_filename = 'images.csv' 118 107 119 108 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 145 134 146 135 # ASCII export grid for Exmouth 147 xminExmouth = 511616 148 xmaxExmouth = 516764 149 yminExmouth = 7568731 150 ymaxExmouth = 7577540 151 136 xminExmouth = 511000 137 xmaxExmouth = 516000 138 yminExmouth = 7567700 139 ymaxExmouth = 7576500 152 140 153 141 ################################################################################ … … 201 189 event_folder = join(boundaries_folder, str(event_number)) 202 190 203 ### Add csv header list to all files in point_filenames204 ##headerlist = ['x', 'y', 'elevation']205 ##for f in point_filenames:206 ## add_csv_header(join(topographies_folder, f), headerlist)207 208 191 # MUX data files 209 192 # Directory containing the MUX data files to be used with EventSelection. -
anuga_work/production/exmouth_2009/run_model.py
r7209 r7385 137 137 Br = Reflective_boundary(domain) 138 138 Bt = Transmissive_stage_zero_momentum_boundary(domain) 139 Bd = Dirichlet_boundary([project.tide, 0, 0])140 139 Bf = Field_boundary(project.event_sts+'.sts', 141 140 domain, mean_stage=project.tide, -
anuga_work/production/geraldton/geraldton_rerun/Arc_asc2raster_GDA94z50.py
r6682 r7385 32 32 time_dir6 = '20090327_160043_run_final_0_27255_Bt_kvanputt' 33 33 34 time_dirs = [time_dir1 , time_dir2, time_dir3]34 time_dirs = [time_dir1] #, time_dir2, time_dir3] 35 35 36 36 for time_dir in time_dirs: … … 56 56 57 57 generate_filename = [] 58 input_ascii = glob.glob(folder + '* speed_max.asc')58 input_ascii = glob.glob(folder + '*elevation.asc') 59 59 60 60 for infile in input_ascii: -
anuga_work/production/hobart_2009/export_results_max.py
r7355 r7385 21 21 22 22 directory = project.output_folder 23 time_dir1 = '20090 714_162136_run_final_0_58260_None_kvanputt'23 time_dir1 = '20090504_124158_run_final_0_58068_small_kvanputt' 24 24 time_dir2 = '20090714_162041_run_final_0.8_58292_None_kvanputt' 25 25 time_dir3 = '20090714_161944_run_final_0.8_58280_None_kvanputt' 26 26 time_dir4 = '20090714_161740_run_final_0.8_58260_None_kvanputt' 27 27 28 time_dirs = [time_dir1 , time_dir2, time_dir3, time_dir4]28 time_dirs = [time_dir1] 29 29 30 30 # sww filename extensions ie. hobart_time_17640_0.sww, input into list 17640 31 31 # make sure numbers are in sequential order 32 times = [ 16980, 33960, 50940]32 times = [22680, 45360, 68040] 33 33 34 34 #Modify the cellsize value to set the size of the raster you require 35 35 #Take into account mesh size when aplying this paramater 36 cellsize = 2 0 #25036 cellsize = 250 #250 37 37 38 38 #Now set the timestep at which you want the raster generated. … … 120 120 print 'which var=%s' % which_var 121 121 #print 'asc_name ', str(asc_name) 122 if times == []: 123 print 'Only one sww file, no Max file required' 122 if len(names) >1: 123 maxasc_outname = join(directory, time_dir, project.scenario_name)+'_'+which_area+'_'+which_var+'_max.asc' 124 125 print 'max asc outname ', maxasc_outname 126 print 'asc_name ', str(asc_name) 127 128 MaxAsc(maxasc_outname, asc_name) 124 129 else: 125 print 'Multiple sww files' 126 maxasc_outname = join(directory, time_dir, project.scenario_name)+'_'+which_area+'_'+which_var+'_max.asc' 127 print 'maxasc_outname = ', maxasc_outname 128 MaxAsc(maxasc_outname, asc_name) 130 print 'Only one sww file, no Max file required' 131 -
anuga_work/production/onslow_2009_june/Arc_asc2raster_GDA94z50.py
r7261 r7385 25 25 output_dir="anuga\\outputs\\" 26 26 27 time_dir1 = '20090617_110255_run_final_0.0_27283_mhingee' 28 ##time_dir2 = '20090416_072538_run_final_0_27338_1307_Tb__kvanputt' 29 ##time_dir3 = '20090417_021634_run_final_0_70337_1307_Tb__kvanputt' 27 time_dir1 = '20090817_171542_run_final_0.0_27283_kvanputt' 30 28 31 ##time_dir2 = '20090422_102457_run_final_0_70844_1307_Tb_internal_mhingee' 32 33 time_dirs = [time_dir1]#, time_dir2]#, time_dir3] 29 time_dirs = [time_dir1] 34 30 35 31 for time_dir in time_dirs: … … 40 36 ## ocean = scenario_dir + "map_work\\\port_hedland.gdb\\outlines\\initial_conditions_ocean" 41 37 42 ##print 'Process: Create File GDB'43 ##gp.CreateFileGDB_management(folder, "raster")38 print 'Process: Create File GDB' 39 gp.CreateFileGDB_management(folder, "raster") 44 40 45 41 gp.Workspace = raster_gbd … … 48 44 49 45 #replication dictionary 50 replicate = (('onslow', ' o'),('_', ''),('max','_M'),51 ('CBD', 'CDB'), ('All',''),46 replicate = (('onslow', ''),('_', ''),('max','_M'), 47 ('CBD', 'CDB'), 52 48 ('depth','_depth'),('speed', '_speed'), 53 ('elevation', '_ele _'), ('stage','_stage'))49 ('elevation', '_ele'), ('stage','_stage')) 54 50 55 51 generate_filename = [] 56 input_ascii = glob.glob(folder + '* w_O*.asc')52 input_ascii = glob.glob(folder + '*.asc') 57 53 58 54 for infile in input_ascii: … … 72 68 73 69 print 'Process: Define Projection' 74 #GDA_1994_MGA_Zone_5475 70 gp.DefineProjection_management(output_DEM, "PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]" 76 71 ",PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996]" -
anuga_work/production/onslow_2009_june/project.py
r7261 r7385 26 26 # One or all can be changed each time the run_model script is executed 27 27 tide = 0.0 # 3.6 difference between MSL and HAT in metres 28 zone 28 zone= 50 # specify UTM zone of model 29 29 central_meridian = None 30 30 event_number = 27283 # 27255,27283 the event number or the mux file name … … 38 38 # basic - coarse mesh 39 39 # final - fine mesh, slowest 40 41 # MUX input filename. 42 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 43 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 44 ##mux_input_filename = event_number # to be found in event_folder 45 # (ie boundaries/event_number/) 46 ##multi_mux = False 47 mux_input_filename = 'event.list' 48 multi_mux = True 40 49 41 50 #------------------------------------------------------------------------------- … … 64 73 # Format for point is x,y,elevation (with header) 65 74 point_filenames = ['onslow_offshore_points.txt', 66 'revised_coastline.txt',67 75 'beach_survey.txt', 68 76 'ONS16FINAL.txt', … … 75 83 ## add_csv_header(join(topographies_folder, f), headerlist) 76 84 77 # BOUNDING POLYGON - for data clipping and estimate of triangles in mesh85 # SIMPLE BOUNDING POLYGON - for data clipping and estimate of triangles in mesh 78 86 # Used in build_elevation.py 79 87 # Format for points easting,northing (no header) … … 92 100 ['island4_MH.csv', 3000]] 93 101 94 PriorityArea_filename = None 102 #Format for points easting,northing,id,value 103 interior_regions_combined_filename = None 95 104 96 105 # LAND - used to set the initial stage/water to be offcoast only 97 # Used in run_model.py. Format for points easting,northing,id,value 98 land_initial_conditions_filename = 'initial_conditions_mainland.csv' 106 # Used in run_model.py. 107 # If a list format for points easting,northing (no header) 108 109 ##land_initial_conditions_filename = [] 110 111 #Format for points easting,northing,id,value 112 land_initial_conditions_filename = 'initial_conditions_simple.csv' 113 114 # MODEL BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively 115 # NOTE: when files are put together the points must be in sequence 116 # For ease go clockwise! 117 # Check the run_model.py for boundary_tags 118 119 # Thinned ordering file from Hazard Map (geographic) 120 # Format is index,latitude,longitude (with header) 121 urs_order_filename = 'urs_order.csv' 122 123 # Landward bounding points 124 # Format easting,northing (no header) 125 landward_boundary_filename = 'landward_boundary.csv' 126 127 #------------------------------------------------------------------------------- 128 # For output sww file 129 #------------------------------------------------------------------------------- 99 130 100 131 # GAUGES - for creating timeseries at a specific point … … 105 136 # Used in run_building_inundation.py 106 137 # Format latitude,longitude etc (geographic) 107 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS138 building_exposure_filename = '' # from NEXIS 108 139 109 140 # AREA OF IMAGES - Extent of each image to find out highest runup … … 112 143 images_filename = '' 113 144 114 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively 115 # NOTE: when files are put together the points must be in sequence 116 # For ease go clockwise! 117 # Check the run_model.py for boundary_tags 118 119 # Thinned ordering file from Hazard Map (geographic) 120 # Format is index,latitude,longitude (with header) 121 urs_order_filename = 'urs_order.csv' 122 123 # Landward bounding points 124 # Format easting,northing (no header) 125 landward_boundary_filename = 'landward_boundary.csv' 126 127 # MUX input filename. 128 # If a meta-file from EventSelection is used, set 'multi-mux' to True. 129 # If a single MUX stem filename (*.grd) is used, set 'multi-mux' to False. 130 ##mux_input_filename = event_number # to be found in event_folder 131 # (ie boundaries/event_number/) 132 ##multi_mux = False 133 mux_input_filename = 'event.list' 134 multi_mux = True 135 136 #------------------------------------------------------------------------------- 145 137 146 # Clipping regions for export to asc and regions for clipping data 138 147 # Final inundation maps should only be created in regions of the finest mesh 139 #-------------------------------------------------------------------------------140 148 141 149 # ASCII export grid for Onslow 142 xminOnslow = 301 199143 xmaxOnslow = 311 353144 yminOnslow = 760 0921145 ymaxOnslow = 7609 833150 xminOnslow = 301200 151 xmaxOnslow = 311500 152 yminOnslow = 7601000 153 ymaxOnslow = 7609200 146 154 147 155 … … 254 262 255 263 #Multiple polygons in one CSV file to make internal polygons 256 if not PriorityArea_filename == None:257 PriorityAreas = join(polygons_folder, PriorityArea_filename)258 259 264 if not interior_regions_combined_filename == None: 265 interior_regions_combined = join(polygons_folder, interior_regions_combined_filename) 266 267 -
anuga_work/production/onslow_2009_june/setup_model.py
r7209 r7385 169 169 project.interior_regions = [] 170 170 171 if project. PriorityArea_filename is not None:171 if project.interior_regions_combined_filename is not None: 172 172 polygons, maxareas = csv2polygons(project.PriorityAreas) 173 173 print 'Creating %d internal polygons' % len(polygons) -
anuga_work/production/perth/perth_rerun/Arc_asc2raster_GDA94z50.py
r7113 r7385 32 32 time_dir6 = '20090327_155803_run_final_0_68693_Bt_kvanputt' 33 33 34 time_dirs = [time_dir 4, time_dir5, time_dir6] #time_dir1, time_dir2, time_dir3,34 time_dirs = [time_dir1] #4, time_dir5, time_dir6] #time_dir1, time_dir2, time_dir3, 35 35 36 36 for time_dir in time_dirs: … … 57 57 58 58 generate_filename = [] 59 input_ascii = glob.glob(folder + '* speed_max.asc')59 input_ascii = glob.glob(folder + '*elevation.asc') 60 60 print time_dir 61 61 -
anuga_work/production/pt_hedland_2009/Arc_asc2raster_GDA94z50.py
r7261 r7385 25 25 output_dir="anuga\\outputs\\" 26 26 27 time_dir1 = '20090615_151314_run_final_0.0_27283_mhingee' 28 ##time_dir2 = '20090416_072538_run_final_0_27338_1307_Tb__kvanputt' 29 ##time_dir3 = '20090417_021634_run_final_0_70337_1307_Tb__kvanputt' 27 time_dir1 = '20090818_133107_run_final_0.0_27283_kvanputt' 30 28 31 ##time_dir2 = '20090422_102457_run_final_0_70844_1307_Tb_internal_mhingee' 32 33 time_dirs = [time_dir1]#, time_dir2]#, time_dir3] 29 time_dirs = [time_dir1] 34 30 35 31 for time_dir in time_dirs: … … 40 36 ## ocean = scenario_dir + "map_work\\\port_hedland.gdb\\outlines\\initial_conditions_ocean" 41 37 42 ##print 'Process: Create File GDB'43 ##gp.CreateFileGDB_management(folder, "raster")38 print 'Process: Create File GDB' 39 gp.CreateFileGDB_management(folder, "raster") 44 40 45 41 gp.Workspace = raster_gbd … … 49 45 #replication dictionary 50 46 replicate = (('pt_hedland', ''),('_', ''),('max','_M'), 51 ('CBD', 'CDB'), ('All',''),47 ('CBD', 'CDB'), ('PtHedland', 'PH'), 52 48 ('depth','_depth'),('speed', '_speed'), 53 ('elevation', '_ele _'), ('stage','_stage'))49 ('elevation', '_ele'), ('stage','_stage')) 54 50 55 51 generate_filename = [] 56 input_ascii = glob.glob(folder + '* Town*.asc')52 input_ascii = glob.glob(folder + '*.asc') 57 53 58 54 for infile in input_ascii: … … 72 68 73 69 print 'Process: Define Projection' 74 #GDA_1994_MGA_Zone_5475 70 gp.DefineProjection_management(output_DEM, "PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]" 76 71 ",PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996]" -
anuga_work/production/pt_hedland_2009/project.py
r7261 r7385 32 32 friction=0.01 # manning's friction coefficient 33 33 starttime=0 # start time for simulation 34 finaltime= 80000 # final time for simulation34 finaltime=1000 # final time for simulation 35 35 36 36 setup = 'final' # This can be one of three values … … 83 83 # LAND - used to set the initial stage/water to be offcoast only 84 84 # Used in run_model.py. Format for points easting,northing,id,value 85 land_initial_conditions_filename = 'initial_conditions_ comb.csv'85 land_initial_conditions_filename = 'initial_conditions_simple.csv' 86 86 87 87 # GAUGES - for creating timeseries at a specific point … … 92 92 # Used in run_building_inundation.py 93 93 # Format latitude,longitude etc (geographic) 94 building_exposure_filename = ' busselton_res_clip.csv' # from NEXIS94 building_exposure_filename = '' # from NEXIS 95 95 96 96 # AREA OF IMAGES - Extent of each image to find out highest runup … … 127 127 128 128 # ASCII export grid for Pt Hedland 129 xmin Town = 659643130 xmax Town = 676236131 ymin Town = 7744216132 ymax Town = 7757347129 xminPtHedland = 659400 130 xmaxPtHedland = 676600 131 yminPtHedland = 7744000 132 ymaxPtHedland = 7757300 133 133 134 134
Note: See TracChangeset
for help on using the changeset viewer.