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

Mask and scale feature in rasterio not working as expected when reading HLS-VI raster #3

Closed
Tracked by #15
madhuksridhar opened this issue May 24, 2024 · 4 comments · Fixed by #12
Closed
Tracked by #15
Assignees

Comments

@madhuksridhar
Copy link
Collaborator

No description provided.

@chuckwondo
Copy link
Collaborator

@madhuksridhar, please provide details with a minimal example to reproduce the issue you're facing.

@chuckwondo
Copy link
Collaborator

@madhuksridhar, I again accidentally pushed to main (grrr!), but I think I found the github setting to prevent this, so hopefully I will be blocked from doing this again.

Anyway, I believe I found and fixed this issue. Please see this commit: 627a3a5

@madhuksridhar
Copy link
Collaborator Author

@chuckwondo this method of applying scales and offfsets works with rioxarray.open_rasterio().
But dst.scales requires a list of float. could you please check?

@chuckwondo
Copy link
Collaborator

@madhuksridhar, I made a small adjustment to make sure offsets and scales are lists of floats, and opened a PR for the changes: #12

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 a pull request may close this issue.

3 participants