xarray.Dataset.pr.combine_first

xarray.Dataset.pr.combine_first#

Dataset.pr.combine_first(ds_combine: Dataset | DataArray) Dataset#

Combine with data from other dataset or array.

Wrapper for xarray.Dataset.combine_first() which ensures that additional coordinates present in the calling Dataset are also present in the result. The default xarray.Dataset.combine_first() implementation silently drops additional (non-indexed) coordinates if they need alignment (do not cover the same values in both Datasets)

Parameters:
ds_combine

Dataset or DataArray to combine with the calling Dataset

Returns:
combined

calling Dataset calling DataArray combined with da_combine