Giter Site home page Giter Site logo

Comments (7)

Try2Code avatar Try2Code commented on August 21, 2024

please use 'pip' for installation of netCDF4 (and possibly cdo.py). this should solve these kind of problems.

from cdo-bindings.

kristydahl avatar kristydahl commented on August 21, 2024

Thanks for your suggestion. I used pip to install netCDF4 and the cdo bindings (pip install netCDF4 and pip install cdo) prior to getting these errors.

from cdo-bindings.

Try2Code avatar Try2Code commented on August 21, 2024

ah, ok, sorry - you mentioned that both modules are installed in the same directory and that's usually not the case with pip AFAIK.
i would run some simple tests with netcdf4, only. a manual installation of netcdf4 might help, too

from cdo-bindings.

Try2Code avatar Try2Code commented on August 21, 2024

did a X-check on a MacOS-system i have access to, but wasn't able to re-produce this error. I used
cdo-1.9.5
cdo.py-1.4.0

Python 3.6.4 | packaged by conda-forge | (default, Dec 23 2017, 16:54:01) 
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cdo
>>> c = cdo.Cdo()
>>> t =  c.topo(returnArray='topo')
>>> print(t)
[[ 2783.3333  2783.3333  2783.3333 ...  2783.3333  2783.3333  2783.3333]
 [ 2939.      2937.      2934.3333 ...  2946.      2944.      2941.3333]
 [ 3068.3333  3066.3333  3064.3333 ...  3074.      3072.      3070.3333]
 ...
 [-1531.     -1552.3334 -1589.     ... -1436.6666 -1467.6666 -1502.3334]
 [-3007.     -2986.3333 -2986.3333 ... -3263.     -3154.     -3060.6667]
 [-4117.6665 -4114.6665 -4112.     ... -4134.3335 -4127.6665 -4122.    ]]

from cdo-bindings.

Try2Code avatar Try2Code commented on August 21, 2024

is this solved now?

from cdo-bindings.

kristydahl avatar kristydahl commented on August 21, 2024

from cdo-bindings.

Try2Code avatar Try2Code commented on August 21, 2024

allright, then I close this ticket

please feel free to approach me in case you need further help

from cdo-bindings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.