xugrid.merge_partitions#

xugrid.merge_partitions(partitions, merge_ugrid_chunks: bool = True)[source]#

Merge topology and data, partitioned along UGRID dimensions, into a single UgridDataset.

UGRID topologies and variables are merged if they share a name. Topologies and variables must be present in all partitions. Dimension names must match.

Variables are omitted from the merged result if non-UGRID dimensions do not match in size.

Parameters:
  • partitions (sequence of UgridDataset or UgridDataArray)

  • merge_ugrid_chunks (bool, default is True.) – Whether to merge chunks along the UGRID topology dimensions.

Returns:

merged

Return type:

UgridDataset