Changeset 5162 for anuga_validation/convergence_study/animatesww2d_alt.py
- Timestamp:
- Mar 11, 2008, 8:43:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/convergence_study/animatesww2d_alt.py
r4838 r5162 1 def animatesww2d_alt(sww_filename, movie_filename, range):2 """Plot cross section of model output3 """1 ## def animatesww2d_alt(sww_filename, movie_filename, range): 2 ## """Plot cross section of model output 3 ## """ 4 4 5 # Read SWW file6 from Scientific.IO.NetCDF import NetCDFFile7 fid = NetCDFFile(sww_filename, 'r')5 ## # Read SWW file 6 ## from Scientific.IO.NetCDF import NetCDFFile 7 ## fid = NetCDFFile(sww_filename, 'r') 8 8 9 x = fid.variables['x']10 y = fid.variables['y']11 volumes = fid.variables['volumes']9 ## x = fid.variables['x'] 10 ## y = fid.variables['y'] 11 ## volumes = fid.variables['volumes'] 12 12 13 elevation = fid.variables['elevation']14 time = fid.variables['time']15 stage = fid.variables['stage']16 xmomentum = fid.variables['xmomentum']17 ymomentum = fid.variables['ymomentum']13 ## elevation = fid.variables['elevation'] 14 ## time = fid.variables['time'] 15 ## stage = fid.variables['stage'] 16 ## xmomentum = fid.variables['xmomentum'] 17 ## ymomentum = fid.variables['ymomentum'] 18 18 19 19 def animatesww2d(swwfile): … … 34 34 # interpolation points are for y = 0 35 35 # number of increments in x 36 m = 100 36 m = 1000 37 37 max_x = 100000. 38 38 x = 0
Note: See TracChangeset
for help on using the changeset viewer.