radarx.grid.grid.stack_data#

radarx.grid.grid.stack_data(obj, data_vars=None, geo=False)[source]#

Stack data from a radar DataTree into a single xarray Dataset.

Parameters:
  • obj (xradar.DataTree) – The input DataTree containing radar data.

  • data_vars (list of str or None, optional) – A list of variables to stack. If None, all variables with more than one dimension are included.

  • geo (bool, optional) – If True, converts coordinates to geographic (lon, lat, alt).

Returns:

xarray.Dataset – A stacked dataset with the specified or all multidimensional variables.

Notes

Bookkeeping only (no published method): the gates are georeferenced with xradar (4/3 effective Earth radius model) and stacked into one point dimension.

Dask. This function computes the dask array: it stacks the sweeps of the volume into one Dataset. The input is loaded into memory and the result is held in memory.