Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoZarr Auxiliary Data (explicit attribute) #16

Closed
samsammurphy opened this issue Apr 12, 2023 · 3 comments
Closed

GeoZarr Auxiliary Data (explicit attribute) #16

samsammurphy opened this issue Apr 12, 2023 · 3 comments

Comments

@samsammurphy
Copy link

"GeoZarr Auxiliary variable MUST include the attribute _ARRAY_DIMENSIONS set as an empty array"

I am wondering if we should be more explicit?.. something like..

GeoZarr Auxiliary variable MUST include the attribute _IS_AUXILIARY set to True

@christophenoel
Copy link

This is (for now!) a pure mapping from the xarray conventions

Xarray’s terminology differs from the CF terminology, where the “dimension coordinates” are called “coordinate variables”, and the “non-dimension coordinates” are called “auxiliary coordinate variables” (see GH1295 for more details).

See more: pydata/xarray#1295

However, we might generalise this for any other class:

_GEOZARR_CLASS: data | coordinate | auxiliary | dataset

@dblodgett-usgs
Copy link

Over in #17 I misused GeoZarr Auxiliary variable assuming it was the name we were using for any variable that is merely a container for non-global for attributes, such as is used for a grid_mapping. What is the use case for Auxiliary variables?

Maybe using an attribute that avoids the confusion or is more specific with regard to the purpose of the attribute would be helpful?

@christophenoel
Copy link

I think I have introduced ambiguity --> "GeoZarr Auxiliary variable" maps to the definition of "non-dimension coordinates" = CF "auxliary coordinate variable". You're also right that it is used for grid_mapping.

non-dimension coordinates are variables that contain coordinate data, but are not a dimension coordinate. They can be multidimensional (see Working with Multidimensional Coordinates), and there is no relationship between the name of a non-dimension coordinate and the name(s) of its dimension(s). Non-dimension coordinates can be useful for indexing or plotting; otherwise, xarray does not make any direct use of the values associated with them. They are not used for alignment or automatic indexing, nor are they required to match when doing arithmetic (see Coordinates).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants