It would also take parameters like _groupspan (to include groups whose actual span is not equal to a given value) and _groupcontiguous (to include non-contiguous groups, or any contiguous group containing overlapping cells). A similar functionality is embedded in collapse but it works only when one has to collapse axes of the field.
Feature request for a
cf.Field.group()
method like subspace, but which allows one to subspace something which has a structure:E.g., Subsetting data only for the extended winter (ONDJFM) from 2018-2020:
It would also take parameters like _groupspan (to include groups whose actual span is not equal to a given value) and _groupcontiguous (to include non-contiguous groups, or any contiguous group containing overlapping cells). A similar functionality is embedded in collapse but it works only when one has to collapse axes of the field.