LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
lsst::afw::image::CoaddInputs Class Reference

A simple Persistable struct containing ExposureCatalogs that record the inputs to a coadd. More...

#include <CoaddInputs.h>

Inheritance diagram for lsst::afw::image::CoaddInputs:
lsst::afw::table::io::PersistableFacade< CoaddInputs > lsst::afw::table::io::Persistable

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...
 
virtual bool isPersistable () const
 Whether the object is in fact persistable - in this case, always true. 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 ()
 

Public Attributes

table::ExposureCatalog visits
 
table::ExposureCatalog ccds
 

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...
 
- Protected Member Functions inherited from lsst::afw::table::io::Persistable
 Persistable ()
 
 Persistable (Persistable const &other)
 
void operator= (Persistable const &other)
 

Additional Inherited Members

- Static Public Member Functions inherited from lsst::afw::table::io::PersistableFacade< CoaddInputs >
static boost::shared_ptr
< CoaddInputs > 
readFits (fits::Fits &fitsfile)
 Read an object from an already open FITS object. More...
 
static boost::shared_ptr
< CoaddInputs > 
readFits (std::string const &fileName, int hdu=0)
 Read an object from a regular FITS file. More...
 
static boost::shared_ptr
< CoaddInputs > 
readFits (fits::MemFileManager &manager, int hdu=0)
 Read an object from a FITS file in memory. More...
 
- Protected Types inherited from lsst::afw::table::io::Persistable
typedef io::OutputArchiveHandle OutputArchiveHandle
 

Detailed Description

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 46 of file CoaddInputs.h.

Constructor & Destructor Documentation

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.

52 : visits(), ccds() {}
table::ExposureCatalog visits
Definition: CoaddInputs.h:48
table::ExposureCatalog ccds
Definition: CoaddInputs.h:49
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.

54  :
55  visits(visitSchema), ccds(ccdSchema)
56 {}
table::ExposureCatalog visits
Definition: CoaddInputs.h:48
table::ExposureCatalog ccds
Definition: CoaddInputs.h:49
lsst::afw::image::CoaddInputs::CoaddInputs ( table::ExposureCatalog const &  visits_,
table::ExposureCatalog const &  ccds_ 
)

Construct from shallow copies of the given catalogs.

Definition at line 58 of file CoaddInputs.cc.

58  :
59  visits(visits_), ccds(ccds_)
60 {}
table::ExposureCatalog visits
Definition: CoaddInputs.h:48
table::ExposureCatalog ccds
Definition: CoaddInputs.h:49

Member Function Documentation

std::string lsst::afw::image::CoaddInputs::getPersistenceName ( ) 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.

Definition at line 64 of file CoaddInputs.cc.

64 { return "CoaddInputs"; }
std::string lsst::afw::image::CoaddInputs::getPythonModule ( ) const
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 66 of file CoaddInputs.cc.

66 { return "lsst.afw.image"; }
bool lsst::afw::image::CoaddInputs::isPersistable ( ) const
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 62 of file CoaddInputs.cc.

62 { return true; }
void lsst::afw::image::CoaddInputs::write ( OutputArchiveHandle handle) const
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 68 of file CoaddInputs.cc.

68  {
69  visits.writeToArchive(handle, true); // true == permissive - just ignore Psfs, Wcss that can't be saved
70  ccds.writeToArchive(handle, true);
71 }
table::ExposureCatalog visits
Definition: CoaddInputs.h:48
void writeToArchive(io::OutputArchiveHandle &handle, bool ignoreUnpersistable=true) const
Convenience output function for Persistables that contain an ExposureCatalog.
table::ExposureCatalog ccds
Definition: CoaddInputs.h:49

Member Data Documentation

table::ExposureCatalog lsst::afw::image::CoaddInputs::ccds

Definition at line 49 of file CoaddInputs.h.

table::ExposureCatalog lsst::afw::image::CoaddInputs::visits

Definition at line 48 of file CoaddInputs.h.


The documentation for this class was generated from the following files: