We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d365b commit e377517Copy full SHA for e377517
ilamb3/transform/integrate.py
@@ -12,6 +12,8 @@ def __init__(
12
dim: str,
13
varname: str,
14
mean: bool = False,
15
+ # give trapezoidal option to use xarray built-in .integrate()
16
+ # otherwise, use nate's method
17
**kwargs: Any,
18
):
19
self.dim = dim
@@ -39,7 +41,7 @@ def __call__(self, ds: xr.Dataset) -> xr.Dataset:
39
41
elif dim_name == "space":
40
42
ds[self.varname] = dset.integrate_space(ds, self.varname, mean=self.mean)
43
else:
- return ds
44
+ return ds # if someone really wants to integrate over a different magical dim, they can implement their own transform
45
46
47
class integrate_time(integrate):
0 commit comments