Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@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

2 participants