trapz_dx

grizli.utils.trapz_dx(x)[source]

Return trapezoid rule coefficients, useful for numerical integration using a dot product

Parameters
xarray-like

Independent variable

Returns
dxarray_like

Coefficients for trapezoidal rule integration.