ADD: IMD Reader#367
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
kmuehlbauer
left a comment
There was a problem hiding this comment.
@syedhamidali Nice to see this landing in xradar! ❤️ Thank you for working through this.
It would be great to have the test data in open_radar_data to use in the test suite. The notebook need to move to myst markdown. Some dates in file headers needs adjustment, too.
|
CI didn't kick in, I'm going to close/reopen. |
|
Had to fix the merge conflict. Now CI did run. |
9da684e to
0f0814c
Compare
|
@syedhamidali Please pin open-radar-data to >=0.7.0. We'll have to wait for conda-forge, though. |
|
@syedhamidali Thanks, follow-up here: conda-forge/open-radar-data-feedstock#21. After this get's merged, the package should be available after another hour or two. |
b22681b to
a435b34
Compare
…atting - Remove IMD.ipynb; update IMD.md myst notebook to use DATASETS.fetch() with Jaipur S-band sample data from open-radar-data - Update test fixtures to use open-radar-data instead of pooch from GitHub - Remove needs_network decorator from all IMD tests - Fix black formatting in imd.py and test_imd.py - Fix copyright dates (2024-2025 → 2024-2026) - Add Development section to history.md
a435b34 to
7f10886
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #367 +/- ##
==========================================
+ Coverage 93.94% 94.15% +0.21%
==========================================
Files 28 29 +1
Lines 6191 6416 +225
==========================================
+ Hits 5816 6041 +225
Misses 375 375
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
kmuehlbauer
left a comment
There was a problem hiding this comment.
@syedhamidali Thanks, this looks really good.
|
@kmuehlbauer Thank you for reviewing it! |
|
@syedhamidali Please merge at your discretion. |
history.mdSummary
Add a new xarray backend (
IMDBackendEntrypoint,engine="imd") for reading India Meteorological Department (IMD) radar NetCDF files, which use a NetCDF4 container with an IRIS-inspired variable layout. IMD radars store one sweep per file; this PR adds:open_imd_datatree()— reads a single file or a list of files and assembles a multi-sweep volume as a CfRadial2-compatible DataTreegroup_imd_files()— groups a directory of mixed IMD files into per-volume file lists by filename stemopen_imd_volumes()— batch-processes directories into a nested DataTree withvcp_NNvolume nodesMoments are mapped to CfRadial2/FM 301 names (
T→DBTH,Z→DBZH,V→VRADH,W→WRADH,ZDR,HCLASS) with canonical attributes. Unit conversions are applied where needed (pulseWidth μs→s, waveLength cm→frequency Hz).Code ported from radarx with improvements for xradar integration.
Test Data
IMD sample files (Jaipur S-band, 2 volumes × 10 sweeps) added to open-radar-data v0.7.0 under the
IMD/prefix. Requiresopen-radar-data>=0.7.0.