Skip to content

Add FCI#111

Merged
ninahakansson merged 24 commits intofoua-pps:mainfrom
ninahakansson:fci
Nov 28, 2025
Merged

Add FCI#111
ninahakansson merged 24 commits intofoua-pps:mainfrom
ninahakansson:fci

Conversation

@ninahakansson
Copy link
Collaborator

@ninahakansson ninahakansson commented May 21, 2025

Add FCI

  • Tests added
  • Tests passed: Passes pytest level1c4pps
  • Passes flake8

@coveralls
Copy link

coveralls commented Nov 6, 2025

Pull Request Test Coverage Report for Build 19759931558

Warning: This coverage report may be inaccurate.

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.

Details

  • 152 of 193 (78.76%) changed or added relevant lines in 6 files are covered.
  • 31 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.1%) to 75.219%

Changes Missing Coverage Covered Lines Changed/Added Lines %
level1c4pps/init.py 4 5 80.0%
level1c4pps/tests/test_fci2pp.py 57 63 90.48%
level1c4pps/seviri2pps_lib.py 9 18 50.0%
level1c4pps/fci2pps_lib.py 78 103 75.73%
Files with Coverage Reduction New Missed Lines %
level1c4pps/metimage2pps_lib.py 15 0.0%
level1c4pps/isccpng2pps_lib.py 16 0.0%
Totals Coverage Status
Change from base Build 15210197001: -0.1%
Covered Lines: 1844
Relevant Lines: 2398

💛 - Coveralls

@salomoneliassonSMHI
Copy link
Collaborator

salomoneliassonSMHI commented Nov 20, 2025

We should add the CPP coefficients from KNMI to this branch/installation

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

❌ Patch coverage is 10.00000% with 108 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.62%. Comparing base (e891548) to head (74805e3).
⚠️ Report is 24 commits behind head on main.

Files with missing lines Patch % Lines
level1c4pps/fci2pps_lib.py 0.00% 98 Missing ⚠️
level1c4pps/seviri2pps_lib.py 44.44% 9 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #111      +/-   ##
==========================================
- Coverage   76.45%   68.62%   -7.83%     
==========================================
  Files          23       25       +2     
  Lines        1805     2008     +203     
  Branches      165      191      +26     
==========================================
- Hits         1380     1378       -2     
- Misses        380      585     +205     
  Partials       45       45              
Flag Coverage Δ
unittests 68.62% <10.00%> (-7.83%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@BengtRydberg BengtRydberg left a comment

Choose a reason for hiding this comment

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

Looks good. I added some minor suggetsions for improvement.

'units': 'milliseconds since 1970-01-01',
'complevel': 4,
'_FillValue': -1.0}
elif name in ['ir_105_time']:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
elif name in ['ir_105_time']:
elif name == 'ir_105_time':

lons, lats, 0)
satz = 90 - satel

if lons.shape[0] < 5000:
Copy link
Contributor

Choose a reason for hiding this comment

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

5000 looks like a magic number. Maybe enough we define a variable CHUNK_SIZE = 2000 in top of module and check if size is smaller than this we do this. Alternatively remove this part of the code and always use the "chunking metod".

"""Test setting of attributes."""
scene = get_fake_scene()
fci2pps.set_header_and_band_attrs(scene)
self.assertEqual(scene["vis_06"].attrs["description"], "FCI VIS_06")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to assert the complete attrs dict. Or is this big?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As a compromise I added a few more important attributes

@ninahakansson ninahakansson merged commit f456eee into foua-pps:main Nov 28, 2025
8 checks passed
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.

4 participants