lsst.afw gba399f52f3+9b61cfce8e
Loading...
Searching...
No Matches
lsst::afw::image::CoaddInputs Class Referencefinal

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 >

Public Member Functions

 CoaddInputs ()
 Default constructor.
 CoaddInputs (table::Schema const &visitSchema, table::Schema const &ccdSchema)
 Construct new catalogs from the given schemas.
 CoaddInputs (table::ExposureCatalog const &visits_, table::ExposureCatalog const &ccds_)
 Construct from shallow copies of the given catalogs.
 CoaddInputs (CoaddInputs const &)
 CoaddInputs (CoaddInputs &&)
CoaddInputs & operator= (CoaddInputs const &)
CoaddInputs & operator= (CoaddInputs &&)
 ~CoaddInputs () override
bool isPersistable () const noexcept override
 Whether the object is in fact persistable - in this case, always true.
std::shared_ptr< typehandling::Storable > cloneStorable () const override
 Create a new CoaddInputs that is a copy of this one.

Static Public Member Functions

static std::shared_ptr< CoaddInputs > readFits (fits::Fits &fitsfile)
 Read an object from an already open FITS object.
static std::shared_ptr< CoaddInputs > dynamicCast (std::shared_ptr< Persistable > const &ptr)
 Dynamically cast a shared_ptr.

Public Attributes

table::ExposureCatalog visits
table::ExposureCatalog ccds

Protected Member Functions

std::string getPersistenceName () const override
std::string getPythonModule () const override
void write (OutputArchiveHandle &handle) const override

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

Constructor & Destructor Documentation

◆ CoaddInputs() [1/5]

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 56 of file CoaddInputs.cc.

◆ CoaddInputs() [2/5]

lsst::afw::image::CoaddInputs::CoaddInputs ( table::Schema const & visitSchema,
table::Schema const & ccdSchema )

Construct new catalogs from the given schemas.

Definition at line 58 of file CoaddInputs.cc.

◆ CoaddInputs() [3/5]

lsst::afw::image::CoaddInputs::CoaddInputs ( table::ExposureCatalog const & visits_,
table::ExposureCatalog const & ccds_ )

Construct from shallow copies of the given catalogs.

Definition at line 61 of file CoaddInputs.cc.

◆ CoaddInputs() [4/5]

lsst::afw::image::CoaddInputs::CoaddInputs ( CoaddInputs const & )
default

◆ CoaddInputs() [5/5]

lsst::afw::image::CoaddInputs::CoaddInputs ( CoaddInputs && )
default

◆ ~CoaddInputs()

lsst::afw::image::CoaddInputs::~CoaddInputs ( )
overridedefault

Member Function Documentation

◆ cloneStorable()

std::shared_ptr< typehandling::Storable > lsst::afw::image::CoaddInputs::cloneStorable ( ) const
override

Create a new CoaddInputs that is a copy of this one.

Definition at line 72 of file CoaddInputs.cc.

◆ dynamicCast()

template std::shared_ptr< math::WarpingControl > lsst::afw::table::io::PersistableFacade< CoaddInputs >::dynamicCast ( std::shared_ptr< Persistable > const & ptr)
staticinherited

Dynamically cast a shared_ptr.

Dynamically cast a shared pointer and raise on failure.

You must provide an explicit template instantiation in the .cc file for each class that inherits from PersistableFacade. Designed to work around RTTI issues on macOS with hidden symbols;

Exceptions
lsst::pex::exceptions::LogicErrorif the cast fails

param[in] ptr The pointer to be cast.

Returns
The cast pointer.
Exceptions
lsst::pex::exceptions::TypeErrorIf the dynamic cast fails.

Definition at line 218 of file Persistable.cc.

◆ getPersistenceName()

std::string lsst::afw::image::CoaddInputs::getPersistenceName ( ) const
overrideprotected

Definition at line 76 of file CoaddInputs.cc.

◆ getPythonModule()

std::string lsst::afw::image::CoaddInputs::getPythonModule ( ) const
overrideprotected

Definition at line 78 of file CoaddInputs.cc.

◆ isPersistable()

bool lsst::afw::image::CoaddInputs::isPersistable ( ) const
overridenoexcept

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.

Definition at line 70 of file CoaddInputs.cc.

◆ operator=() [1/2]

CoaddInputs & lsst::afw::image::CoaddInputs::operator= ( CoaddInputs && )
default

◆ operator=() [2/2]

CoaddInputs & lsst::afw::image::CoaddInputs::operator= ( CoaddInputs const & )
default

◆ readFits()

std::shared_ptr< CoaddInputs > lsst::afw::table::io::PersistableFacade< CoaddInputs >::readFits ( fits::Fits & fitsfile)
inlinestaticinherited

Read an object from an already open FITS object.

Parameters
[in]fitsfileFITS object to read from, already positioned at the desired HDU.

Definition at line 183 of file Persistable.h.

◆ write()

void lsst::afw::image::CoaddInputs::write ( OutputArchiveHandle & handle) const
overrideprotected

Definition at line 80 of file CoaddInputs.cc.

Member Data Documentation

◆ ccds

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

Definition at line 52 of file CoaddInputs.h.

◆ visits

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

Definition at line 51 of file CoaddInputs.h.


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