python - Cannot import name 'Dataset' from netCDF4 package -


i trying use dataset class in netcdf4 package read contents of .cdf file. however, keep getting error importerror: cannot import name 'dataset' when running following code:

from netcdf4 import dataset 

i have checked cython, hdf5, setuptools, h5py, numpy dependencies , have updated them using conda update. used conda install -c anaconda netcdf4 install package , have checked version 1.2.4. here error message:

    importerror                               traceback (most recent call last) <ipython-input-59-8c88d371cd2f> in <module>() ----> 1 netcdf4 import dataset       2 import numpy np  importerror: cannot import name 'dataset' 

i have omitted rest of code first line error has occurred. of course, if helpful include rest, summarize using dataset class display variables of file.


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -