xarray.Dataset.update¶
-
Dataset.
update
(other, inplace=None)¶ Update this dataset’s variables with those from another dataset.
- Parameters
- otherDataset or castable to Dataset
Dataset or variables with which to update this dataset.
- inplacebool, optional
If True, merge the other dataset into this dataset in-place. Otherwise, return a new dataset object.
- Returns
- updatedDataset
Updated dataset.
- Raises
- ValueError
If any dimensions would have inconsistent sizes in the updated dataset.