Skip to content

Commit 14477bd

Browse files
committed
add docstring
1 parent 19ea33e commit 14477bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cf_xarray/groupers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
@dataclass
99
class FlagGrouper(UniqueGrouper):
10+
"""
11+
Grouper object that allows convenient categorical grouping by a CF flag variable.
12+
"""
13+
1014
def factorize(self, group) -> EncodedGroups:
1115
if "flag_values" not in group.attrs or "flag_meanings" not in group.attrs:
1216
raise ValueError(

0 commit comments

Comments
 (0)