-
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
Improve the SAR-C reading and Ice composite #557
Conversation
Codecov Report
@@ Coverage Diff @@
## master #557 +/- ##
==========================================
- Coverage 78.29% 78.03% -0.26%
==========================================
Files 136 137 +1
Lines 19725 19850 +125
==========================================
+ Hits 15443 15490 +47
- Misses 4282 4360 +78
Continue to review full report at Codecov.
|
satpy/composites/sar.py
Outdated
"""Blending two layers. | ||
|
||
from: https://docs.gimp.org/en/gimp-concepts-layer-modes.html | ||
""" | ||
maxval = xu.maximum(top.max(), bottom.max()) | ||
if maxval is None: | ||
maxval = xu.maximum(top.max(), bottom.max()) |
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.
Can we get rid of the xu
usage?
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.
Looks like multiple cases in this module at least.
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.
Sure
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.
Looks good except for the xu
usage. Feel free to merge after those fixes.
This PR makes the sar-ice composite more stable and switches reading rasterio.
Using rasterio facilitates the access to the GCPs and these are added to the lons and lats to allow saving them later on.
git diff origin/master -- "*py" | flake8 --diff