xugrid.UgridDatasetAccessor.partition_by_label#

UgridDatasetAccessor.partition_by_label(labels: ndarray) UgridDataArray | UgridDataset#

Partition a grid by labels.

Parameters:

labels (np.ndarray of integers labeling each face.)

Returns:

partitioned

Return type:

list of partitions