Ignore:
Timestamp:
Mar 28, 2013, 1:23:19 PM (12 years ago)
Author:
steve
Message:

Changing to netcdf.py to run scientific python netcdf in preference to netcdf4

File:
1 edited

Legend:

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

    r8781 r8784  
    4242    """
    4343
    44     from Scientific.IO.NetCDF import NetCDFFile
    45     return NetCDFFile(file_name, netcdf_mode)
    46 
    47     #from netCDF4 import Dataset
    48     #return Dataset(file_name, netcdf_mode, format='NETCDF3_64BIT')
     44    try:
     45        from Scientific.IO.NetCDF import NetCDFFile
     46        return NetCDFFile(file_name, netcdf_mode)
     47    except:
     48        from netCDF4 import Dataset
     49        return Dataset(file_name, netcdf_mode, format='NETCDF3_64BIT')
     50
    4951
    5052    #return Dataset(file_name, netcdf_mode, format='NETCDF3_CLASSIC')
Note: See TracChangeset for help on using the changeset viewer.