datacube.api.query.GroupBy#
- class datacube.api.query.GroupBy(group_by_func, dimension, units, sort_key=None, group_key=None)[source]#
GroupBy Object
- Parameters:
group_by_func (
Callable) – Dataset -> group identifierdimension – dimension of the group key
units – units of the group key
sort_key – how to sort datasets in a group internally
group_key (
Callable[[list[Dataset] |tuple[Dataset,...]],Any] |None) – the coordinate value for a group list[Dataset] -> coord value
- __init__(group_by_func, dimension, units, sort_key=None, group_key=None)[source]#
GroupBy Object
- Parameters:
group_by_func (
Callable) – Dataset -> group identifierdimension – dimension of the group key
units – units of the group key
sort_key – how to sort datasets in a group internally
group_key (
Callable[[list[Dataset] |tuple[Dataset,...]],Any] |None) – the coordinate value for a group list[Dataset] -> coord value
Methods
__init__(group_by_func, dimension, units[, ...])GroupBy Object