Changeset 6895
- Timestamp:
- Apr 24, 2009, 10:58:04 AM (16 years ago)
- Location:
- anuga_work/production/australia_ph2/bamaga
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/bamaga/build_elevation.py
r6742 r6895 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/australia_ph2/bamaga/build_urs_boundary.py
r6760 r6895 139 139 ordering_filename=project.urs_order, 140 140 weights=mux_weights, 141 central_meridian=project.central_meridian,141 #central_meridian=project.central_meridian, 142 142 zone=project.zone, 143 143 verbose=True) -
anuga_work/production/australia_ph2/bamaga/project.py
r6772 r6895 17 17 # Note, the user needs to set up the directory system accordingly 18 18 state = 'australia_ph2' 19 scenario_name = ' bamaga'19 scenario_name = 'gulf' 20 20 21 21 #------------------------------------------------------------------------------- … … 26 26 # One or all can be changed each time the run_model script is executed 27 27 28 central_meridian = 143.5 # Central meridian for projection (optional) 29 zone = None 30 import sys 31 if len(sys.argv) > 1: 32 event_number = int(sys.argv[1]) 33 else: 34 event_number = 31975 # the event number or the mux file name 35 36 event_number_list = [31975, 51390, 63735] # To piggy back multiple events 28 #central_meridian = 143.5 # Central meridian for projection (optional) 29 zone = 54 30 ##import sys 31 ##if len(sys.argv) > 1: 32 ## event_number = int(sys.argv[1]) 33 ##else: 34 35 event_number = 64977 # the event number or the mux file name 36 37 #event_number_list = [31975, 51390, 63735] # To piggy back multiple events 37 38 38 39 tide = 0 # difference between MSL and HAT … … 40 41 friction=0.01 # manning's friction coefficient 41 42 starttime=0 # start time for simulation 42 finaltime= 60000 # final time for simulation43 finaltime=80000 # final time for simulation 43 44 setup = 'final' # This can be one of three values 44 45 # trial - coarsest mesh, fast … … 47 48 48 49 # index is only used when wave = Tb 49 index = 2000# index from the PTHA - Y2000 0.257m50 index = 1914 # index from the PTHA - Y2000 0.257m 50 51 wave = 'Tb' # Bf (sts wave) Tb (index wave) 51 52 … … 78 79 # Used in build_elevation.py 79 80 # Format for ascii grids, as produced in ArcGIS + a projection file 80 ascii_grid_filenames = ['g rid250m_pro'] # 250m grid 200581 ascii_grid_filenames = ['gulf_bg'] # 250m grid 2005 81 82 82 83 # Format for points is x,y,elevation (with header) -
anuga_work/production/australia_ph2/bamaga/run_model.py
r6742 r6895 92 92 # Boundary tags refer to project.landward_boundary 93 93 # 4 points equals 5 segments start at N 94 boundary_tags={'back': range(num_ocean_segments+1, 95 num_ocean_segments+num_land_points), 96 'side': [num_ocean_segments, 97 num_ocean_segments+num_land_points], 98 'ocean': range(num_ocean_segments)} 94 ##boundary_tags={'back': range(num_ocean_segments+1, 95 ## num_ocean_segments+num_land_points), 96 ## 'side': [num_ocean_segments, 97 ## num_ocean_segments+num_land_points], 98 ## 'ocean': range(num_ocean_segments)} 99 boundary_tags = {'back':[3], 100 'side':[2,4], 101 'ocean':[0,1,5]} 102 103 print 'boundary tags', boundary_tags 99 104 100 105 # Build mesh and domain
Note: See TracChangeset
for help on using the changeset viewer.