xradar.io.backends.iris.open_iris_datatree#

xradar.io.backends.iris.open_iris_datatree(filename_or_obj, **kwargs)[source]#

Open Iris/Sigmet dataset as xarray.DataTree.

Parameters:

filename_or_obj (str, Path, file-like or DataStore) – Strings and Path objects are interpreted as a path to a local or remote radar file

Keyword Arguments:
  • sweep (int, list of int, optional) – Sweep number(s) to extract, default to first sweep. If None, all sweeps are extracted into a list.

  • first_dim (str) – Can be time or auto first dimension. If set to auto, first dimension will be either azimuth or elevation depending on type of sweep. Defaults to auto.

  • reindex_coord (dict, optional) – Defaults to None, no reindexing. Nested dict with optional keys angle and range holding the kwargs for xradar.util.reindex_angle() and xradar.util.reindex_range(), e.g. dict(angle=dict(start_angle=0, stop_angle=360, angle_res=1.0, direction=1)). Only invoked if decode_coords=True.

  • reindex_angle (dict, optional) – Deprecated, use reindex_coord=dict(angle=...) instead.

  • fix_second_angle (bool) – If True, fixes erroneous second angle data. Defaults to False.

  • site_as_coords (bool) – Attach radar site-coordinates to Dataset, defaults to True.

  • kwargs (dict) – Additional kwargs are fed to xarray.open_dataset().

Returns:

dtree (xarray.DataTree) – DataTree