xarray.open_datatree (original) (raw)

xarray.open_datatree(filename_or_obj, *, engine=None, chunks=None, cache=None, decode_cf=None, mask_and_scale=None, decode_times=None, decode_timedelta=None, use_cftime=None, concat_characters=None, decode_coords=None, drop_variables=None, inline_array=False, chunked_array_type=None, from_array_kwargs=None, backend_kwargs=None, **kwargs)[source]#

Open and decode a DataTree from a file or file-like object, creating one tree node for each group in the file.

Parameters:

Returns:

tree (DataTree) – The newly created datatree.

Notes

open_datatree opens the file with read-only access. When you modify values of a DataTree, even one linked to files on disk, only the in-memory copy you are manipulating in xarray is modified: the original file on disk is never touched.