-
Notifications
You must be signed in to change notification settings - Fork 287
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
Add more versatile options for masking datasets #1168
Comments
Variable transparency using cloud type data
|
Thank you @peters77! The modifiers:
n02_mask:
compositor: !!python/name:satpy.composites.MaskModifier
conditions:
# The conditions to apply, with the associated transparency
- "> 0.75": 100.0
prerequisites:
- qa_value
composites:
no2_tropospheric_clean:
compositor: !!python/name:satpy.composites.ValueMaskCompositor
prerequisites:
- name: nitrogendioxide_tropospheric_column
modifiers: [no2_mask]
standard_name: no2_tropospheric_clean The last (multiplication and unit assignment) isn't masking and would need another feature issue. It should be pretty simple to implement as an enhancement or modifier. Not sure which would be more . |
Yes, that looks better. What will this "100" mean in
Do you intend to make a mask of the "qa_value" and the set the alpha to 100% to mask the bad data out!? So you somone is able to do even a blend of bad data!? Interesting! Would your proposed idea even cover this:
as here I didn't mask with another dataset but just with a "cutted" version of the dataset itself? |
It's the transparency used for the condition. This way we could use the same modifier structure in a more flexible way.
Yes, just define a modifier using the h03b_mask:
compositor: !!python/name:satpy.composites.MaskModifier
conditions:
# The conditions to apply, with the associated transparency
- "> 0.0001388": 100.0
prerequisites:
- name: h03B |
That sounds great! 👍 Hope you will have time to work on or implement it at PCW fully. |
Feature Request
Currently we have
MaskingCompositor
that can be used to mask data with categorical data from NWC SAF PPS and GEO Cloud Type data. There is alsoCloudCompositor
that does masking by creating the mask from the data it self (and adds some transitional smoothing for the transparency).We should have a more flexible and generic way of masking data, e.g. using quality flags, thresholds and even combination of several things.
Describe the solution you'd like
A generic way for describing different masking operations in the composite YAML files. Either as a modifier, or as a compositor.
Describe any changes to existing user workflow
This feature would simplify the workflow for masking data in multiple use cases.
Additional context
There are two approaches from which to choose:
The compositor approach would mean "wrapping" all the desired composites within another compositor. The modifier should be much easier to apply.
But the thing I need input for (I'll add something below on a new comment):
The text was updated successfully, but these errors were encountered: