-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netCDF4-python renamed/moved time packages #485
Comments
If you were previously importing try:
import cftime as netcdftime
except ImportError:
import netcdftime
warnings.warn('netcdftime has been ported to cftime, now would be a good time to update...') |
Thanks @jhamman. We had to pin the nc4 version limitation to our conda packages to keep things working... |
Update to The auto masking behavior in Also noticed CF unit libraries do not work with |
Hi, after a fresh install of ocgis, I am unable to import ocgis anymore:
I have netCDF4, netcdftime, and cftime installed. So far the only solution I found was to patch the ocgis source code by hand before installing the module, replacing all calls
with
Would it be possible to insert " |
Hi @aaschwanden. I have a branch that fixes this, and I'll try to push soon. The netCDF4 1.4.0 version made some changes that were backwards incompatible then backed out. Version 1.4.2 seems to be fixed and stable. I know it's not convenient, but netCDF4 version 1.3.1 works in the meantime (should work with a fresh install using conda-forge). Sorry for the trouble! |
@aaschwanden I pushed a branch (https://github.com/NCPP/ocgis/tree/i485-cftime) that supports netcdf4-python 1.4.2 with cftime. Can you test with your installation? Thanks! |
@bekozi : I updated netcdf4python to version 1.4.2 and installed ocgis using the i485-cftime branch. I can confirm that it now works. Thank you very much for your efforts and keep up the good work! |
Thanks @aaschwanden! There's a bit of clean-up with this branch before merging to master. I'll close this issue once it's merged. Have a good weekend. |
- Added support for netcdftime and netCDF4 v1.4 - Support for netCDF4 < v1.4 maintained - Fixed a number of warnings
Merged to master. |
netcdftime
is lost in the ether somewhere around thev1.4.0
release. It is apparently a separate package now that itself may be renamed tocftime
.Until a patch release, a version requirement will be needed for the conda installations.
The text was updated successfully, but these errors were encountered: