23 #ifndef LSST_AFW_IMAGE_TRANSMISSIONCURVE_H_INCLUDED 24 #define LSST_AFW_IMAGE_TRANSMISSIONCURVE_H_INCLUDED 26 #include "ndarray_fwd.h" 85 ndarray::Array<double const,1>
const & throughput,
86 ndarray::Array<double const,1>
const & wavelengths,
109 ndarray::Array<double const,2>
const & throughput,
110 ndarray::Array<double const,1>
const & wavelengths,
111 ndarray::Array<double const,1>
const & radii,
189 ndarray::Array<double const,1,1>
const & wavelengths,
190 ndarray::Array<double,1,1>
const & out
203 ndarray::Array<double,1,1>
sampleAt(
205 ndarray::Array<double const,1,1>
const & wavelengths
250 #endif // !LSST_AFW_IMAGE_TRANSMISSIONCURVE_H_INCLUDED
A spatially-varying transmission curve as a function of wavelength.
std::shared_ptr< TransmissionCurve const > transformedBy(std::shared_ptr< geom::TransformPoint2ToPoint2 > transform) const
Return a view of a TransmissionCurve in a different coordinate system.
table::Key< double > throughputAtMax
ItemVariant const * other
table::Key< double > throughputAtMin
std::shared_ptr< TransmissionCurve const > multipliedBy(TransmissionCurve const &other) const
Return a new TransmissionCurve that simply multiplies the values of two others.
A base class for objects that can be persisted via afw::table::io Archive classes.
virtual std::pair< double, double > getThroughputAtBounds() const =0
Return the throughput value that will be returned for wavelengths below and above getWavelenthBounds(...
A base class for image defects.
TransmissionCurve & operator=(TransmissionCurve const &)=delete
virtual std::shared_ptr< TransmissionCurve const > _transformedByImpl(std::shared_ptr< geom::TransformPoint2ToPoint2 > transform) const
Polymorphic implementation for transformedBy().
static std::shared_ptr< TransmissionCurve const > makeRadial(ndarray::Array< double const, 2 > const &throughput, ndarray::Array< double const, 1 > const &wavelengths, ndarray::Array< double const, 1 > const &radii, double throughputAtMin=0.0, double throughputAtMax=0.0)
Create a new TransmissionCurve with throughput varying as function of radius.
static std::shared_ptr< TransmissionCurve const > makeSpatiallyConstant(ndarray::Array< double const, 1 > const &throughput, ndarray::Array< double const, 1 > const &wavelengths, double throughputAtMin=0.0, double throughputAtMax=0.0)
Create a new TransmissionCurve with spatially-constant throughput.
virtual void sampleAt(geom::Point2D const &position, ndarray::Array< double const, 1, 1 > const &wavelengths, ndarray::Array< double, 1, 1 > const &out) const =0
Evaluate the throughput at a position into a provided output array.
virtual std::pair< double, double > getWavelengthBounds() const =0
Return the wavelength interval on which this TransmissionCurve varies.
virtual std::shared_ptr< TransmissionCurve const > _multipliedByImpl(std::shared_ptr< TransmissionCurve const > other) const
One-way polymorphic implementation for multipliedBy().
std::string getPythonModule() const override
Return the fully-qualified Python module that should be imported to guarantee that its factory is reg...
virtual ~TransmissionCurve()=default
A CRTP facade class for subclasses of Persistable.
TransmissionCurve()=default
table::Key< int > transform
static std::shared_ptr< TransmissionCurve const > makeIdentity()
Create a new TranmissionCurve that has unit thoughput at all wavelengths everywhere.