xradar.io.backends.cfradial1.open_cfradial1_datatree#
- xradar.io.backends.cfradial1.open_cfradial1_datatree(filename_or_obj, **kwargs)[source]#
Open CfRadial1 dataset as
xarray.DataTree.Deprecated since version Use:
xd.open_datatree(file, engine="cfradial1")orxr.open_datatree(file, engine="cfradial1")instead.- Parameters:
filename_or_obj (
str,Path, file-like orxarray.DataStore) – Strings and Path objects are interpreted as a path to a local or remote radar file- Keyword Arguments:
sweep (
int,listofint, optional) – Sweep number(s) to extract, default to first sweep. If None, all sweeps are extracted into a list.first_dim (
str) – Can betimeorautofirst dimension. If set toauto, first dimension will be eitherazimuthorelevationdepending on type of sweep. Defaults toauto.reindex_coord (
dict, optional) – Defaults to None, no reindexing. Nested dict with optional keysangleandrangeholding the kwargs forxradar.util.reindex_angle()andxradar.util.reindex_range(), e.g.dict(angle=dict(start_angle=0, stop_angle=360, angle_res=1.0, direction=1)). Only invoked ifdecode_coords=True.reindex_angle (
dict, optional) – Deprecated, usereindex_coord=dict(angle=...)instead.fix_second_angle (
bool) – If True, fixes erroneous second angle data. Defaults toFalse.optional (
bool) – Import optional mandatory data and metadata, defaults toTrue.site_as_coords (
bool) – Attach radar site-coordinates to Dataset, defaults toTrue.engine (
str) – Engine that will be passed to Xarray.open_dataset, defaults to “netcdf4”
- Returns:
dtree (
xarray.DataTree) – DataTree with CfRadial2 groups.