xarray.Dataset.update (original) (raw)

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:

Returns:

updated (Dataset) – Updated dataset. Note that since the update is in-place this is the input dataset.

It is deprecated since version 0.17 and scheduled to be removed in 0.21.

Raises:

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