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

Promote band-level coords to data var attributes for stackstac #37

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

jsignell
Copy link
Member

Closes #36

As mentioned in the issue since xpystac always returns an xarray.Dataset, it needs to be careful about the conversion of coords that have "band" as their dim. In a DataArray each version that stackstac natively returns you end up with scalar coords per-band. I think the best way to map that onto the data variables is by using converting scalar coords to attrs.

@jsignell jsignell merged commit 7b77ecc into main Apr 5, 2024
4 checks passed
@jsignell jsignell deleted the better-to_dataset branch April 5, 2024 15:41
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

Successfully merging this pull request may close these issues.

bands is read as a dimension without a coordinate
1 participant