Changeset 4196 for anuga_work
- Timestamp:
- Jan 29, 2007, 5:51:03 PM (18 years ago)
- Location:
- anuga_work/production/dampier_2006
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/build_dampier.py
r4186 r4196 55 55 # Fine pts file to be clipped to area of interest 56 56 #------------------------------------------------------------------------------- 57 print"project.poly_all",project.poly_all58 57 print"project.combined_dir_name",project.combined_dir_name 59 58 … … 62 61 coast_in_dir_name = project.coast_in_dir_name 63 62 offshore_in_dir_name = project.offshore_in_dir_name 64 offshore1_in_dir_name = project.offshore1_in_dir_name65 offshore2_in_dir_name = project.offshore2_in_dir_name63 #offshore1_in_dir_name = project.offshore1_in_dir_name 64 #offshore2_in_dir_name = project.offshore2_in_dir_name 66 65 67 66 onshore_dir_name = project.onshore_dir_name 68 67 coast_dir_name = project.coast_dir_name 69 68 offshore_dir_name = project.offshore_dir_name 70 offshore1_dir_name = project.offshore1_dir_name71 offshore2_dir_name = project.offshore2_dir_name69 #offshore1_dir_name = project.offshore1_dir_name 70 #offshore2_dir_name = project.offshore2_dir_name 72 71 73 72 # creates DEM from asc data … … 76 75 basename_out=onshore_dir_name, 77 76 use_cache=True, verbose=True) 77 ''' 78 78 convert_dem_from_ascii2netcdf(offshore1_in_dir_name, 79 79 basename_out=offshore1_dir_name, … … 82 82 basename_out=offshore2_dir_name, 83 83 use_cache=True, verbose=True) 84 84 ''' 85 85 #creates pts file for onshore DEM 86 86 print "creates pts file for onshore DEM" 87 87 dem2pts(onshore_dir_name, use_cache=True, verbose=True) 88 88 ''' 89 89 #creates pts file for clipped DEMs 90 90 dem2pts(offshore1_dir_name, … … 94 94 basename_out=offshore2_dir_name, 95 95 use_cache=True, verbose=True) 96 96 ''' 97 97 print'create Geospatial onshore objects from topographies' 98 98 #print'create Geospatial coastal objects from topographies' … … 101 101 #print'create Geospatial offshore objects from topographies' 102 102 G = Geospatial_data(file_name = onshore_dir_name + '.pts') +\ 103 Geospatial_data(file_name = coast_in_dir_name + '.xya') +\ 104 Geospatial_data(file_name = offshore1_dir_name + '.pts') +\ 105 Geospatial_data(file_name = offshore2_dir_name + '.pts') +\ 106 Geospatial_data(file_name = offshore_in_dir_name + '.xya') 103 Geospatial_data(file_name = coast_in_dir_name + '.txt') +\ 104 Geospatial_data(file_name = offshore_in_dir_name + '.txt') 107 105 108 106 print'add all geospatial objects' … … 119 117 G_clipped.export_points_file(project.combined_dir_name + '.pts') 120 118 #G_clipped.export_points_file(project.combined_dir_name + '.txt') 119 120 print'split combined data set' 121 G_small, G_other = G_clipped.split(0.1, True) 122 123 print'export split DEM file' 124 G_small.export_points_file(project.combined_dir_name + '_small' + '.pts') 125 G_other.export_points_file(project.combined_dir_name + '_other' + '.pts') 126 127 -
anuga_work/production/dampier_2006/project.py
r4193 r4196 35 35 36 36 # onshore data provided by WA DLI 37 onshore_name = ' dli' # original37 onshore_name = 'DLI_DTED_raster_clipped' # original 38 38 39 39 # AHO + DPI data + colin French coastline 40 coast_name = 'coastline '41 offshore_name = ' bathymetry'42 offshore1_name = 'elev_501'43 offshore2_name = 'inferrec_e'40 coast_name = 'coastline_edited_w_DEM' 41 offshore_name = 'clipped_bathy' 42 #offshore1_name = 'elev_501' 43 #offshore2_name = 'inferrec_e' 44 44 45 45 #final topo name … … 55 55 coast_in_dir_name = topographies_in_dir + coast_name 56 56 offshore_in_dir_name = topographies_in_dir + offshore_name 57 offshore1_in_dir_name = topographies_in_dir + offshore1_name58 offshore2_in_dir_name = topographies_in_dir + offshore2_name57 #offshore1_in_dir_name = topographies_in_dir + offshore1_name 58 #offshore2_in_dir_name = topographies_in_dir + offshore2_name 59 59 60 60 onshore_dir_name = topographies_dir + onshore_name 61 61 coast_dir_name = topographies_dir + coast_name 62 62 offshore_dir_name = topographies_dir + offshore_name 63 offshore1_dir_name = topographies_dir + offshore1_name64 offshore2_dir_name = topographies_dir + offshore2_name63 #offshore1_dir_name = topographies_dir + offshore1_name 64 #offshore2_dir_name = topographies_dir + offshore2_name 65 65 66 66 #final topo files … … 77 77 78 78 boundaries_source = '' 79 boundaries_name = 'o _velocity'79 boundaries_name = 'o' 80 80 #boundaries locations 81 boundaries_in_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+'urs'+sep+ boundaries_source+sep81 boundaries_in_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep+'urs'+sep+'1_10000'+sep 82 82 boundaries_in_dir_name = boundaries_in_dir + boundaries_name 83 83 boundaries_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'boundaries'+sep … … 230 230 ################################################################### 231 231 232 poly_bathy = read_polygon(polygons_dir+' poly_bathy.csv')232 poly_bathy = read_polygon(polygons_dir+'mainland_only.csv') 233 233 234 234 # exporting asc grid - Dampier -
anuga_work/production/dampier_2006/run_dampier.py
r4193 r4196 67 67 # resolutions (maximal area of per triangle) for each polygon 68 68 #-------------------------------------------------------------------------- 69 69 ''' 70 70 poly = [[0,0],[0,100],[100,100],[100,0]] 71 71 … … 80 80 81 81 sys.exit() 82 82 ''' 83 83 if myid == 0: 84 84 … … 102 102 domain = Domain(meshes_dir_name, use_cache=True, verbose=True) 103 103 print domain.statistics() 104 104 boundaries_dir_name=project.boundaries_dir_name 105 105 106 106 print 'starting to create boundary conditions' 107 boundaries_in_dir_name = project.boundaries_in_dir_name 108 109 from anuga.shallow_water.data_manager import urs2sw 107 108 from anuga.shallow_water.data_manager import urs2sww 110 109 111 110 # put above distribute 112 print 'boundary file is: ', boundaries_dir_name111 print 'boundary file is: ',project.boundaries_dir_name 113 112 from caching import cache 114 113 if myid == 0: 115 114 cache(urs2sww, 116 ( boundaries_in_dir_name,117 boundaries_dir_name),115 (project.boundaries_in_dir_name, 116 project.boundaries_dir_name), 118 117 {'verbose': True, 119 118 'minlat': project.south_boundary, … … 140 139 from polygon import * 141 140 #following sets the stage/water to be offcoast only 142 IC = Polygon_function( [(project.poly_bathy, tide)], default = 0.)141 IC = Polygon_function( [(project.poly_bathy, 0.)], default = tide) 143 142 domain.set_quantity('stage', IC) 144 143 domain.set_quantity('friction', 0.01) … … 202 201 t0 = time.time() 203 202 204 for t in domain.evolve(yieldstep = 60, finaltime = 34000):203 for t in domain.evolve(yieldstep = 120, finaltime = 34000): 205 204 domain.write_time() 206 205 domain.write_boundary_statistics(tags = 'ocean')
Note: See TracChangeset
for help on using the changeset viewer.