MCPcopy Index your code
hub / github.com/pydata/xarray / mean_func

Function mean_func

xarray/tests/test_weighted.py:66–67  ·  view source on GitHub ↗
(ds)

Source from the content-addressed store, hash-verified

64
65 # simple customized weighted mean function
66 def mean_func(ds):
67 return ds.weighted(ds.weights).mean("time")
68
69 # example dataset
70 t = xr.date_range(start="2000", periods=20, freq="1YS", use_cftime=True)

Callers

nothing calls this directly

Calls 2

meanMethod · 0.45
weightedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…