iridl / python-maprooms

Dash maprooms and tools
0 stars 3 forks source link

zarrification and standard names #427

Open remicousin opened 3 months ago

remicousin commented 3 months ago
          If the input data has CF standard_names, we should probably use those to identify the lat, lon, and time dimensions. If it doesn't, then these arguments should become mandatory, and we should add appropriate standard_names to the output.

Just thinking out loud, doesn't have to be done now if you're in a hurry. In any case, there's no point doing this kind of generalization under pepsico, only when it moves to the top level.

_Originally posted by @aaron-kaplan in https://github.com/iridl/python-maprooms/pull/425#discussion_r1625018479_

remicousin commented 3 months ago

At least 2 projects:

One: use standard_name to identify dimensions and such.

Two: if standard_name are missing or wrong, don't just raise an exception but call functions that will add correct ones.

remicousin commented 2 months ago

Same-same for units attributes.

remicousin commented 2 months ago

We should eventually look into https://github.com/NCAS-CMS/cfunits for unit conversions. I think udunits is what Ingrid uses for its unit management.