-
|
Hi, I have three DataArrays inside one Dataset and want to apply a function based on them. Here's an example. top, middle, and bottom DataArrays are three layers for calculating the integration of Gaussian distribution. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
IIUC you want something like xr.apply_ufunc(
integrate_at_single_x_y,
ds.top,
ds.middle,
vectorize=True, # does the for loop for you
)Neither |
Beta Was this translation helpful? Give feedback.
IIUC you want something like
Neither
xoryare a core dimension here, because the lowest-dimensional input your function requires is a scalar.