xradar.util.apply_to_volume#
- xradar.util.apply_to_volume(dtree, func, *args, **kwargs)[source]#
Alias for apply_to_sweeps. Applies a given function to all sweep nodes in the radar volume.
- Parameters:
dtree (
xarray.DataTree
) – The DataTree object representing the radar volume.func (
function
) – The function to apply to each sweep.*args (
tuple
) – Additional positional arguments to pass to the function.**kwargs (
dict
) – Additional keyword arguments to pass to the function.
- Returns:
xarray.DataTree
– A new DataTree object with the function applied to all sweeps.