xarray.DataArray.cf.differentiate¶
- DataArray.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 ofcoordso that positive values indicate increasing upward. Ifpositive=="down", then multiplied by -1.
- Returns:
- DataArray or Dataset
Differentiated object.
See also
DataArray.cf.differentiateDataset.cf.differentiatexarray.DataArray.differentiateUnderlying xarray function.
xarray.Dataset.differentiateUnderlying xarray function.
Notes
xr_args,xr_kwargsare passed directly to the underlying xarray function.