xarray.open_dataarray (original) (raw)

xarray.open_dataarray(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 an DataArray from a file or file-like object containing a single data variable.

This is designed to read netCDF files with only one data variable. If multiple variables are present then a ValueError is raised.

Parameters:

Notes

This is designed to be fully compatible with DataArray.to_netcdf. Saving using DataArray.to_netcdf and then loading with this function will produce an identical result.

All parameters are passed directly to xarray.open_dataset. See that documentation for further details.