xarray.Dataset.cf.differentiate¶
- Dataset.cf.differentiate(coord, *xr_args, positive_upward=False, **xr_kwargs)¶
Differentiate an xarray object.
- Parameters:
- coordHashable
The coordinate used to compute the gradient.
- positive_upwardoptional, bool
Change sign of the derivative based on the
"positive"
attribute ofcoord
so that positive values indicate increasing upward. Ifpositive=="down"
, then multiplied by -1.
- Returns:
- DataArray or Dataset
Differentiated object.
See also
DataArray.cf.differentiate
Dataset.cf.differentiate
xarray.DataArray.differentiate
Underlying xarray function.
xarray.Dataset.differentiate
Underlying xarray function.
Notes
xr_args
,xr_kwargs
are passed directly to the underlying xarray function.