|
lsst.afw
14.0-56-gfbf220870
|
A simple Persistable struct containing ExposureCatalogs that record the inputs to a coadd. More...
#include <CoaddInputs.h>
Public Member Functions | |
| CoaddInputs () | |
| Default constructor. More... | |
| CoaddInputs (table::Schema const &visitSchema, table::Schema const &ccdSchema) | |
| Construct new catalogs from the given schemas. More... | |
| CoaddInputs (table::ExposureCatalog const &visits_, table::ExposureCatalog const &ccds_) | |
| Construct from shallow copies of the given catalogs. More... | |
| CoaddInputs (CoaddInputs const &) | |
| CoaddInputs (CoaddInputs &&) | |
| CoaddInputs & | operator= (CoaddInputs const &) |
| CoaddInputs & | operator= (CoaddInputs &&) |
| virtual | ~CoaddInputs () |
| virtual bool | isPersistable () const |
| Whether the object is in fact persistable - in this case, always true. 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 std::shared_ptr< CoaddInputs > | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. More... | |
| static std::shared_ptr< CoaddInputs > | readFits (std::string const &fileName, int hdu=fits::DEFAULT_HDU) |
| Read an object from a regular FITS file. More... | |
| static std::shared_ptr< CoaddInputs > | readFits (fits::MemFileManager &manager, int hdu=fits::DEFAULT_HDU) |
| Read an object from a FITS file in memory. More... | |
Public Attributes | |
| table::ExposureCatalog | visits |
| table::ExposureCatalog | ccds |
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 std::string | getPythonModule () const |
| Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. More... | |
| virtual void | write (OutputArchiveHandle &handle) const |
| Write the object to one or more catalogs. More... | |
A simple Persistable struct containing ExposureCatalogs that record the inputs to a coadd.
The visits catalog corresponds to what task code refers to as coaddTempExps, while the ccds catalog corresponds to individual input CCD images (calexps), and has a "visitId" column that points back to the visits catalog.
The records in the visits catalog will all have the same Wcs as the coadd, as they represent images that have already been warped to the coadd frame. Regardless of whether or not the coadd is PSF-matched, the visit record Psf will generally be CoaddPsfs (albeit single-depth ones, so they simply pick out the single non-coadd-Psf that is valid for each point).
Definition at line 48 of file CoaddInputs.h.
|
protectedinherited |
Definition at line 108 of file Persistable.h.
| lsst::afw::image::CoaddInputs::CoaddInputs | ( | ) |
Default constructor.
This simply calls the Catalog default constructors, which means the catalogs have no associated Table and hence cannot be used for anything until a valid Catalog is assigned to them.
Definition at line 52 of file CoaddInputs.cc.
| lsst::afw::image::CoaddInputs::CoaddInputs | ( | table::Schema const & | visitSchema, |
| table::Schema const & | ccdSchema | ||
| ) |
Construct new catalogs from the given schemas.
Definition at line 54 of file CoaddInputs.cc.
| lsst::afw::image::CoaddInputs::CoaddInputs | ( | table::ExposureCatalog const & | visits_, |
| table::ExposureCatalog const & | ccds_ | ||
| ) |
Construct from shallow copies of the given catalogs.
Definition at line 57 of file CoaddInputs.cc.
|
default |
|
default |
|
virtualdefault |
|
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.
Definition at line 68 of file CoaddInputs.cc.
|
protectedvirtual |
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 from lsst::afw::table::io::Persistable.
Definition at line 70 of file CoaddInputs.cc.
|
virtual |
Whether the object is in fact persistable - in this case, always true.
To avoid letting coadd provenance prevent coadd code from running, if a nested Wcs or Psf is not persistable, it will silently not be saved, instead of throwing an exception.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 66 of file CoaddInputs.cc.
|
default |
|
default |
|
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 183 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 afw::fits::DEFAULT_HDU skips the primary HDU if it is empty. |
Definition at line 194 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 afw::fits::DEFAULT_HDU skips the primary HDU if it is empty. |
Definition at line 205 of file Persistable.h.
|
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 72 of file CoaddInputs.cc.
|
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. |
| table::ExposureCatalog lsst::afw::image::CoaddInputs::ccds |
Definition at line 51 of file CoaddInputs.h.
| table::ExposureCatalog lsst::afw::image::CoaddInputs::visits |
Definition at line 50 of file CoaddInputs.h.
1.8.13