23 #ifndef LSST_AFW_IMAGE_TRANSMISSIONCURVE_H_INCLUDED 24 #define LSST_AFW_IMAGE_TRANSMISSIONCURVE_H_INCLUDED 26 #include "ndarray_fwd.h" 83 ndarray::Array<double const, 1>
const &throughput,
84 ndarray::Array<double const, 1>
const &wavelengths,
double throughputAtMin = 0.0,
106 ndarray::Array<double const, 2>
const &throughput,
107 ndarray::Array<double const, 1>
const &wavelengths, ndarray::Array<double const, 1>
const &
radii,
182 ndarray::Array<double const, 1, 1>
const &wavelengths,
183 ndarray::Array<double, 1, 1>
const &out)
const = 0;
195 ndarray::Array<double const, 1, 1>
const &wavelengths)
const;
236 #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.
Interface supporting iteration over heterogenous containers.
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 image defects.
~TransmissionCurve() override=default
virtual void sampleAt(lsst::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.
TransmissionCurve & operator=(TransmissionCurve const &)=delete
virtual std::pair< double, double > getWavelengthBounds() const =0
Return the wavelength interval on which this TransmissionCurve varies.
table::Key< double > throughputAtMin
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.
ItemVariant const * other
virtual std::shared_ptr< TransmissionCurve const > _multipliedByImpl(std::shared_ptr< TransmissionCurve const > other) const
One-way polymorphic implementation for multipliedBy().
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
std::string getPythonModule() const override
Return the fully-qualified Python module that should be imported to guarantee that its factory is reg...
A CRTP facade class for subclasses of Persistable.
TransmissionCurve()=default
virtual std::pair< double, double > getThroughputAtBounds() const =0
Return the throughput value that will be returned for wavelengths below and above getWavelenthBounds(...
table::Key< double > throughputAtMax
static std::shared_ptr< TransmissionCurve const > makeIdentity()
Create a new TranmissionCurve that has unit thoughput at all wavelengths everywhere.