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

Update VIIRS/MODIS ReflecanceCorrector modifier to download DEM data at runtime #1618

Merged
merged 7 commits into from Mar 25, 2021

Conversation

djhoese
Copy link
Member

@djhoese djhoese commented Mar 25, 2021

This modifier is the last bit of Satpy that I know of that uses an external file for additional functionality. With this PR it now downloads the files specified by the YAML so the results are as accurate as possible.

  • Tests added
  • Fully documented
  • Move modifier to satpy.modifiers subpackage
  • Refactor tests to be cleaner and less duplicated code

@djhoese djhoese added enhancement code enhancements, features, improvements component:compositors labels Mar 25, 2021
@djhoese djhoese requested a review from mraspaud March 25, 2021 12:05
@djhoese djhoese self-assigned this Mar 25, 2021
@ghost
Copy link

ghost commented Mar 25, 2021

DeepCode failed to analyze this pull request

Something went wrong despite trying multiple times, sorry about that.
Please comment this pull request with "Retry DeepCode" to manually retry, or contact us so that a human can look into the issue.

@codecov
Copy link

codecov bot commented Mar 25, 2021

Codecov Report

Merging #1618 (be132b8) into master (3623c03) will increase coverage by 0.21%.
The diff coverage is 99.34%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1618      +/-   ##
==========================================
+ Coverage   92.38%   92.60%   +0.21%     
==========================================
  Files         254      258       +4     
  Lines       37434    37716     +282     
==========================================
+ Hits        34584    34927     +343     
+ Misses       2850     2789      -61     
Flag Coverage Δ
behaviourtests 4.81% <7.54%> (+0.03%) ⬆️
unittests 92.74% <99.34%> (+0.21%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
satpy/composites/viirs.py 86.48% <ø> (-0.06%) ⬇️
satpy/tests/compositor_tests/test_viirs.py 100.00% <ø> (+0.31%) ⬆️
satpy/modifiers/_crefl.py 98.88% <98.88%> (ø)
satpy/tests/modifier_tests/test_crefl.py 99.53% <99.53%> (ø)
satpy/modifiers/atmosphere.py 50.54% <100.00%> (+0.54%) ⬆️
satpy/tests/modifier_tests/__init__.py 100.00% <100.00%> (ø)
satpy/readers/seviri_l1b_hrit.py 90.18% <0.00%> (-0.79%) ⬇️
satpy/dependency_tree.py 97.34% <0.00%> (-0.66%) ⬇️
satpy/scene.py 92.17% <0.00%> (-0.32%) ⬇️
satpy/readers/mirs.py 71.65% <0.00%> (-0.29%) ⬇️
... and 27 more

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 3623c03...be132b8. Read the comment docs.

@djhoese djhoese marked this pull request as ready for review March 25, 2021 19:51
@djhoese djhoese requested a review from adybbroe as a code owner March 25, 2021 19:51
Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mraspaud
Copy link
Member

Anything you can do for the codebeat comment (for crefl that is)?

@djhoese
Copy link
Member Author

djhoese commented Mar 25, 2021

I'll take a look. FYI we're doing some testing with Polar2Grid that uses this algorithm and I think I need to un-daskify it. Perhaps wrap it in a map_blocks function. I think it is one reason we are seeing major performance issues in my new version of P2G (performance updates in a later PR of course).

@djhoese
Copy link
Member Author

djhoese commented Mar 25, 2021

Codebeat issues related to crefl have been fixed. The code is so much better.

Since you approved I will expect either a change of review from you or I will merge it when it passes the tests.

@mraspaud
Copy link
Member

Yep, go ahead.

@djhoese djhoese merged commit 29042d8 into pytroll:master Mar 25, 2021
@djhoese djhoese deleted the feature-crefl-aux-download branch March 25, 2021 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:compositors enhancement code enhancements, features, improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants