-
Notifications
You must be signed in to change notification settings - Fork 303
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
Fix cloud-free pixels in cloudtop height composite #1433
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1433 +/- ##
==========================================
- Coverage 90.66% 90.66% -0.01%
==========================================
Files 236 236
Lines 33931 33941 +10
==========================================
+ Hits 30762 30771 +9
- Misses 3169 3170 +1
Continue to review full report at Codecov.
|
mapped_channels = colormap.colorize(data.data) | ||
valid = status != status.attrs['_FillValue'] | ||
# cloud-free pixels are marked invalid (fill_value in ctth_alti) but have status set to 1. | ||
status_not_cloud_free = status % 2 == 0 |
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.
Isn't it only status=1 that indicates cloudfree?
Or is it a bit-flag?
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.
It is a bit-flag iiuc
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.
I can't see anything obvious wrong, but it is also quite hard for me to evaluate as I haven't really aquainted myself with this before. So, apart from my small comment/question, I am not sure I can help lot more...
@adybbroe thanks for reviewing. It is a bit challenging to generate images from these file types sometimes. |
This is a fix for the cloudtop height composite, that was considering the wrong pixels as invalid.