Skip to content

Fixes raddb - #11

Merged
erikposchivo merged 5 commits into
ltelab:mainfrom
erikposchivo:fixes-raddb
Sep 2, 2026
Merged

erikposchivo merged 5 commits into
ltelab:mainfrom
erikposchivo:fixes-raddb

Conversation

@erikposchivo

@erikposchivo erikposchivo commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

Prework

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Documentation
  • Tutorial
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and communicate accordingly:

The PR fulfills these requirements:

  • It's submitted to the branch named as follow:
    • Fix a bug: bugfix-<some_key>-<word>
    • Improve the doc: doc-<some_key>-<word>
    • Improve a tutorial tutorial-<some_key>-<word>
    • Add a new feature: feature-<some_key>-<word>
    • Refactor some code: refactor-<some_key>-<word>
    • Optimize some code: optimize-<some_key>-<word>
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • Don't forget to link PR to issue if you are solving one.
  • All tests are passing.
  • New/updated tests are included

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

Related GitHub issues and pull requests

  • Ref: #

Summary

Please explain the purpose and scope of your contribution.

erikposchivo and others added 4 commits August 26, 2026 11:59
- Updated "polygone" to "polygon" in multiple files to correct spelling errors.
- Adjusted docstrings and comments to improve clarity and maintain consistency in language (consistency with American English).
- Corrected execution counts in tutorial notebooks to ensure proper order of execution.
RadDB stored four MeteoSwiss fields by name — HC_MCH, HC_PYART, HZT and a TEMP
it derived itself — through a hardcoded POLAR_COLUMNS allowlist, and shipped
raddb/hc_mapping.py to encode their classes. None of that belongs in a
network-agnostic archive; it now lives in MCH_tools, which imports raddb.

The allowlist was the real problem. It archived 5 of an FMI volume's 19 per-gate
moments: HCLASS, VRADH, WRADH, TH, TV, SQIH, SNR, PMI, CSP, LOG, DBZHC, ZDRC,
VRADDH and DBZV were all dropped without a word. A moment is now any data
variable carried on both azimuth and range, so a network's own fields survive
whatever they are called, and the per-ray/scalar metadata beside them
(sweep_mode, prt_mode, nyquist_velocity — three of them strings) is excluded by
dimension rather than by name. archive(variables=[...]) narrows it for a lean
archive. Measured on the reference volumes: FMI 19, MCH 24, NEXRAD 6.

Float columns are narrowed to float32 by dtype instead of a name set, so an
unknown moment is stored as compactly as DBZH, and gate_id stays int64.

_PLOT_DEFAULTS becomes public PLOT_DEFAULTS: the discrete-classification
machinery is generic — FMI's HCLASS needs it as much as HC_MCH did — so it stays
here while the class tables move out and are registered by whoever produces the
data.

Also drops discovery._parse_volume_time and _group_files_by_volume, dead
duplicates of functions MCH_tools already has and uses.

Archives written before this still read: the read path never had an allowlist.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…FMI radar usage

- Revised the description of the demo pipeline to specify the use of two FMI radars.
- Added detailed information about the data used in the notebooks, including specific dates and radar identifiers.
- Clarified the importance of selecting appropriate times for data collection based on FMI's scanning schedule.
- Updated instructions for running the notebooks with personal data, emphasizing the configuration cell.
- Removed NEXRAD in tutorials due to different scan stategy
@codecov-commenter

codecov-commenter commented Sep 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.30769% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.38%. Comparing base (b6b63b3) to head (778fb87).

Files with missing lines Patch % Lines
raddb/tests/test_viz_interactive.py 4.54% 21 Missing ⚠️
raddb/viz/interactive.py 0.00% 2 Missing ⚠️
raddb/main.py 88.88% 1 Missing ⚠️
raddb/viz/plot.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
- Coverage   89.69%   89.38%   -0.32%     
==========================================
  Files          25       23       -2     
  Lines        6678     6582      -96     
==========================================
- Hits         5990     5883     -107     
- Misses        688      699      +11     

☔ View full report in Codecov by Harness.
📢 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.

- update test script, fixed pre-commit error
@erikposchivo

Copy link
Copy Markdown
Collaborator Author
  • removed any MeteoSwiss reference (there were only small citation, no data exposure was there)
  • removed NEXRAD examples in tutorial due to "non-constant" scan strategy; kept only FMI in tutorials
  • fixed small errors (syntax and grammar)

@erikposchivo
erikposchivo merged commit d4af795 into ltelab:main Sep 2, 2026
11 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.

2 participants