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

Fix cloud-free pixels in cloudtop height composite #1433

Merged
merged 2 commits into from Nov 16, 2020

Conversation

mraspaud
Copy link
Member

This is a fix for the cloudtop height composite, that was considering the wrong pixels as invalid.

  • Tests added
  • Fully documented

@codecov
Copy link

codecov bot commented Nov 12, 2020

Codecov Report

Merging #1433 (abf5374) into master (5582d3f) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
satpy/composites/cloud_products.py 89.06% <100.00%> (+0.35%) ⬆️
satpy/tests/test_composites.py 99.87% <100.00%> (+<0.01%) ⬆️
satpy/composites/__init__.py 87.65% <0.00%> (-0.16%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5582d3f...abf5374. Read the comment docs.

@coveralls
Copy link

coveralls commented Nov 12, 2020

Coverage Status

Coverage increased (+0.03%) to 90.66% when pulling abf5374 on mraspaud:fix-ctth-composite into 5582d3f on pytroll:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 90.658% when pulling abf5374 on mraspaud:fix-ctth-composite into 5582d3f on pytroll:master.

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
Copy link
Contributor

@adybbroe adybbroe Nov 13, 2020

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?

Copy link
Member Author

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

Copy link
Contributor

@adybbroe adybbroe left a 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...

@mraspaud
Copy link
Member Author

@adybbroe thanks for reviewing. It is a bit challenging to generate images from these file types sometimes.

@mraspaud mraspaud merged commit 70f07f7 into pytroll:master Nov 16, 2020
@mraspaud mraspaud deleted the fix-ctth-composite branch November 16, 2020 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants