Changeset 8121


Ignore:
Timestamp:
Feb 6, 2011, 7:20:49 PM (14 years ago)
Author:
steve
Message:

Changed netcdf read/write mode to netcdf_mode_r/netcdf_mode_w

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file_conversion/sts2sww_mesh.py

    r8120 r8121  
    2929
    3030    if verbose: print "Reading sts NetCDF file: %s" %stsname
    31     infile = NetCDFFile(stsname, 'r')
     31    infile = NetCDFFile(stsname, netcdf_mode_r)
    3232    cellsize = infile.cellsize
    3333    ncols = infile.ncols
     
    107107    if verbose:
    108108        print "Writing sww wind and pressure field file"
    109     outfile = NetCDFFile(swwname, 'wl')
     109    outfile = NetCDFFile(swwname, netcdf_mode_w)
    110110    sww = Write_sww([], ['wind_speed','wind_angle','barometric_pressure'])
    111111    sww.store_header(outfile, times, len(volumes), len(points_utm),
Note: See TracChangeset for help on using the changeset viewer.