pytroll / trollflow2

Next generation Trollflow. Trollflow is for batch-processing satellite data using Satpy
https://trollflow2.readthedocs.org/
GNU General Public License v3.0
10 stars 15 forks source link

More verbose logging when removing due to lack of sunlight #131

Closed gerritholl closed 2 years ago

gerritholl commented 2 years ago

When a product is removed due to insufficient sunlight coverage, include information about the detected amount of sunlight converage. This might help debugging in cases when scenes are unexpectedly removed.

Example of new logging:

[2021-12-29 12:30:01,093 INFO     trollflow2.plugins] Not enough sunlight coverage for product 'snow_age', removed. Needs at least 5.0%, got 0.0%.
[2021-12-29 12:30:01,095 INFO     trollflow2.plugins] Not enough sunlight coverage for product 'true_color', removed. Needs at least 5.0%, got 0.0%.
[2021-12-29 12:30:01,098 INFO     trollflow2.plugins] Not enough sunlight coverage for product 'overview', removed. Needs at least 5.0%, got 0.0%.
[2021-12-29 12:30:01,100 INFO     trollflow2.plugins] Not enough sunlight coverage for product 'cloud_phase_distinction', removed. Needs at least 5.0%, got 0.0%.
[2021-12-29 12:30:01,102 INFO     trollflow2.plugins] Not enough sunlight coverage for product 'cloud_phase', removed. Needs at least 5.0%, got 0.0%.
[2021-12-29 12:30:01,104 INFO     trollflow2.plugins] Not enough sunlight coverage for product 'cloud_type', removed. Needs at least 5.0%, got 0.0%.
codecov[bot] commented 2 years ago

Codecov Report

Merging #131 (a47ba67) into main (d121f1d) will increase coverage by 0.06%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #131      +/-   ##
==========================================
+ Coverage   94.78%   94.85%   +0.06%     
==========================================
  Files          11       11              
  Lines        2242     2272      +30     
==========================================
+ Hits         2125     2155      +30     
  Misses        117      117              
Flag Coverage Δ
unittests 94.85% <100.00%> (+0.06%) :arrow_up:

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

Impacted Files Coverage Δ
trollflow2/plugins/__init__.py 91.95% <100.00%> (+0.01%) :arrow_up:
trollflow2/tests/test_trollflow2.py 99.43% <100.00%> (+0.01%) :arrow_up:

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 d121f1d...a47ba67. Read the comment docs.