pyart.io.read_files#

pyart.io.read_files(wildcard, reader, **kwargs)#

Read multiple radar files matching a wildcard and merge them into a single Py-ART Radar object.

The files are read in sorted order. The first file initializes the radar object, and subsequent files are merged into it using pyart.util.radar_utils.join_radar.

Parameters:
  • wildcard (str) – File path pattern (including wildcards) used to locate radar files, e.g. "/path/to/data/MLD1816221000U.*".

  • reader (callable) – Py-ART radar reader function used to read a single file, for example pyart.aux_io.read_metranet or pyart.io.read.

Returns:

radar (pyart.core.Radar) – A Py-ART Radar object containing the merged data from all files matching the wildcard.

Raises:

FileNotFoundError – If no files match the provided wildcard pattern.

Notes

This function assumes that all radar files are compatible for merging, i.e. they represent consecutive sweeps or volumes that can be combined using pyart.util.radar_utils.join_radar.