Changeset 6427
- Timestamp:
- Feb 27, 2009, 9:02:48 AM (16 years ago)
- Location:
- anuga_work/production/new_south_wales/batemans_bay
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/new_south_wales/batemans_bay/build_elevation.py
r6386 r6427 59 59 dem2pts(absolute_filename, use_cache=True, verbose=True) 60 60 61 geospatial_data[filename]= Geospatial_data(file_name=absolute_filename+'.pts',61 G_grid = Geospatial_data(file_name=absolute_filename+'.pts', 62 62 verbose=True) 63 print 'Clip geospatial object' 64 geospatial_data[filename] = G_grid.clip(project.bounding_polygon) 63 65 64 66 # Create Geospatial data from TXT files … … 66 68 for filename in project.point_filenames: 67 69 absolute_filename = join(project.topographies_folder, filename) 68 geospatial_data[filename]= Geospatial_data(file_name=absolute_filename,70 G_points = Geospatial_data(file_name=absolute_filename, 69 71 verbose=True) 72 print 'Clip geospatial object' 73 geospatial_data[filename] = G_points.clip(project.bounding_polygon) 70 74 71 75 #------------------------------------------------------------------------------- … … 82 86 G += geospatial_data[key] 83 87 84 print 'Clip combined geospatial data'88 #print 'Clip combined geospatial data' 85 89 ##G_clip = G.clip_outside(project.poly_aoi1) 86 90 ##G_all = G_clip + geospatial_data[project.point_filenames[4]] 87 91 #G_clipped = G_all.clip(project.poly_all) 88 G_clip = G.clip(project.bounding_polygon)92 #G_clip = G.clip(project.bounding_polygon) 89 93 90 94 91 95 print 'Export combined DEM file' 92 G _clip.export_points_file(project.combined_elevation + '.pts')96 G.export_points_file(project.combined_elevation + '.pts') 93 97 print 'Do txt version too' 94 98 # Use for comparision in ARC 95 G _clip.export_points_file(project.combined_elevation + '.txt')99 G.export_points_file(project.combined_elevation + '.txt') 96 100 -
anuga_work/production/new_south_wales/batemans_bay/export_results_max.py
r6386 r6427 29 29 ##time_dirs = [time_dir1, time_dir2]#, time_dir3] 30 30 31 time_dir1 = '20090 130_165532_run_final_0.6_27255_extend_dt_kvanputt'31 time_dir1 = '20090225_153333_run_final_0_31821_jgriffin' 32 32 ##time_dir2 = '20081211_162311_run_final_0_27255_alpha0.1_kvanputt' 33 33 ##time_dir3 = '20081211_162346_run_final_0_68693_alpha0.1_kvanputt' … … 39 39 40 40 41 cellsize = 2 5041 cellsize = 20 42 42 ##cellsize = 5 43 43 -
anuga_work/production/new_south_wales/batemans_bay/project.py
r6386 r6427 16 16 # this section needs to be updated to reflect the modelled community. 17 17 # Note, the user needs to set up the directory system accordingly 18 state = ' western_australia'19 scenario_name = 'b usselton'20 scenario_folder = 'b usselton_tsunami_scenario'18 state = 'new_south_wales' 19 scenario_name = 'batemans_bay' 20 scenario_folder = 'batemans_bay_tsunami_scenario_2009' 21 21 22 22 #------------------------------------------------------------------------------- … … 27 27 # One or all can be changed each time the run_model script is executed 28 28 tide = 0 # difference between MSL and HAT 29 event_number = 27197# the event number or the mux file name29 event_number = 31821 # the event number or the mux file name 30 30 alpha = 0.1 # smoothing parameter for mesh 31 31 friction=0.01 # manning's friction coefficient 32 32 starttime=0 # start time for simulation 33 finaltime= 80000 # final time for simulation33 finaltime=1000 # final time for simulation 34 34 35 35 setup = 'final' # This can be one of three values … … 58 58 # Used in build_elevation.py 59 59 # Format for ascii grids, as produced in ArcGIS + a projection file 60 ascii_grid_filenames = ['busselton_v2', # Topo 61 'grid_250m_clip'] # Busselton Topo 62 60 ascii_grid_filenames = ['1a',# Topographic data 61 '1b', 62 '2b', 63 '2a_3', 64 '3b', 65 '3a', 66 '4a_2', 67 '4b',] 68 63 69 # Format for point is x,y,elevation (with header) 64 point_filenames = ['Busselton_Contour0.txt', # Coastline 65 'Busselton_BeachSurvey.txt', # Beach survey 66 'Busselton_NavyFinal.txt', # Bathymetry 67 'Busselton_Chart.txt', # Bathymetry Charts 68 'Busselton_Digitised.txt', # Digitised Fairsheet 69 'Busselton_250m.txt', # 250m 70 'Bunbury_TIN.txt', # Bunbury aoi TIN'd in ArcGIS 71 'Busselton_TIN.txt', # Busselton aoi TIN'd in ArcGIS 72 'XYAHD_clip.txt'] # To extend boundary 70 point_filenames = ['Batemans_BBHD_MGA_1995.csv', 71 'SD100015374_MGA.csv', 72 'SD100016502_MGA.csv', 73 'SD100016517_MGA.csv', 74 'SD100031996_batemans_mga_clip_written.csv', 75 'tomaga_offshore_AHD_MGA_1997.csv'] 76 73 77 74 78 ### Add csv header list to all files in point_filenames … … 85 89 # INTERIOR REGIONS - for designing the mesh 86 90 # Used in run_model.py 87 # Format for points easting,northing (no header) 88 interior_regions_data = [['busselton_1km.csv', 500], 89 ['bunbury_1km.csv', 500], 90 ['busselton_2km.csv', 10000], 91 ['bunbury_2km.csv', 10000], 92 ['island1.csv', 10000], 93 ['island2.csv', 10000], 94 ['coast_5km_d20m.csv', 40000]] 91 # Format for points easting,northing (no header) 92 93 interior_regions_data = [['area_of_interest.csv', 500], 94 ['area_of_significance.csv', 2500], 95 ['shallow_water.csv', 10000]] 96 95 97 96 98 # LAND - used to set the initial stage/water to be offcoast only 97 99 # Used in run_model.py. Format for points easting,northing (no header) 98 land_initial_conditions_filename = [['initial_condition_extend.csv', 0] ,99 ['initial_condition_marina.csv', 0]]100 land_initial_conditions_filename = [['initial_condition_extend.csv', 0]] 101 100 102 101 103 # GAUGES - for creating timeseries at a specific point 102 104 # Used in get_timeseries.py. 103 105 # Format easting,northing,name,elevation (with header) 104 gauges_filename = 'gauges.csv'106 ##gauges_filename = 'gauges.csv' 105 107 106 108 # BUILDINGS EXPOSURE - for identifying inundated houses 107 109 # Used in run_building_inundation.py 108 110 # Format latitude,longitude etc (geographic) 109 building_exposure_filename = 'busselton_res_clip.csv' # from NEXIS111 ##building_exposure_filename = 'busselton_res_clip.csv' # from NEXIS 110 112 111 113 # BOUNDING POLYGON - used in build_boundary.py and run_model.py respectively … … 237 239 # The absolute pathname for the gauges file 238 240 # Used for get_timeseries.py 239 gauges = join(gauges_folder, gauges_filename)241 ##gauges = join(gauges_folder, gauges_filename) 240 242 241 243 # The absolute pathname for the building file 242 244 # Used for run_building_inundation.py 243 building_exposure = join(gauges_folder, building_exposure_filename)245 ##building_exposure = join(gauges_folder, building_exposure_filename) 244 246 245 247 # full path to where MUX files (or meta-files) live -
anuga_work/production/new_south_wales/batemans_bay/run_model.py
r6386 r6427 100 100 interior_regions=project.interior_regions, 101 101 mesh_filename=project.meshes, 102 use_cache= True,102 use_cache=False, 103 103 verbose=True) 104 104 print domain.statistics()
Note: See TracChangeset
for help on using the changeset viewer.