|
lsst.afw
13.0-92-g8ecf155+1
|
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... | |
Public Member Functions inherited from lsst::afw::table::io::Persistable | |
| 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... | |
| virtual | ~Persistable () |
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 Public Member Functions inherited from lsst::afw::table::io::PersistableFacade< Calib > | |
| 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 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... | |
Protected Member Functions inherited from lsst::afw::table::io::Persistable | |
| virtual std::string | getPythonModule () const |
| Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. More... | |
| Persistable () | |
| Persistable (Persistable const &other) | |
| void | operator= (Persistable const &other) |
Additional Inherited Members | |
Protected Types inherited from lsst::afw::table::io::Persistable | |
| typedef io::OutputArchiveHandle | OutputArchiveHandle |
|
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.
|
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 |
| 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.
1.8.5