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

[Feature] Add image attributes to spatialdata image elements #21

Open
lucas-diedrich opened this issue Dec 15, 2024 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@lucas-diedrich
Copy link
Owner

Description of feature

Add known metadata from the files to the xarray.DataArray.attributes slot.

@lucas-diedrich lucas-diedrich added the enhancement New feature or request label Dec 15, 2024
@lucas-diedrich
Copy link
Owner Author

It needs to be tested whether spatialdata writes the .attrs attribute to disk. This is not the case for ShapesModel objects. If that is not possible, one would need to extend the spatialdata.write functionalities first.

@lucas-diedrich
Copy link
Owner Author

lucas-diedrich commented Jan 21, 2025

Update

Writing custom attributes to SpatialElements on disk is currently not supported, see here scverse/spatialdata#839

@lucas-diedrich
Copy link
Owner Author

Update

As suggested by Tim Treis, metadata can be persistently stored on disk when added to the top level .attrs slot

@lucas-diedrich lucas-diedrich added this to the Metadata Parsing milestone Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant