Open pnuu opened 3 months ago
Attention: Patch coverage is 96.87500%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 95.94%. Comparing base (
ee2273a
) to head (f46df94
). Report is 10 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
satpy/readers/fci_l1c_nc.py | 91.30% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
satpy/readers/fci_l1c_nc.py | 4 | 23 | 17.39% | ||
<!-- | Total: | 9 | 28 | 32.14% | --> |
Totals | |
---|---|
Change from base Build 9513521871: | -0.03% |
Covered Lines: | 51566 |
Relevant Lines: | 53711 |
I'll see what I can do for testing. It's not easy, because the file handler is never used in the tests.
I've now added two tests that hopefully show that the storing and reusing of common items between the FCI L1c segments work.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
satpy/readers/fci_l1c_nc.py | 20 | 23 | 86.96% | ||
<!-- | Total: | 48 | 51 | 94.12% | --> |
Totals | |
---|---|
Change from base Build 9513521871: | -0.002% |
Covered Lines: | 51605 |
Relevant Lines: | 53734 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
satpy/readers/fci_l1c_nc.py | 20 | 23 | 86.96% | ||
<!-- | Total: | 48 | 51 | 94.12% | --> |
Totals | |
---|---|
Change from base Build 9588363290: | -0.002% |
Covered Lines: | 51621 |
Relevant Lines: | 53750 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
satpy/readers/fci_l1c_nc.py | 20 | 23 | 86.96% | ||
<!-- | Total: | 49 | 52 | 94.23% | --> |
Totals | |
---|---|
Change from base Build 9588363290: | -0.002% |
Covered Lines: | 51622 |
Relevant Lines: | 53751 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
satpy/readers/fci_l1c_nc.py | 21 | 23 | 91.3% | ||
<!-- | Total: | 62 | 64 | 96.88% | --> |
Totals | |
---|---|
Change from base Build 9588363290: | 0.006% |
Covered Lines: | 51638 |
Relevant Lines: | 53763 |
Interesting! In the code I can see some metadata listed as non-shareable. Do you have a list of the shareable metadata? i.e: Which ones don't change between segments and are hence affected by this PR?
Anything in the list shown here that don't end in the strings listed in NONSHAREABLE_VARIABLE_ENDINGS
can be shared between the segments. Note that the {chan_name}
is replaced with the 16 channels FCI has, so the list is quite long.
Interesting! In the code I can see some metadata listed as non-shareable. Do you have a list of the shareable metadata? i.e: Which ones don't change between segments and are hence affected by this PR?
In https://github.com/pytroll/satpy/pull/2686/files#diff-2170f8edf16088150763d5f3a6cbd69d62600d238c0ba80a41afcb4832fb7b5d I explicitly list what metadata can be shared between segments.
In addition, could more implementation be in
netcdf_utils
so it can be used by other readers where relevant?
I think so. As I said in another comment above this snowballed from a quick test at PCW so I touched as little other parts of the code as possible. The FCI L1c data format is the most demanding in this regard, and most important to me, so started here.
I'll see about generalizing things later and converting this as a draft for the summer period.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
satpy/readers/fci_l1c_nc.py | 21 | 23 | 91.3% | ||
<!-- | Total: | 62 | 64 | 96.88% | --> |
Totals | |
---|---|
Change from base Build 9588363290: | 0.006% |
Covered Lines: | 51638 |
Relevant Lines: | 53763 |
Some of the metadata are identical in every FCI L1c segment, so reading those only once is possible. This will save a lot of time in
Scene
creation when the data are in S3 storage:main
- 37.0 sThere will be conflicts with https://github.com/pytroll/satpy/pull/2686, but maybe adding the pickle would benefit also this feature.
AUTHORS.md
if not there already