Index: wflow-py/Scripts/pcr2netcdf.py =================================================================== diff -u -rf33154035afcaa101c5a30594b9c86a4fe9f61ef -r90a4ee3dd8724fb9dfe52fa5b7364aca4a4bd36a --- wflow-py/Scripts/pcr2netcdf.py (.../pcr2netcdf.py) (revision f33154035afcaa101c5a30594b9c86a4fe9f61ef) +++ wflow-py/Scripts/pcr2netcdf.py (.../pcr2netcdf.py) (revision 90a4ee3dd8724fb9dfe52fa5b7364aca4a4bd36a) @@ -71,6 +71,7 @@ import sys from numpy import * import netCDF4 as nc4 +import cftime import osgeo.gdal as gdal import os import logging @@ -307,7 +308,7 @@ logger.debug("Creating time object..") time = nc_trg.variables["time"] nc_trg.set_fill_off() - timeObj = nc4.num2date(time[:], units=time.units, calendar=time.calendar) + timeObj = cftime.num2date(time[:], units=time.units, calendar=time.calendar) try: nc_var = nc_trg.variables[trgVar]