- DatasetResample.map(func, args=(), shortcut=None, **kwargs)#
Apply a function over each Dataset in the groups generated for resampling and concatenate them together into a new Dataset.
func is called like func(ds, *args, **kwargs) for each dataset ds in this group.
Apply uses heuristics (like pandas.GroupBy.apply) to figure out how to stack together the datasets. The rule is:
If the dimension along which the group coordinate is defined is still in the first grouped item after applying func, then stack over this dimension.
Otherwise, stack over the new dimension given by name of this grouping (the argument to the groupby function).