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

Bugfixes seviri l2 grib reader #1920

Merged
merged 12 commits into from
Dec 7, 2021

Conversation

strandgren
Copy link
Collaborator

This purpose of this PR is to standardize the area definitions of the SEVIRI L2 grib products. During implementation three bugs were identified and resolved:

  1. When looping over multiple grib files, information from a previously opened grib file would sometimes be passed on to the next call. This has been resolved by always lopping over all messages in the grib file, such that no additional information can be passed on. An issue for this unexpected behavior has been created in the python-ecCodes github (Unexpected behavior if not all GRIB messages in a file are read ecmwf/eccodes-python#58).

  2. The computation of the area extent did not provide correct results for segmented products. The implementation used in the seviri_l1b_native reader is now used (the method has been moved to seviri_base to allow both reader to access it).

  3. In the aerosol over sea product the Earth's minor axis is provided in the wrong unit (off by a factor 1e8). A work-around has been temporarily implemented that will make sure that all earth axis dimensions are of the correct magnitude. This work-around can be used until the issue has been resolved by EUMETSAT.

  • Tests added

…read information to be passed on to the next eccodes instance.
…t. Use GEOFlippableFileYAMLReader instead of FileYAMLReader.
…ader to seviri_base such that the seviri_l2_grib reader can use the same method. Remove old method in seviri_base, previously used to compute the area extent for the grib files.
…e reader to seviri_base in order to have correct output also for segmented products. Add standardized area definitions for segmented SEVIRI L2 grib products.
…of correct magnitude. Needed until information in grib message for the aerosol over sea product has been fixed by EUMETSAT.
…re direct derivatives of the L15 channel data.
@codecov
Copy link

codecov bot commented Dec 3, 2021

Codecov Report

Merging #1920 (270da18) into main (b587681) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1920      +/-   ##
==========================================
+ Coverage   93.39%   93.46%   +0.07%     
==========================================
  Files         273      275       +2     
  Lines       40612    40735     +123     
==========================================
+ Hits        37929    38074     +145     
+ Misses       2683     2661      -22     
Flag Coverage Δ
behaviourtests 4.83% <0.00%> (+<0.01%) ⬆️
unittests 94.00% <100.00%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
satpy/readers/seviri_base.py 100.00% <100.00%> (+3.52%) ⬆️
satpy/readers/seviri_l1b_native.py 85.39% <100.00%> (-0.25%) ⬇️
satpy/readers/seviri_l2_grib.py 92.47% <100.00%> (+5.73%) ⬆️
satpy/tests/reader_tests/test_seviri_l2_grib.py 100.00% <100.00%> (ø)
satpy/resample.py 79.34% <0.00%> (-0.69%) ⬇️
satpy/modifiers/geometry.py 87.30% <0.00%> (-0.20%) ⬇️
satpy/readers/ahi_hsd.py 97.25% <0.00%> (-0.05%) ⬇️
satpy/readers/fci_l1c_nc.py 97.93% <0.00%> (-0.05%) ⬇️
satpy/scene.py 92.81% <0.00%> (-0.02%) ⬇️
satpy/readers/utils.py 91.79% <0.00%> (ø)
... and 8 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 b587681...270da18. Read the comment docs.

@strandgren strandgren marked this pull request as draft December 3, 2021 19:01
@coveralls
Copy link

coveralls commented Dec 3, 2021

Coverage Status

Coverage increased (+0.03%) to 93.935% when pulling 270da18 on strandgren:bugfixes-seviri_l2_grib-reader into 008b06d on pytroll:main.

@strandgren strandgren marked this pull request as ready for review December 7, 2021 09:56
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.

Nice job, LGTM!

@mraspaud mraspaud merged commit 9917a2e into pytroll:main Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants