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

Store and preserve additional metadata in loaded arrays #13

Open
luukvdmeer opened this issue Dec 14, 2021 · 0 comments
Open

Store and preserve additional metadata in loaded arrays #13

luukvdmeer opened this issue Dec 14, 2021 · 0 comments
Labels
feature 🎁 New feature or request

Comments

@luukvdmeer
Copy link
Member

Description

Currently the CRS of the spatial coordinates and the timezone of the temporal coordinates are stored in a DataArray object retrieved from a factbase. To prevent that this information gets lost when applying operations to the array, they are stored as non-dimension coordinates rather than as array attributes. Such coordinates always "survive" any operation applied to the array, while xarray may drop attributes.

Besides the CRS and the timezone there might be additional metadata that we want to attach to the DataArray and preserve during operations. An example is the copyright notice, see https://github.com/whisperingpixel/iq-inferenceengine/issues/123. This should be implemented in a flexible/tunable way (i.e. not hardcoded), e.g. by listing those metadata keys as configuration parameter of a factbase instance. When the metadata key is not present, data loading should still work (maybe with a warning?).

Additional context

Add any other context or screenshots about the feature request here.

@luukvdmeer luukvdmeer added the feature 🎁 New feature or request label Dec 14, 2021
@luukvdmeer luukvdmeer self-assigned this Dec 14, 2021
@luukvdmeer luukvdmeer removed their assignment Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎁 New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant