The current implementation creates new variables and adds them to the dataset using xarray.Dataset.assign() which makes a copy of the dataset. An inplace modification would be to use the update() method. This will require the functions that create and populate the new variables to return dictionaries with the new DataArrays rather than returning a modified Dataset.
Algorithm Description:
The current implementation creates new variables and adds them to the dataset using
xarray.Dataset.assign()
which makes a copy of the dataset. An inplace modification would be to use theupdate()
method. This will require the functions that create and populate the new variables to return dictionaries with the newDataArray
s rather than returning a modifiedDataset
.