responseInterp

fiducia.cspline.responseInterp(energyNorm, energyMin, energyMax, responseFrame, channels)[source]

Given a DANTE detector response as a function of energy, convert the response to normalized photon energy, t, over a given spline segment, and return interpolated response values for a given value of t. Returns an array of interpolated responses corresponding to the number of channels.

Parameters
  • energyNorm (float, numpy.ndarray) – normalized photon energy

  • energyMin (float) – Lower bound photon energy of the spline segment over which we are normalizing.

  • eneryMax (float) – Upper bound photon energy of the spline segment over which we are normalizing.

  • responseFrame (pandas.core.frame.DataFrame) – DANTE channel responses as a function of photon energy (not normalized).

  • channels (numpy.ndarray) – numpy array of DANTE channel numbers.

Returns

responsesInterpd – Returns a matrix of (energyNorms, channels) of response functions.

Return type

numpy.ndarray

Notes

Examples