datatree.DataTree.combine_first

Attention

This repository has been archived. Please use xarray.DataTree instead.

datatree.DataTree.combine_first#

DataTree.combine_first(other: Self) Self[source]#

Combine two Datasets, default to data_vars of self.

The new coordinates follow the normal broadcasting and alignment rules of join='outer'. Vacant cells in the expanded coordinates are filled with np.nan.

Parameters:

other (Dataset) – Used to fill all matching missing values in this array.

Returns:

Dataset