radarx.io.imd.to_cfradial2_volumes#
- radarx.io.imd.to_cfradial2_volumes(volumes)[source]#
Convert multiple CfRadial1 volumes to a DataTree containing CfRadial2 structures.
This function processes a collection of radar volumes, converting each volume from CfRadial1 format to CfRadial2 using to_cfradial2. It organizes these volumes into a single DataTree where each top-level group corresponds to a different radar volume.
- Parameters:
volumes (
DataTree
) – A DataTree containing multiple radar volumes. Each child node should represent a radar volume.- Returns:
DataTree
– A root DataTree object named ‘volumes’ containing each converted radar volume as a subgroup. Each subgroup (volume_{i}) is structured according to the CfRadial2 format, containing sweeps and other relevant metadata.
Examples
>>> dtree_root = to_cfradial2_volumes(volumes) >>> print(dtree_root.groups) ['/volume_0', '/volume_1', '/volume_2', ...]
>>> print(dtree_root['volume_0'].groups) ['/', '/radar_parameters', '/georeferencing_correction', '/sweep_0', '/sweep_1', ...]
Notes
Each radar volume is expected to be a CfRadial1 format dataset.
The resulting structure has a root named ‘volumes’ with child nodes ‘volume_0’, ‘volume_1’, etc., each containing its respective subgroups.
See also
to_cfradial2
Convert a sweep to cfradial2 format