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
|
Classes | |
class | DecoratedImageFormatter |
Class implementing persistence and retrieval for DecoratedImages. More... | |
class | ExposureFormatter |
Class implementing persistence and retrieval for Exposures. More... | |
class | ImageFormatter |
Class implementing persistence and retrieval for Images. More... | |
class | KernelFormatter |
class | MaskedImageFormatter |
Class implementing persistence and retrieval for MaskedImages. More... | |
class | MaskFormatter |
Class implementing persistence and retrieval for Masks. More... | |
class | TanWcsFormatter |
Class implementing persistence and retrieval for TanWcs objects. More... | |
class | WcsFormatter |
Class implementing persistence and retrieval for Wcs objects. More... | |
class | DecoratedImageFormatterTraits |
class | ImageFormatterTraits |
class | MaskedImageFormatterTraits |
class | MaskFormatterTraits |
Functions | |
bool | extractOptionalFlag (boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties, std::string const &name) |
std::string const | getItemName (boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
std::string const | getTableName (boost::shared_ptr< lsst::pex::policy::Policy const > const &policy, boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
std::vector< std::string > | getAllSliceTableNames (boost::shared_ptr< lsst::pex::policy::Policy const > const &policy, boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
void | createTable (lsst::daf::persistence::LogicalLocation const &location, boost::shared_ptr< lsst::pex::policy::Policy const > const &policy, boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
void | dropAllSliceTables (lsst::daf::persistence::LogicalLocation const &location, boost::shared_ptr< lsst::pex::policy::Policy const > const &policy, boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
int | extractSliceId (boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
int64_t | extractFpaExposureId (boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
int64_t | extractCcdExposureId (boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
int64_t | extractAmpExposureId (boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
int | extractVisitId (boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
int | extractCcdId (boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
int | extractAmpId (boost::shared_ptr< lsst::daf::base::PropertySet const > const &properties) |
std::string | formatFitsProperties (boost::shared_ptr< lsst::daf::base::PropertySet const > const &prop) |
int | countFitsHeaderCards (boost::shared_ptr< lsst::daf::base::PropertySet const > const &prop) |
int | extractSliceId (boost::shared_ptr< PropertySet const > const &properties) |
int | extractVisitId (boost::shared_ptr< PropertySet const > const &properties) |
int64_t | extractFpaExposureId (boost::shared_ptr< PropertySet const > const &properties) |
int | extractCcdId (boost::shared_ptr< PropertySet const > const &properties) |
int | extractAmpId (boost::shared_ptr< PropertySet const > const &properties) |
int64_t | extractCcdExposureId (boost::shared_ptr< PropertySet const > const &properties) |
int64_t | extractAmpExposureId (boost::shared_ptr< PropertySet const > const &properties) |
std::string const | getItemName (boost::shared_ptr< PropertySet const > const &properties) |
bool | extractOptionalFlag (boost::shared_ptr< PropertySet const > const &properties, std::string const &name) |
std::string const | getTableName (boost::shared_ptr< Policy const > const &policy, boost::shared_ptr< PropertySet const > const &properties) |
std::vector< std::string > | getAllSliceTableNames (boost::shared_ptr< Policy const > const &policy, boost::shared_ptr< PropertySet const > const &properties) |
void | createTable (lsst::daf::persistence::LogicalLocation const &location, boost::shared_ptr< lsst::pex::policy::Policy const > const &policy, boost::shared_ptr< PropertySet const > const &properties) |
void | dropAllSliceTables (lsst::daf::persistence::LogicalLocation const &location, boost::shared_ptr< lsst::pex::policy::Policy const > const &policy, boost::shared_ptr< PropertySet const > const &properties) |
std::string | formatFitsProperties (boost::shared_ptr< lsst::daf::base::PropertySet const > const &prop) |
int | countFitsHeaderCards (boost::shared_ptr< lsst::daf::base::PropertySet const > const &prop) |
int lsst::afw::formatters::countFitsHeaderCards | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | prop | ) |
int lsst::afw::formatters::countFitsHeaderCards | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | prop | ) |
void lsst::afw::formatters::createTable | ( | lsst::daf::persistence::LogicalLocation const & | location, |
boost::shared_ptr< lsst::pex::policy::Policy const > const & | policy, | ||
boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ||
) |
void lsst::afw::formatters::createTable | ( | lsst::daf::persistence::LogicalLocation const & | location, |
boost::shared_ptr< lsst::pex::policy::Policy const > const & | policy, | ||
boost::shared_ptr< PropertySet const > const & | properties | ||
) |
Creates the table identified by calling getTableName() with the given policy and properties. A key named "${itemName}.templateTableName"
(where ${itemName}
refers to the value of a property named "itemName"
extracted from properties) must be available and set to the name of the template table to use for creation.
Note that the template table must exist in the database identified by location, and that if the desired table already exists, an exception is thrown.
Definition at line 257 of file Utils.cc.
void lsst::afw::formatters::dropAllSliceTables | ( | lsst::daf::persistence::LogicalLocation const & | location, |
boost::shared_ptr< lsst::pex::policy::Policy const > const & | policy, | ||
boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ||
) |
void lsst::afw::formatters::dropAllSliceTables | ( | lsst::daf::persistence::LogicalLocation const & | location, |
boost::shared_ptr< lsst::pex::policy::Policy const > const & | policy, | ||
boost::shared_ptr< PropertySet const > const & | properties | ||
) |
Drops the database table(s) identified by getAllSliceTables().
Definition at line 273 of file Utils.cc.
int64_t lsst::afw::formatters::extractAmpExposureId | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ) |
int64_t lsst::afw::formatters::extractAmpExposureId | ( | boost::shared_ptr< PropertySet const > const & | properties | ) |
int lsst::afw::formatters::extractAmpId | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ) |
int lsst::afw::formatters::extractAmpId | ( | boost::shared_ptr< PropertySet const > const & | properties | ) |
int64_t lsst::afw::formatters::extractCcdExposureId | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ) |
int64_t lsst::afw::formatters::extractCcdExposureId | ( | boost::shared_ptr< PropertySet const > const & | properties | ) |
int lsst::afw::formatters::extractCcdId | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ) |
int lsst::afw::formatters::extractCcdId | ( | boost::shared_ptr< PropertySet const > const & | properties | ) |
int64_t lsst::afw::formatters::extractFpaExposureId | ( | boost::shared_ptr< PropertySet const > const & | properties | ) |
Definition at line 80 of file Utils.cc.
int64_t lsst::afw::formatters::extractFpaExposureId | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ) |
bool lsst::afw::formatters::extractOptionalFlag | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties, |
std::string const & | name | ||
) |
bool lsst::afw::formatters::extractOptionalFlag | ( | boost::shared_ptr< PropertySet const > const & | properties, |
std::string const & | name | ||
) |
int lsst::afw::formatters::extractSliceId | ( | boost::shared_ptr< PropertySet const > const & | properties | ) |
int lsst::afw::formatters::extractSliceId | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ) |
int lsst::afw::formatters::extractVisitId | ( | boost::shared_ptr< PropertySet const > const & | properties | ) |
int lsst::afw::formatters::extractVisitId | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ) |
std::string lsst::afw::formatters::formatFitsProperties | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | prop | ) |
std::string lsst::afw::formatters::formatFitsProperties | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | prop | ) |
std::vector<std::string> lsst::afw::formatters::getAllSliceTableNames | ( | boost::shared_ptr< lsst::pex::policy::Policy const > const & | policy, |
boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ||
) |
std::vector<std::string> lsst::afw::formatters::getAllSliceTableNames | ( | boost::shared_ptr< Policy const > const & | policy, |
boost::shared_ptr< PropertySet const > const & | properties | ||
) |
Stores the name of the table that each slice of a pipeline involved in processing a visit used for persistence of its outputs. If slices were configured to all use the same (per-visit) table name, a single name is stored.
[in] | policy | The Policy containing the table name pattern ("${itemName}.tableNamePattern", where ${itemName} is looked up in properties using the "itemName" key) from which the the actual table name is derived. This pattern may contain a set of parameters in % (key) format - these are interpolated by looking up "key" in the properties PropertySet. |
[in] | properties | The runtime specific properties necessary to construct the table names. |
string. The "visitId"
property must also be present, and shall be a non-negative integer of type int64_t
uniquely identifying the current LSST visit. If the "${itemName}.isPerSliceTable"
property is present, is of type bool
and is set to true
, then it is assumed that "${itemName}.numSlices"
(a positive integer of type int
) output tables exist and are to be read in.
Definition at line 223 of file Utils.cc.
std::string const lsst::afw::formatters::getItemName | ( | boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ) |
std::string const lsst::afw::formatters::getItemName | ( | boost::shared_ptr< PropertySet const > const & | properties | ) |
Extracts and returns the string-valued "itemName"
property from the given data property object.
lsst::pex::exceptions::InvalidParameterError | If the given pointer is null, or the PropertySet pointed to does not contain a unique property named "itemName" . |
Definition at line 151 of file Utils.cc.
std::string const lsst::afw::formatters::getTableName | ( | boost::shared_ptr< lsst::pex::policy::Policy const > const & | policy, |
boost::shared_ptr< lsst::daf::base::PropertySet const > const & | properties | ||
) |
std::string const lsst::afw::formatters::getTableName | ( | boost::shared_ptr< Policy const > const & | policy, |
boost::shared_ptr< PropertySet const > const & | properties | ||
) |
Returns the name of the table that a single slice of a pipeline involved in the processing of a single visit should use for persistence of a particular output. All slices can be configured to use the same (per-visit) table name using policy parameters.
[in] | policy | The Policy containing the table name pattern ("${itemName}.tableNamePattern", where ${itemName} is looked up in properties using the "itemName" key) from which the the actual table name is derived. This pattern may contain a set of parameters in % (key) format - these are interpolated by looking up "key" in the properties PropertySet. |
[in] | properties | Provides runtime specific properties necessary to construct the output table name. |
Definition at line 192 of file Utils.cc.