Coder Social home page Coder Social logo

Comments (5)

ehogan avatar ehogan commented on July 20, 2024

I just noticed that the points in 1) are already mentioned in issue #19, so I apologise for the duplication.

from cmor.

dnadeau4 avatar dnadeau4 commented on July 20, 2024

ehogan,

You need to tell cmor where your tables are so that they can be loaded. The tables such as CMIP5_Amon, CMIP5_Omon can be found here: https://github.com/PCMDI/cmip5-cmor-tables/tree/master/Tables

Here is an example on cmor setup

        # -----------------------------------
        # Take care of cmor initialization.
        # -----------------------------------
        cmor.setup(inpath="/home/ehogan",
                   netcdf_file_action = cmor.CMOR_REPLACE)

You can find many examples in the github repository. Here is a good one that might help you setup cmor:
https://github.com/PCMDI/cmor/blob/master/Test/test_python_1D_var.py

A exhaustive documentation of each function and parameters can be found here:

https://github.com/PCMDI/cmor/blob/master/Doc/cmor_users_guide.doc

Hope this gets you going!
Denis

from cmor.

doutriaux1 avatar doutriaux1 commented on July 20, 2024

@dnadeau4 we should use:
https://docs.python.org/2/c-api/exceptions.html#c.PyErr_SetString

from cmor.

durack1 avatar durack1 commented on July 20, 2024

@ehogan @dnadeau4 is this a dupe of #65 and if so want to close?

from cmor.

ehogan avatar ehogan commented on July 20, 2024

Closing (duplicate of #65)

from cmor.

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.