DetectorCurve#
- class lsst.meas.algorithms.DetectorCurve(wavelength, efficiency, metadata)#
Bases:
CurveSubclass of
Curvethat represents a single curve per detector.Parameters#
- wavelength
astropy.units.Quantity Wavelength values for this curve
- efficiency
astropy.units.Quantity Quantum efficiency values for this curve
- metadata
dict Dictionary of metadata for this curve
Attributes Summary
Methods Summary
evaluate(detector, position, wavelength[, ...])Interpolate the curve at the specified position and wavelength.
fromTable(table)Class method for constructing a
Curveobject.toTable()Convert this
Curveobject to anastropy.table.QTable.Attributes Documentation
- mode = 'DETECTOR'#
Methods Documentation
- evaluate(detector, position, wavelength, kind='linear', bounds_error=False, fill_value=0)#
Interpolate the curve at the specified position and wavelength.
Parameters#
- detector
lsst.afw.cameraGeom.Detector Is used to find the appropriate curve given the position for curves that vary over the detector. Ignored in the case where there is only a single curve per detector.
- position
lsst.geom.Point2D The position on the detector at which to evaluate the curve.
- wavelength
astropy.units.Quantity The wavelength(s) at which to make the interpolation.
- kind
str, optional The type of interpolation to do (default is ‘linear’). See documentation for
scipy.interpolate.interp1dfor accepted values.- bounds_error
bool, optional Raise error if interpolating outside the range of x? (default is False)
- fill_value
float, optional Fill values outside the range of x with this value (default is 0).
Returns#
- value
astropy.units.Quantity Interpolated value(s). Number of values returned will match the length of
wavelength.
Raises#
- ValueError
If the
bounds_erroris changed from the default, it will raise aValueErrorif evaluating outside the bounds of the curve.
- detector
- wavelength