Changeset 5645
- Timestamp:
- Aug 13, 2008, 8:21:21 AM (16 years ago)
- Location:
- anuga_work/production
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/run_busselton.py
r5626 r5645 42 42 from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon 43 43 from anuga.geospatial_data.geospatial_data import find_optimal_smoothing_parameter 44 44 from Scientific.IO.NetCDF import NetCDFFile 45 45 # Application specific imports 46 46 import project # Definition of file names and polygons … … 199 199 Bd = Dirichlet_boundary([kwargs['tide'],0,0]) 200 200 201 print dir(Bf) 202 print 'finished reading boundary file' 201 fid = NetCDFFile(boundary_urs_out+'.sts', 'r') #Open existing file for read 202 sts_time=fid.variables['time'][:]+fid.starttime 203 tmin=min(sts_time) 204 tmax=max(sts_time) 205 fid.close() 206 207 print 'Boundary end time ', tmax-tmin 203 208 204 209 domain.set_boundary({'back': Bd, … … 220 225 domain.write_boundary_statistics(tags = 'ocean') 221 226 227 if t >= tmax-tmin: 228 print 'changed to tide boundary condition at ocean' 229 domain.set_boundary({'ocean': Bd}) 222 230 223 231 x, y = domain.get_maximum_inundation_location() -
anuga_work/production/onslow_2008/run_onslow.py
r5635 r5645 42 42 from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon 43 43 from anuga.geospatial_data.geospatial_data import find_optimal_smoothing_parameter 44 44 from Scientific.IO.NetCDF import NetCDFFile 45 45 # Application specific imports 46 46 import project # Definition of file names and polygons … … 83 83 # Reading the landward defined points, this incorporates the original clipping 84 84 # polygon minus the 100m contour 85 landward_bounding_polygon = read_polygon(project. polygons_dir+'landward_bounding_polygon.txt')85 landward_bounding_polygon = read_polygon(project.boundaries_dir+'landward_bounding_polygon.txt') 86 86 87 87 # Combine sts polyline with landward points … … 216 216 Bd = Dirichlet_boundary([kwargs['tide'],0,0]) 217 217 218 print dir(Bf) 219 print 'start reading boundary file' 220 221 218 fid = NetCDFFile(boundary_urs_out+'.sts', 'r') #Open existing file for read 219 sts_time=fid.variables['time'][:]+fid.starttime 220 tmin=min(sts_time) 221 tmax=max(sts_time) 222 fid.close() 223 224 print 'Boundary end time ', tmax-tmin 225 222 226 ## Bf = Field_boundary(kwargs['boundary_file'], 223 227 ## domain, time_thinning=kwargs['time_thinning'], mean_stage=kwargs['tide'], … … 241 245 domain.write_time() 242 246 domain.write_boundary_statistics(tags = 'ocean') 247 248 if t >= tmax-tmin: 249 print 'changed to tide boundary condition at ocean' 250 domain.set_boundary({'ocean': Bd}) 243 251 244 252 x, y = domain.get_maximum_inundation_location() -
anuga_work/production/perth/run_perth.py
r5626 r5645 42 42 from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon 43 43 from anuga.geospatial_data.geospatial_data import find_optimal_smoothing_parameter 44 from Scientific.IO.NetCDF import NetCDFFile 44 45 45 46 # Application specific imports … … 213 214 boundary_polygon=bounding_polygon) 214 215 216 215 217 Br = Reflective_boundary(domain) 216 218 Bd = Dirichlet_boundary([kwargs['tide'],0,0]) 217 219 218 print dir(Bf) 219 print 'start reading boundary file' 220 221 220 fid = NetCDFFile(boundary_urs_out+'.sts', 'r') #Open existing file for read 221 sts_time=fid.variables['time'][:]+fid.starttime 222 tmin=min(sts_time) 223 tmax=max(sts_time) 224 fid.close() 225 226 print 'Boundary end time ', tmax-tmin 227 222 228 ## Bf = Field_boundary(kwargs['boundary_file'], 223 229 ## domain, time_thinning=kwargs['time_thinning'], mean_stage=kwargs['tide'], … … 241 247 domain.write_time() 242 248 domain.write_boundary_statistics(tags = 'ocean') 249 250 if t >= tmax-tmin: 251 print 'changed to tide boundary condition at ocean' 252 domain.set_boundary({'ocean': Bd}) 243 253 244 254 x, y = domain.get_maximum_inundation_location()
Note: See TracChangeset
for help on using the changeset viewer.