Changeset 8121
- Timestamp:
- Feb 6, 2011, 7:20:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file_conversion/sts2sww_mesh.py
r8120 r8121 29 29 30 30 if verbose: print "Reading sts NetCDF file: %s" %stsname 31 infile = NetCDFFile(stsname, 'r')31 infile = NetCDFFile(stsname, netcdf_mode_r) 32 32 cellsize = infile.cellsize 33 33 ncols = infile.ncols … … 107 107 if verbose: 108 108 print "Writing sww wind and pressure field file" 109 outfile = NetCDFFile(swwname, 'wl')109 outfile = NetCDFFile(swwname, netcdf_mode_w) 110 110 sww = Write_sww([], ['wind_speed','wind_angle','barometric_pressure']) 111 111 sww.store_header(outfile, times, len(volumes), len(points_utm),
Note: See TracChangeset
for help on using the changeset viewer.