|
lsst.afw
13.0-102-g6486c126f
|
Describe an exposure's calibration. More...
#include <Calib.h>
Public Member Functions | |
| Calib () | |
| ctor More... | |
| Calib (double fluxMag0) | |
| ctor from a given fluxMagnitude zero point More... | |
| Calib (std::vector< std::shared_ptr< Calib const >> const &calibs) | |
| ctor from a vector of Calibs More... | |
| Calib (std::shared_ptr< lsst::daf::base::PropertySet const >) | |
| ctor More... | |
| void | setFluxMag0 (double fluxMag0, double fluxMag0Sigma=0.0) |
| Set the flux of a zero-magnitude object. More... | |
| void | setFluxMag0 (std::pair< double, double > fluxMag0AndSigma) |
| std::pair< double, double > | getFluxMag0 () const |
| Return the flux, and error in flux, of a zero-magnitude object. More... | |
| double | getFlux (double const mag) const |
| Return a flux (in ADUs) given a magnitude. More... | |
| std::pair< double, double > | getFlux (double const mag, double const magErr) const |
| Return a flux and flux error (in ADUs) given a magnitude and magnitude error. More... | |
| ndarray::Array< double, 1 > | getFlux (ndarray::Array< double const, 1 > const &mag) const |
| std::pair< ndarray::Array< double, 1 >, ndarray::Array< double, 1 > > | getFlux (ndarray::Array< double const, 1 > const &mag, ndarray::Array< double const, 1 > const &magErr) const |
| double | getMagnitude (double const flux) const |
| Return a magnitude given a flux. More... | |
| std::pair< double, double > | getMagnitude (double const flux, double const fluxErr) const |
| Return a magnitude and magnitude error given a flux and flux error. More... | |
| ndarray::Array< double, 1 > | getMagnitude (ndarray::Array< double const, 1 > const &flux) const |
| std::pair< ndarray::Array< double, 1 >, ndarray::Array< double, 1 > > | getMagnitude (ndarray::Array< double const, 1 > const &flux, ndarray::Array< double const, 1 > const &fluxErr) const |
| bool | operator== (Calib const &rhs) const |
| Are two Calibs identical? More... | |
| bool | operator!= (Calib const &rhs) const |
| Calib & | operator*= (double const scale) |
| Calib & | operator/= (double const scale) |
| bool | isPersistable () const |
| Return true if this particular object can be persisted using afw::table::io. More... | |
| void | writeFits (std::string const &fileName, std::string const &mode="w") const |
| Write the object to a regular FITS file. More... | |
| void | writeFits (fits::MemFileManager &manager, std::string const &mode="w") const |
| Write the object to a FITS image in memory. More... | |
| void | writeFits (fits::Fits &fitsfile) const |
| Write the object to an already-open FITS object. More... | |
Static Public Member Functions | |
| static void | setThrowOnNegativeFlux (bool raiseException) |
| Set whether Calib should throw an exception when asked to convert a flux to a magnitude. More... | |
| static bool | getThrowOnNegativeFlux () |
| Tell me whether Calib will throw an exception if asked to convert a flux to a magnitude. More... | |
| static std::shared_ptr< Calib > | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. More... | |
| static std::shared_ptr< Calib > | readFits (std::string const &fileName, int hdu=INT_MIN) |
| Read an object from a regular FITS file. More... | |
| static std::shared_ptr< Calib > | readFits (fits::MemFileManager &manager, int hdu=INT_MIN) |
| Read an object from a FITS file in memory. More... | |
Protected Types | |
| typedef io::OutputArchiveHandle | OutputArchiveHandle |
Protected Member Functions | |
| virtual std::string | getPersistenceName () const |
| Return the unique name used to persist this object and look up its factory. More... | |
| virtual void | write (OutputArchiveHandle &handle) const |
| Write the object to one or more catalogs. More... | |
| virtual std::string | getPythonModule () const |
| Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. More... | |
|
protectedinherited |
Definition at line 107 of file Persistable.h.
|
explicit |
|
explicit |
|
explicit |
| double lsst::afw::image::Calib::getFlux | ( | double const | mag | ) | const |
| std::pair< double, double > lsst::afw::image::Calib::getFlux | ( | double const | mag, |
| double const | magErr | ||
| ) | const |
| ndarray::Array< double, 1 > lsst::afw::image::Calib::getFlux | ( | ndarray::Array< double const, 1 > const & | mag | ) | const |
| std::pair< ndarray::Array< double, 1 >, ndarray::Array< double, 1 > > lsst::afw::image::Calib::getFlux | ( | ndarray::Array< double const, 1 > const & | mag, |
| ndarray::Array< double const, 1 > const & | magErr | ||
| ) | const |
| std::pair< double, double > lsst::afw::image::Calib::getFluxMag0 | ( | ) | const |
| double lsst::afw::image::Calib::getMagnitude | ( | double const | flux | ) | const |
| std::pair< double, double > lsst::afw::image::Calib::getMagnitude | ( | double const | flux, |
| double const | fluxErr | ||
| ) | const |
| ndarray::Array< double, 1 > lsst::afw::image::Calib::getMagnitude | ( | ndarray::Array< double const, 1 > const & | flux | ) | const |
| std::pair< ndarray::Array< double, 1 >, ndarray::Array< double, 1 > > lsst::afw::image::Calib::getMagnitude | ( | ndarray::Array< double const, 1 > const & | flux, |
| ndarray::Array< double const, 1 > const & | fluxErr | ||
| ) | const |
|
protectedvirtual |
Return the unique name used to persist this object and look up its factory.
Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.
Reimplemented from lsst::afw::table::io::Persistable.
|
protectedvirtualinherited |
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.
Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.
Will be ignored if empty.
Reimplemented in lsst::afw::math::Kernel, lsst::afw::image::Wcs, lsst::afw::detection::Footprint, lsst::afw::math::ChebyshevBoundedField, lsst::afw::math::Function< ReturnT >, lsst::afw::math::Function< Kernel::Pixel >, lsst::afw::math::TransformBoundedField, lsst::afw::detection::GaussianPsf, and lsst::afw::image::CoaddInputs.
|
static |
|
inlinevirtual |
Return true if this particular object can be persisted using afw::table::io.
Reimplemented from lsst::afw::table::io::Persistable.
|
inline |
| Calib & lsst::afw::image::Calib::operator*= | ( | double const | scale | ) |
|
inline |
| bool lsst::afw::image::Calib::operator== | ( | Calib const & | rhs | ) | const |
|
inlinestaticinherited |
Read an object from an already open FITS object.
| [in] | fitsfile | FITS object to read from, already positioned at the desired HDU. |
Definition at line 180 of file Persistable.h.
|
inlinestaticinherited |
Read an object from a regular FITS file.
| [in] | fileName | Name of the file to read. |
| [in] | hdu | HDU to read, where 0 is the primary. The special value of INT_MIN skips the primary HDU if it is empty. |
Definition at line 191 of file Persistable.h.
|
inlinestaticinherited |
Read an object from a FITS file in memory.
| [in] | manager | Manager for the memory to read from. |
| [in] | hdu | HDU to read, where 0 is the primary. The special value of INT_MIN skips the primary HDU if it is empty. |
Definition at line 202 of file Persistable.h.
| void lsst::afw::image::Calib::setFluxMag0 | ( | double | fluxMag0, |
| double | fluxMag0Sigma = 0.0 |
||
| ) |
| void lsst::afw::image::Calib::setFluxMag0 | ( | std::pair< double, double > | fluxMag0AndSigma | ) |
|
static |
|
protectedvirtual |
Write the object to one or more catalogs.
The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.
Reimplemented from lsst::afw::table::io::Persistable.
|
inherited |
Write the object to a regular FITS file.
| [in] | fileName | Name of the file to write to. |
| [in] | mode | If "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file. |
|
inherited |
Write the object to a FITS image in memory.
| [in] | manager | Name of the file to write to. |
| [in] | mode | If "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file. |
|
inherited |
Write the object to an already-open FITS object.
| [in] | fitsfile | Open FITS object to write to. |
1.8.13