Code Monkey home page Code Monkey logo

Comments (4)

bnlawrence avatar bnlawrence commented on June 3, 2024

Using areacella requires making sure we have a file with the areas somewhere sensible in our directory tree:

"variable_entry": {
        "areacella": {
            "frequency": "fx", 
            "modeling_realm": "atmos land", 
            "standard_name": "cell_area", 
            "units": "m2", 
            "cell_methods": "area: sum", 
            "cell_measures": "", 
            "long_name": "Grid-Cell Area for Atmospheric Grid Variables", 
            "comment": "For atmospheres with more than 1 mesh (e.g., staggered grids), report areas that apply to surface vertical fluxes of energy.", 
            "dimensions": "longitude latitude", 
            "out_name": "areacella", 
            "type": "real", 
            "positive": "", 
            "valid_min": "", 
            "valid_max": "", 
            "ok_min_mean_abs": "", 
            "ok_max_mean_abs": ""
        }, 

from canari-data.

grenville avatar grenville commented on June 3, 2024

per David - these are not necessary for atmosphere files - cf python can figure it out (other tools? - don't know)
added to the xml for ocean files
cice files?

from canari-data.

davidhassell avatar davidhassell commented on June 3, 2024

Indeed. cf-python can easily compute atmosphere cell measures on the fly from 1-d lats and lons, provided they have bounds (as can some other tools, I image). You could of course store it/them externally, though. When it needs weights, cf-python will use cell measures by preference, but if they are missing then it will just calculate them if it can, anyway. External external cell measures are easily provided via the external keyword to cf.read, but only if you remember to use it :)

from canari-data.

grenville avatar grenville commented on June 3, 2024

We decided to add cell_measures areacella and areacello and external_variables to handle this

from canari-data.

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.