GithubHelp home page GithubHelp logo

Reliance on metadata about esmlab HOT 4 OPEN

ncar avatar ncar commented on August 18, 2024
Reliance on metadata

from esmlab.

Comments (4)

kmpaul avatar kmpaul commented on August 18, 2024 1

First, sorry for the delay. I'm finally getting back to deal with my backlog...

I think that Matt is correct with his second point; we need to write code that behaves "appropriately" in the absence of (optional) metadata, like attributes. That should be the first layer of code... in OO speak, that should be the "base class." Then, invoke specialized code only when certain metadata is present.

Regarding Matt's first point, this is actually tricky. The point of ESMLab is to remove the need for users to deal with annoying "data wrangling" issues surrounding use of "our data" with Xarray. However, "our data" is not always compliant or consistent with the CF Conventions! ...So, which tack to we take? Do we make our code work for "our data," complying with the conventions of "our data"? Or do we make our code work with the CF Conventions?

The problem with CF compliance is that the CF Conventions are just an english-language document. Interpretation of the conventions document leads to a wide variety of different attribute encodings. So, this is very difficult to do in practice.

So, in the end, my thoughts are to "just make it work." And damn the CF conventions. It is not our job to tell the model developers or the data producers how to interpret the CF conventions... or to use them at all. It is our job just to make it easy for users to analyze that data. Do it by hook or by crook.

from esmlab.

andersy005 avatar andersy005 commented on August 18, 2024

Ccing @marylhaley since we had a discussion about how this is done in NCL last week.

from esmlab.

andersy005 avatar andersy005 commented on August 18, 2024

Are we consistent and compliant with CF conventions in our interpretation and setting of attributes? @kmpaul might have the best perspective on this.

@kmpaul any thoughts?

from esmlab.

andersy005 avatar andersy005 commented on August 18, 2024

I think we should consider clear fallback strategies to enable functionality in the absence of CF compliant data. The package should either do something sensible, or there should be clear means by users can supply necessary information.

@matt-long, @kmpaul, @jukent

Can we define what these are going to be moving forward?

from esmlab.

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.