radarx.grid.grid.stack_data#

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

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

Parameters:
  • dtree (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.