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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -