Ignore:
Timestamp:
Apr 5, 2013, 10:25:46 AM (12 years ago)
Author:
steve
Message:

Some changes to netcdf config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file/netcdf.py

    r8785 r8810  
    4343
    4444
     45
    4546    try:
    4647        from Scientific.IO.NetCDF import NetCDFFile
     
    4849    except:
    4950        from netCDF4 import Dataset
    50         return Dataset(file_name, netcdf_mode, format='NETCDF3_64BIT')
    51 
    52    
     51        if netcdf_mode == 'wl' :
     52            return Dataset(file_name, 'w', format='NETCDF3_64BIT')
     53        else:
     54            return Dataset(file_name, netcdf_mode, format='NETCDF3_64BIT')
     55
     56#    from netCDF4 import Dataset
     57#    return Dataset(file_name, netcdf_mode, format='NETCDF3_64BIT')
    5358
    5459    #return Dataset(file_name, netcdf_mode, format='NETCDF3_CLASSIC')
Note: See TracChangeset for help on using the changeset viewer.