roocs / clisops

Climate Simulation Operations
https://clisops.readthedocs.io/en/latest/
Other
21 stars 9 forks source link

clisops: need to replace identification of dimensions by name #32

Closed agstephens closed 3 years ago

agstephens commented 4 years ago

Instead of looking for "lat" or "latitude", clisops should use:

is_longitude(dim)
is_latitude(dim)
etc etc

See: https://github.com/roocs/dachar/blob/b2b058615696eae2ef58614c7ba248cfa34ca06d/dachar/utils/character.py#L28

Zeitsperre commented 4 years ago

I feel like this project might be interested in such a feature as well: https://github.com/xarray-contrib/cf-xarray

agstephens commented 4 years ago

Thanks @Zeitsperre , that looks really interesting! Might simplify things for us. @ellesmith88 - we should explore whether cf-xarray is a drop-in replacement for our coord variable getters, e.g.: get_longitude()