lsst.afw  13.0-94-ga1c444047
Classes | Typedefs | Functions | Variables
lsst::afw::image::detail Namespace Reference

Classes

struct  basic_tag
 Base image tag. More...
 
struct  Image_tag
 tag for an Image More...
 
struct  image_traits
 traits class for image categories More...
 
struct  Mask_tag
 tag for a Mask More...
 
class  MaskDict
 
struct  MaskedImage_tag
 A traits class for MaskedImage. More...
 
struct  MaskedImagePixel_tag
 A class used to identify classes that represent MaskedImage pixels. More...
 

Typedefs

typedef std::map< std::string, int > MaskPlaneDict
 

Functions

int stripCalibKeywords (std::shared_ptr< lsst::daf::base::PropertySet > metadata)
 Remove Calib-related keywords from the metadata. More...
 
int stripFilterKeywords (std::shared_ptr< lsst::daf::base::PropertySet > metadata)
 Remove Filter-related keywords from the metadata. More...
 
void setVisitInfoMetadata (daf::base::PropertyList &metadata, VisitInfo const &visitInfo)
 Set FITS metadata from a VisitInfo. More...
 
int stripVisitInfoKeywords (daf::base::PropertySet &metadata)
 Remove VisitInfo-related keywords from the metadata. More...
 
std::shared_ptr< lsst::daf::base::PropertyList > createTrivialWcsAsPropertySet (std::string const &wcsName, int const x0, int const y0)
 
geom::Point2I getImageXY0FromMetadata (std::string const &wcsName, daf::base::PropertySet *metadata)
 
int stripWcsKeywords (std::shared_ptr< lsst::daf::base::PropertySet > const &metadata, std::shared_ptr< Wcs const > const &wcs)
 
int stripWcsKeywords (std::shared_ptr< daf::base::PropertySet > const &metadata, std::shared_ptr< Wcs const > const &wcs)
 

Variables

std::string const wcsNameForXY0 = "A"
 
std::string const fitsFile_RE = "\\.fits(\\.[fg]z)?$"
 regexp to identify when MaskedImages should be written as MEFs More...
 
std::string const compressedFileNoMEF_RE = "(\\.gz)$"
 regexp to identify compressed files that we can't write MEFs to More...
 

Typedef Documentation

◆ MaskPlaneDict

typedef std::map<std::string, int> lsst::afw::image::detail::MaskPlaneDict

Definition at line 64 of file Mask.h.

Function Documentation

◆ createTrivialWcsAsPropertySet()

std::shared_ptr< daf::base::PropertyList > lsst::afw::image::detail::createTrivialWcsAsPropertySet ( std::string const &  wcsName,
int const  x0 = 0,
int const  y0 = 0 
)

Definition at line 1069 of file Wcs.cc.

◆ getImageXY0FromMetadata()

geom::Point2I lsst::afw::image::detail::getImageXY0FromMetadata ( std::string const &  wcsName,
lsst::daf::base::PropertySet *  metadata 
)

Definition at line 1096 of file Wcs.cc.

◆ setVisitInfoMetadata()

void lsst::afw::image::detail::setVisitInfoMetadata ( daf::base::PropertyList &  metadata,
VisitInfo const &  visitInfo 
)

Set FITS metadata from a VisitInfo.

Parameters
[in,out]metadataFITS keyword metadata to set
[in]visitInfoinstance of VisitInfo from which to set metadata

Definition at line 275 of file VisitInfo.cc.

◆ stripCalibKeywords()

int lsst::afw::image::detail::stripCalibKeywords ( std::shared_ptr< lsst::daf::base::PropertySet >  metadata)

Remove Calib-related keywords from the metadata.

Parameters
[in,out]metadataMetadata to be stripped
Returns
Number of keywords stripped

Definition at line 96 of file Calib.cc.

◆ stripFilterKeywords()

int lsst::afw::image::detail::stripFilterKeywords ( std::shared_ptr< lsst::daf::base::PropertySet >  metadata)

Remove Filter-related keywords from the metadata.

Parameters
[in,out]metadataMetadata to be stripped
Returns
Number of keywords stripped

Definition at line 123 of file Filter.cc.

◆ stripVisitInfoKeywords()

int lsst::afw::image::detail::stripVisitInfoKeywords ( daf::base::PropertySet &  metadata)

Remove VisitInfo-related keywords from the metadata.

Parameters
[in,out]metadataFITS keyword metadata
Returns
Number of keywords stripped

Definition at line 259 of file VisitInfo.cc.

◆ stripWcsKeywords() [1/2]

int lsst::afw::image::detail::stripWcsKeywords ( std::shared_ptr< lsst::daf::base::PropertySet > const &  metadata,
std::shared_ptr< Wcs const > const &  wcs 
)
Parameters
metadataMetadata to be stripped
wcsA Wcs with (implied) keywords

◆ stripWcsKeywords() [2/2]

int lsst::afw::image::detail::stripWcsKeywords ( std::shared_ptr< daf::base::PropertySet > const &  metadata,
std::shared_ptr< Wcs const > const &  wcs 
)

Definition at line 1138 of file Wcs.cc.

Variable Documentation

◆ compressedFileNoMEF_RE

std::string const lsst::afw::image::detail::compressedFileNoMEF_RE = "(\\.gz)$"

regexp to identify compressed files that we can't write MEFs to

Definition at line 60 of file MaskedImage.h.

◆ fitsFile_RE

std::string const lsst::afw::image::detail::fitsFile_RE = "\\.fits(\\.[fg]z)?$"

regexp to identify when MaskedImages should be written as MEFs

Definition at line 58 of file MaskedImage.h.

◆ wcsNameForXY0

std::string const lsst::afw::image::detail::wcsNameForXY0 = "A"

Definition at line 84 of file Image.h.