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

Support for multi-band rasters with nulls in some (but not all) bands #12

Open
alpha-beta-soup opened this issue May 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@alpha-beta-soup
Copy link
Member

Situtation: 4 band raster where there may be null values in some bands that are not null for the equivalent pixel/s in the other bands.

Outcome: error reading the intermediate data in step two https://github.com/manaakiwhenua/raster2dggs/blob/master/raster2dggs/h3.py#L266

It may be that we should write this intermediate data differently, or else note this limitation.

Work-around: split such rasters into multiple files and index independently.

Another "solution" would be to allow users to specify which bands to include, rather than indexing everything in a multi-band raster. This is generally useful, and as a hypothetical workaround could allow a user to index the dataset without having to split it into multiple files; but this would require the user to perform multiple passes of the tool.

@alpha-beta-soup alpha-beta-soup added the bug Something isn't working label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant