-
Notifications
You must be signed in to change notification settings - Fork 38
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
missingmask of all layers in rasterstack #599
Conversation
Yeah it will have to be using
Should only need one allocation. Will work even if stack layer dims are in weird orders, missing, etc. Bad part is missing values in small layers propagate to every other dimension, but I guess we want that. |
I definitely think we want missing values to propagate across dimensions. I can't come up with another consistent way to do this. |
Alright, tried my best. But it might be you can come up with some wizardry to make this even cleaner? |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #599 +/- ##
==========================================
+ Coverage 82.09% 82.17% +0.08%
==========================================
Files 61 61
Lines 4228 4242 +14
==========================================
+ Hits 3471 3486 +15
+ Misses 757 756 -1 ☔ View full report in Codecov by Sentry. |
Is there a test for mixed size stacks? |
I added some. Right now What do you think the most logical behaviour would be in that case? |
RasterSeries is for fixed dimensions so thats fine. |
In that case I think we're good to go. |
Changes the default behaviour of
missingmask
when applied on a RasterStack or RasterSeries, so the mask covers all layers.It's probably possible to reduce the memory use of this operation by using missingmask!, but I can't really see how to guarantee that that works when not all dimensions are shared.
The dispatch on RasterSeries might run into errors if the dimensions are not shared between the layers, so maybe we don't want it?