LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
#include <Calib.h>
Public Types | |
typedef boost::shared_ptr< Calib > | Ptr |
typedef boost::shared_ptr < Calib const > | ConstPtr |
Public Member Functions | |
Calib () | |
Calib (std::vector< boost::shared_ptr< Calib const >> const &calibs) | |
Calib (boost::shared_ptr< lsst::daf::base::PropertySet const >) | |
void | setMidTime (lsst::daf::base::DateTime const &midTime) |
lsst::daf::base::DateTime | getMidTime () const |
lsst::daf::base::DateTime | getMidTime (boost::shared_ptr< const lsst::afw::cameraGeom::Detector >, lsst::afw::geom::Point2I const &) const |
void | setExptime (double exptime) |
double | getExptime () const |
void | setFluxMag0 (double fluxMag0, double fluxMag0Sigma=0.0) |
void | setFluxMag0 (std::pair< double, double > fluxMag0AndSigma) |
std::pair< double, double > | getFluxMag0 () const |
double | getFlux (double const mag) const |
std::pair< double, double > | getFlux (double const mag, double const magErr) const |
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 |
std::pair< double, double > | getMagnitude (double const flux, double const fluxErr) const |
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 |
bool | operator!= (Calib const &rhs) const |
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) |
static bool | getThrowOnNegativeFlux () |
Static Public Member Functions inherited from lsst.afw.table.io::PersistableFacade< Calib > | |
static boost::shared_ptr< Calib > | readFits (fits::Fits &fitsfile) |
Read an object from an already open FITS object. More... | |
static boost::shared_ptr< Calib > | readFits (std::string const &fileName, int hdu=0) |
Read an object from a regular FITS file. More... | |
static boost::shared_ptr< Calib > | readFits (fits::MemFileManager &manager, int hdu=0) |
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) |
Private Attributes | |
lsst::daf::base::DateTime | _midTime |
double | _exptime |
double | _fluxMag0 |
double | _fluxMag0Sigma |
Static Private Attributes | |
static bool | _throwOnNegativeFlux = true |
Additional Inherited Members | |
Protected Types inherited from lsst.afw.table.io::Persistable | |
typedef io::OutputArchiveHandle | OutputArchiveHandle |
typedef boost::shared_ptr<Calib const> lsst.afw.image::Calib::ConstPtr |
typedef boost::shared_ptr<Calib> lsst.afw.image::Calib::Ptr |
|
explicit |
ctor from a vector of Calibs
calibs | Set of calibs to be merged |
Definition at line 55 of file Calib.cc.
|
explicit |
ctor
Definition at line 95 of file Calib.cc.
double lsst.afw.image::Calib::getExptime | ( | ) | const |
double lsst.afw.image::Calib::getFlux | ( | double const | mag | ) | const |
std::pair< double, double > lsst.afw.image::Calib::getFlux | ( | double const | mag, |
double const | magSigma | ||
) | const |
ndarray::Array< double, 1 > lsst.afw.image::Calib::getFlux | ( | ndarray::Array< double const, 1 > const & | mag | ) | const |
Definition at line 334 of file Calib.cc.
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 |
Definition at line 361 of file Calib.cc.
std::pair< double, double > lsst.afw.image::Calib::getFluxMag0 | ( | ) | const |
double lsst.afw.image::Calib::getMagnitude | ( | double const | flux | ) | const |
Return a magnitude given a flux
flux | the measured flux of the object (ADUs) |
Definition at line 391 of file Calib.cc.
std::pair< double, double > lsst.afw.image::Calib::getMagnitude | ( | double const | flux, |
double const | fluxErr | ||
) | const |
Return a magnitude and magnitude error given a flux and flux error
flux | the measured flux of the object (ADUs) |
fluxErr | the error in the measured flux (ADUs) |
Definition at line 404 of file Calib.cc.
ndarray::Array< double, 1 > lsst.afw.image::Calib::getMagnitude | ( | ndarray::Array< double const, 1 > const & | flux | ) | const |
Definition at line 419 of file Calib.cc.
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 |
Definition at line 440 of file Calib.cc.
lsst::daf::base::DateTime lsst.afw.image::Calib::getMidTime | ( | ) | const |
lsst::daf::base::DateTime lsst.afw.image::Calib::getMidTime | ( | boost::shared_ptr< const lsst::afw::cameraGeom::Detector > | , |
lsst::afw::geom::Point2I const & | |||
) | 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 |
bool lsst.afw.image::Calib::operator== | ( | Calib const & | rhs | ) | const |
Are two Calibs identical?
Definition at line 197 of file Calib.cc.
void lsst.afw.image::Calib::setExptime | ( | double | exptime | ) |
void lsst.afw.image::Calib::setFluxMag0 | ( | double | fluxMag0, |
double | fluxMag0Sigma = 0.0 |
||
) |
void lsst.afw.image::Calib::setFluxMag0 | ( | std::pair< double, double > | fluxMag0AndSigma | ) |
void lsst.afw.image::Calib::setMidTime | ( | lsst::daf::base::DateTime const & | midTime | ) |
|
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.
Definition at line 537 of file Calib.cc.
|
private |
|
staticprivate |