diff --git a/pyart/util/datetime_utils.py b/pyart/util/datetime_utils.py index eb809f1865..174bc41c05 100644 --- a/pyart/util/datetime_utils.py +++ b/pyart/util/datetime_utils.py @@ -14,7 +14,10 @@ """ -from cftime import num2date, date2num +try: + from cftime import num2date, date2num +except ImportError + from netCDF4 import num2date, date2num EPOCH_UNITS = "seconds since 1970-01-01T00:00:00Z"