Search code examples
pythonnco

NCO download Python


There is not much help on troubleshooting the outside package NCO for netCDF4 files when downloading. I am following the steps from https://github.com/jhamman/nco-bindings. The first step is to run setup.py install and I was able to see it install. Below is the end of the output saying it installed.

Installed c:\users\...\appdata\local\enthought\canopy\user\lib\site- 
packages\nco-0.0.2-py2.7.egg
Processing dependencies for nco==0.0.2
Finished processing dependencies for nco==0.0.2

but I am running into a problem when Running operators. The step is:

From nco import Nco
nco=Nco()

and I get an error for nco = Nco()saying

TypeError: 'NoneType' object has no attribute 'getitem'

meaning there is nothing within that function. I am using Enthought Canopy for python but I do not think that is a problem. Any help on getting function like ncra running would be appreciated. Thanks


Solution

  • I had a similar problem and I solved it by defining a new system variable called "NCOpath" and I did set its value to the path of nco package (in my case the path is "C:\nco").

    I hope it helps.