Skip to content

Support for vertical beams in RHI over radar site, KAZR, SACR radars#25

Merged
rcjackson merged 15 commits into
ARM-Development:mainfrom
rcjackson:new_release
Apr 20, 2026
Merged

Support for vertical beams in RHI over radar site, KAZR, SACR radars#25
rcjackson merged 15 commits into
ARM-Development:mainfrom
rcjackson:new_release

Conversation

@rcjackson
Copy link
Copy Markdown
Collaborator

Changes to accommodate the modifications to the DOD as requested by the ARM mentors including support for KAZR/SACR radars and support for RHIs in addition to PPIs.

Robert Jackson and others added 15 commits March 6, 2026 15:02
…ustion in parallel runs

Close xarray datasets opened via act.io.read_arm_netcdf and xr.open_dataset
immediately after data is loaded into memory, rather than relying on garbage
collection, which does not run frequently enough in parallel workers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds _log_open_hdf5() using h5py's low-level API, called after each radar
file is processed (subset_points, get_nexrad_column) and after each parallel
collection loop in radclss_core, so that leaking handles can be pinpointed
from WARNING-level log output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…chunked concat

- Cache sonde dataset reads across radar files (_read_sonde_cached): the same
  sonde launch is re-used by many consecutive scans, so each unique file is now
  read and computed only once per process lifetime.

- Split match_datasets_act into _prepare_match (I/O + resample) and _apply_match
  (in-place merge). The prepare step is now run concurrently for all ground
  instruments via ThreadPoolExecutor; the apply step remains sequential.

- Replace the serial NEXRAD time-list loop with a ThreadPoolExecutor: fetches are
  pure network I/O so they parallelise well without multiprocessing overhead.

- Replace single large xr.concat(columns[k]) with a chunked tree-reduce concat
  (chunk size 50) to bound peak memory during the assembly step.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rcjackson rcjackson merged commit 0a901bb into ARM-Development:main Apr 20, 2026
11 of 13 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.

1 participant