reconstructSpectrum

fiducia.cspline.reconstructSpectrum(chLen, knots, knotsY, knotsYUncertainty=None, npts=1000, plot=False)[source]

Reconstruct the inferred DANTE spectrum given the knot points \(y_i\) obtained from knotSolve().

Parameters
  • chLen (int) – Number of DANTE channels (equal to number of spline knots).

  • knots (list, numpy.ndarray) – List or array of knot point photon energy value. See knotFind().

  • knotsY (numpy.ndarray) – Array of knot point intensity values with yGuess appended. See knotSolve() and analyzeSpectrum().

  • knotsYUncertainty (numpy.ndarray) – Array of knot point intensity uncertainty values with yGuess appended. See knotSolve() and analyzeSpectrum(). The default is None.

  • npts (int) – Number of points used in computing the integral. The default is 1000.

  • plot (Bool) – Flag for plotting unfolded spectrum. The default is False.

Returns

  • photonEnergies (numpy.ndarray) – Photon energy axis of unfolded spectrum.

  • intensities (numpy.ndarray) – Spectral intensity axis of unfolded spectrum.

  • intensitiesVariance (numpy.ndarray) – Uncertaitny (1 \(\sigma\)) on spectral intensity values.

Notes

Examples