Skip to content

Add raw "counts" calibration type to "metimage_l1b_nc" reader - #3373

Merged
djhoese merged 9 commits into
pytroll:mainfrom
tommyjasmin:main
Oct 6, 2026
Merged

djhoese merged 9 commits into
pytroll:mainfrom
tommyjasmin:main

Read METimage counts scaling and fill straight from the encoding

59b1296
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Code Health Review (main) succeeded Oct 2, 2026 in 39s

CodeScene PR Check

Quality Gate Passed

Code Health Improved (1 files improve in Code Health)

Gates Passed
4 Quality Gates Passed

See analysis details in CodeScene

View Improvements
File Code Health Impact Categories Improved
metimage_nc.py 8.91 → 8.94 Complex Method

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

Details

✅ Improving Code Health:

  • Complex Method metimage_nc.py: METimageNCBaseFileHandler.get_dataset

Annotations

Check notice on line 230 in satpy/readers/core/metimage_nc.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

✅ Getting better: Complex Method

METimageNCBaseFileHandler.get_dataset decreases in cyclomatic complexity from 14 to 13, threshold = 9

This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid
adding more conditionals and code to it without refactoring.