Changeset 4212 for anuga_work/production
- Timestamp:
- Feb 5, 2007, 11:28:49 AM (18 years ago)
- Location:
- anuga_work/production/dampier_2006
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/build_dampier.py
r4196 r4212 61 61 coast_in_dir_name = project.coast_in_dir_name 62 62 offshore_in_dir_name = project.offshore_in_dir_name 63 #offshore1_in_dir_name = project.offshore1_in_dir_name64 #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 65 65 66 66 onshore_dir_name = project.onshore_dir_name 67 67 coast_dir_name = project.coast_dir_name 68 68 offshore_dir_name = project.offshore_dir_name 69 #offshore1_dir_name = project.offshore1_dir_name70 #offshore2_dir_name = project.offshore2_dir_name71 69 offshore1_dir_name = project.offshore1_dir_name 70 offshore2_dir_name = project.offshore2_dir_name 71 ''' 72 72 # creates DEM from asc data 73 73 print "creates DEMs from asc data" … … 75 75 basename_out=onshore_dir_name, 76 76 use_cache=True, verbose=True) 77 ''' 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 + '.txt') +\ 104 Geospatial_data(file_name = offshore_in_dir_name + '.txt') 103 Geospatial_data(file_name = coast_in_dir_name + '.txt') +\ 104 Geospatial_data(file_name = offshore_in_dir_name + '.txt') +\ 105 Geospatial_data(file_name = offshore1_dir_name + '.pts') +\ 106 Geospatial_data(file_name = offshore2_dir_name + '.pts') 107 105 108 106 109 print'add all geospatial objects' … … 124 127 G_small.export_points_file(project.combined_dir_name + '_small' + '.pts') 125 128 G_other.export_points_file(project.combined_dir_name + '_other' + '.pts') 129 ''' 130 print 'start reading:',project.combined_dir_name + '.pts' 131 G = Geospatial_data(file_name = project.combined_dir_name + '.pts') 132 print 'start export',project.combined_dir_name + '.txt' 133 G.export_points_file(project.combined_dir_name + '.txt') 126 134 127 135 136 137 138 -
anuga_work/production/dampier_2006/project.py
r4196 r4212 27 27 print 'gtime: ', gtime 28 28 29 tide = 0.629 tide = 2.4 30 30 31 31 #Making assumptions about the location of scenario data … … 40 40 coast_name = 'coastline_edited_w_DEM' 41 41 offshore_name = 'clipped_bathy' 42 #offshore1_name = 'elev_501'43 #offshore2_name = 'inferrec_e'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 -
anuga_work/production/dampier_2006/run_dampier.py
r4196 r4212 145 145 146 146 domain.set_quantity('elevation', 147 filename = project.combined_dir_name + '.pts', 147 # filename = project.combined_dir_name + '.pts', 148 # MUST USE TXT FILES FOR CACHING TO WORK! 149 filename = project.combined_dir_name + '.txt', 148 150 use_cache = True, 149 151 verbose = True, … … 179 181 print 'Reading Boundary file' 180 182 Bf = File_boundary(boundaries_dir_name + '.sww', 181 domain, time_thinning=1 0, use_cache=True, verbose=True)183 domain, time_thinning=1, use_cache=True, verbose=True) 182 184 183 185 print 'finished reading boundary file' … … 201 203 t0 = time.time() 202 204 203 for t in domain.evolve(yieldstep = 120, finaltime = 34000):205 for t in domain.evolve(yieldstep = 120, finaltime = 9000): 204 206 domain.write_time() 205 207 domain.write_boundary_statistics(tags = 'ocean') … … 209 211 # domain.write_boundary_statistics(tags = 'ocean') 210 212 211 #for t in domain.evolve(yieldstep = 60, finaltime = 28800212 #,skip_initial_step = True):213 #domain.write_time()214 #domain.write_boundary_statistics(tags = 'ocean')215 216 #for t in domain.evolve(yieldstep = 120, finaltime = 34800217 #,skip_initial_step = True):218 #domain.write_time()219 #domain.write_boundary_statistics(tags = 'ocean')213 for t in domain.evolve(yieldstep = 60, finaltime = 28800 214 ,skip_initial_step = True): 215 domain.write_time() 216 domain.write_boundary_statistics(tags = 'ocean') 217 218 for t in domain.evolve(yieldstep = 120, finaltime = 34800 219 ,skip_initial_step = True): 220 domain.write_time() 221 domain.write_boundary_statistics(tags = 'ocean') 220 222 221 223 x, y = domain.get_maximum_inundation_location()
Note: See TracChangeset
for help on using the changeset viewer.