cf_xarray.groupers.FlagGrouper

class cf_xarray.groupers.FlagGrouper[source]

Grouper object that allows convenient categorical grouping by a CF flag variable.

Labels in the grouped output will be restricted to those listed in flag_meanings.

__init__()

Methods

__init__()

factorize(group)

Creates intermediates necessary for GroupBy.

reset()

Creates a new version of this Grouper clearing any caches.

_abc_impl = <_abc._abc_data object>
factorize(group)[source]

Creates intermediates necessary for GroupBy.

Parameters:
groupDataArray

DataArray we are grouping by.

Returns:
EncodedGroups
reset()[source]

Creates a new version of this Grouper clearing any caches.