Ignore:
Timestamp:
Mar 27, 2013, 8:04:00 PM (12 years ago)
Author:
steve
Message:

Some changes to allow netcdf4 use

File:
1 edited

Legend:

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

    r7858 r8780  
    5757import getopt
    5858from anuga.utilities import log
    59 from Scientific.IO.NetCDF import NetCDFFile
     59from anuga.file.netcdf import NetCDFFile
    6060from anuga.file.csv_file import load_csv_as_dict
    6161from anuga.config import netcdf_mode_w, netcdf_float
     
    9898        fid.createVariable(col, netcdf_float, ('number_of_timesteps',))
    9999       
    100         fid.variables[col].assignValue(timeseries_data[col])
     100        fid.variables[col][:] = timeseries_data[col]
    101101
    102102    fid.close()
Note: See TracChangeset for help on using the changeset viewer.