label_regions#
- rojak.atmosphere.regions.label_regions(array, num_dims=3, core_dims=None, connectivity=None)[source]#
Labels connected regions
- Parameters:
array (DataArray) – Array to label
num_dims (int) – Number of spatial dimension to do the labeling on
core_dims (list[str] | None) – Name of core dimensions to iterate over
connectivity (int | None) – number of neighbours which are considered to belong to central element. If None, it will be
num_dim
- Returns:
Labelled array
- Return type: