xdas.open_dataarray#

xdas.open_dataarray(fname, engine=None, vtype=None, ctype=None, **kwargs)[source]#

Open a dataarray.

Parameters:
  • fname (str) – The path of the dataarray.

  • engine (str or callable, optional) – The type of file to open or a read function. Default to xdas netcdf format.

  • **kwargs – Additional keyword arguments to be passed to the read function.

Returns:

The opened dataarray.

Return type:

DataArray

Raises:
  • ValueError – If the engine is not recognized.

  • FileNotFound – If no file can be found.