geomean¶
- geomean(lon, lat, data, /, box=None, weights=1, keepdims=False)[source]¶
Take area mean of data time series.
- Parameters
lon (array-like) – Grid longitude centers.
lat (array-like) – Grid latitude centers.
data (array-like) – Should be lon by lat by (extra dims); will preserve dimensionality.
box (length-4 list of float, optional) – Region for averaging. If the edges don’t fall on the graticule, we subsample the grid cells that do.
weights (array-like, optional) – Weights to apply to the averages.
Todo
Allow applying land or ocean mask as part of module functionality.