- I have a dataset from an ocean model (ROMS).
- I use
resample
to compute daily-averaged values of some variable. - I am trying to use
xroms.ddxi
to get the x-derivative of the daily-averaged variable with the code below (The variableutemp_daily
is the daily-averaged variable andutemp
is the original variable.):
xroms.ddxi(utemp_daily,utemp_daily.attrs['grid'])
- I get the error message:
Unable to find any combinations of metrics for array dims {'xi_u', 'eta_rho', 's_w'} and axes ('Z',)"
I confirmed the daily-averaged variable does have a grid
attribute.
Is there a way to seamless pass along the metrics to derived variables?
Here is the output of cf.describe()
: