pynrc.reduce.calib.ramp_derivative

pynrc.reduce.calib.ramp_derivative(y, dx=None, fit0=True, deg=2, ifit=[0, 10])[source]

Get the frame-by-frame derivative of a ramp.

Parameters
  • y (ndarray) – Array of values (1D, 2D or 3D)

  • dx (float) – If dx is supplied, divide by value to get dy/dx.

  • fit0 (bool) – In order to find slope of element 0, we have the option to fit some number of values to extrapolate this value. If not set, then dy0 = 2*dy[0] - dy[1].

  • ifit (2-element array) – Indices to fit in order to extrapolate dy0. Don’t necessarily want to fit the entire dataset.

  • deg (int) – Polynomial degree to use for extrapolation fit.