-
Notifications
You must be signed in to change notification settings - Fork 16
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
Create a Mask class #409
Create a Mask class #409
Conversation
src/pykoala/data_container.py
Outdated
def add_flags(self, **extra_flags): | ||
"""Add a new flag to the mask.""" | ||
self.flag_map = bitmask.extend_bit_flag_map( | ||
"DQ_MASK", self.flag_map, **extra_flags) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here your peg is gone ;^D
I guess we don't need this function, but I guess/hope it would complain"DQ_MASK" does not exist...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class has been refactored significantly, aiming for a more simple approach without additional dependencies.
The PR now includes a final version of the |
@paranoya I believe this mask can also be used to store information produced by the Correction modules (e.g, flag pixels that are classified as sky/lines or stuff like that). |
This PR includes the implementation of a new class for storing a bitmask in terms of several flagging criteria.