-
Notifications
You must be signed in to change notification settings - Fork 0
Description
When nctime 4.6.5 is installed for any python 2.7.X available on pip channels, netcdf4 1.4.0 is installed too.
When trying to execute nctxck (no issues found with nctcck ), it raises the following error:
nctxck -i projections_nctime_ini_files to_scan
:: WARNING :: Consider "project_id" attribute instead of "project"
Process netCDF file(s): 100% | 1/1 files
tas_Amon_CCSM4_historical_r1i1p1_185001-200512.nc
Status: Skipped
Traceback (most recent call last):
File "/.../opt/anaconda3/envs/py2/lib/python2.7/site-packages/nctime/axis/main.py", line 44, in process
input_end_timestamp=pctx.ref_end)
File "/.../opt/anaconda3/envs/py2/lib/python2.7/site-packages/nctime/axis/handler.py", line 138, in __init__
end=input_end_timestamp)
File "/.../opt/anaconda3/envs/py2/lib/python2.7/site-packages/nctime/utils/time.py", line 330, in get_start_end_dates_from_filename
dates.append(num2date(0.0, units='days since ' + date_as_since, calendar=calendar))
File "/.../opt/anaconda3/envs/py2/lib/python2.7/site-packages/nctime/utils/time.py", line 143, in num2date
return netCDF4.num2date(num_axis, units=units, calendar=calendar)
File "src/cftime/_cftime.pyx", line 440, in cftime._cftime.num2date
File "src/cftime/_cftime.pyx", line 104, in cftime._cftime._dateparse
File "src/cftime/_cftime.pyx", line 578, in cftime._cftime._parse_date
ValueError: Expecting a string '1850-01-01 00:00:00'
Number of file(s) with error(s): 0
Number of file(s) scanned: 1
Number of file(s) skipped: 1
The problem is caused by netcdf4 1.4.0 and with version 1.3.1 it doesn't give this error despite the fact that when trying to downgrade netcdf4, the following error is raised:
ERROR: nctime 4.6.5 has requirement netCDF4==1.4.0, but you'll have netcdf4 1.3.1 which is incompatible.
ERROR: esgprep 2.9.7 has requirement netCDF4==1.4.0, but you'll have netcdf4 1.3.1 which is incompatible.
This issue leads to a waste of time until discover the root of the problem, so I think it should be take into account.