xarray.Dataset.update#

Dataset.update(other)[source]#

Update this dataset’s variables with those from another dataset.

Just like dict.update() this is a in-place operation. For a non-inplace version, see Dataset.merge().

Parameters:

other (Dataset or mapping) – Variables with which to update this dataset. One of:

  • Dataset

  • mapping {var name: DataArray}

  • mapping {var name: Variable}

  • mapping {var name: (dimension name, array-like)}

  • mapping {var name: (tuple of dimension names, array-like)}

Raises:

ValueError – If any dimensions would have inconsistent sizes in the updated dataset.