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

Respect xarray coordinates for ImageContainers #723

Open
conradfoo opened this issue Oct 3, 2024 · 1 comment
Open

Respect xarray coordinates for ImageContainers #723

conradfoo opened this issue Oct 3, 2024 · 1 comment

Comments

@conradfoo
Copy link

conradfoo commented Oct 3, 2024

Is your feature request related to a problem? Please describe.
Currently, if I parse an xarray DataArray into an image container, the coordinates are overwritten with pixel coordinates even if I do not specify a transformation.

Describe the solution you'd like
Transfer over the xarray coordinates from the initial xarray into the spatialdata object

Describe alternatives you've considered
It is possible (but annoying) to construct a transformation object from my coordinate list and feed that into the constructor.

Additional context
I'm using spatialdata-0.2.3
Thanks!

@LucaMarconato
Copy link
Member

Hi @conradfoo, thanks for reporting.

We actually want to implement this feature. Tracked here #308 (in "there will be a helper function to convert back and forth between BaseTransformation (and so also NGFFBaseTransformation) and xarray coordinates."). I will increase the priority of this feature request.

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

No branches or pull requests

2 participants