ImageCurve#

class lsst.meas.algorithms.ImageCurve(wavelength, efficiency, metadata)#

Bases: 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 Curve object.

toTable()

Convert this Curve object to an astropy.table.QTable.

Attributes Documentation

mode = 'IMAGE'#

Methods Documentation

evaluate(detector, position, wavelength, kind='linear', bounds_error=False, fill_value=0)#

Interpolate the curve at the specified position and wavelength.

Parameters#

detectorlsst.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.

positionlsst.geom.Point2D

The position on the detector at which to evaluate the curve.

wavelengthastropy.units.Quantity

The wavelength(s) at which to make the interpolation.

kindstr, optional

The type of interpolation to do (default is ‘linear’). See documentation for scipy.interpolate.interp1d for accepted values.

bounds_errorbool, optional

Raise error if interpolating outside the range of x? (default is False)

fill_valuefloat, optional

Fill values outside the range of x with this value (default is 0).

Returns#

valueastropy.units.Quantity

Interpolated value(s). Number of values returned will match the length of wavelength.

Raises#

ValueError

If the bounds_error is changed from the default, it will raise a ValueError if evaluating outside the bounds of the curve.

fromTable(table)#

Class method for constructing a Curve object.

Parameters#

tableastropy.table.QTable

Table containing metadata and columns necessary for constructing a Curve object.

Returns#

curveCurve

A Curve subclass of the appropriate type according to the table metadata

toTable()#

Convert this Curve object to an astropy.table.QTable.

Returns#

tableastropy.table.QTable

A table object containing the data from this Curve.