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

Operations requiring only Raster.data.mask load the entire data array #502

Closed
rhugonnet opened this issue Mar 7, 2024 · 0 comments · Fixed by #501
Closed

Operations requiring only Raster.data.mask load the entire data array #502

rhugonnet opened this issue Mar 7, 2024 · 0 comments · Fixed by #501
Labels
enhancement Feature improvement or request performance Related to computational performance

Comments

@rhugonnet
Copy link
Member

We can use rasterio.read_masks() to only get the mask and perform operations requiring only the data mask (and not the data array) in a much more memory-efficient way.
This includes for example:

Starting a _load_only_mask function in #501...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature improvement or request performance Related to computational performance
Projects
None yet
1 participant