combine_arrays_to_dataset

HSTB.kluster.xarray_helpers.combine_arrays_to_dataset(arrs, arrnames)

Build a dataset from a list of Xarray DataArrays, given a list of names for each array.

Parameters
  • arrs (Union[list, DataArray]) – xarray DataArrays you want in your xarray Dataset

  • arrnames (list) – string name identifiers for each array, will be the variable name in the Dataset

Returns

xarray Dataset with variables equal to the provided arrays

Return type

xr.Dataset