LSST Applications
21.0.0-147-g0e635eb1+1acddb5be5,22.0.0+052faf71bd,22.0.0+1ea9a8b2b2,22.0.0+6312710a6c,22.0.0+729191ecac,22.0.0+7589c3a021,22.0.0+9f079a9461,22.0.1-1-g7d6de66+b8044ec9de,22.0.1-1-g87000a6+536b1ee016,22.0.1-1-g8e32f31+6312710a6c,22.0.1-10-gd060f87+016f7cdc03,22.0.1-12-g9c3108e+df145f6f68,22.0.1-16-g314fa6d+c825727ab8,22.0.1-19-g93a5c75+d23f2fb6d8,22.0.1-19-gb93eaa13+aab3ef7709,22.0.1-2-g8ef0a89+b8044ec9de,22.0.1-2-g92698f7+9f079a9461,22.0.1-2-ga9b0f51+052faf71bd,22.0.1-2-gac51dbf+052faf71bd,22.0.1-2-gb66926d+6312710a6c,22.0.1-2-gcb770ba+09e3807989,22.0.1-20-g32debb5+b8044ec9de,22.0.1-23-gc2439a9a+fb0756638e,22.0.1-3-g496fd5d+09117f784f,22.0.1-3-g59f966b+1e6ba2c031,22.0.1-3-g849a1b8+f8b568069f,22.0.1-3-gaaec9c0+c5c846a8b1,22.0.1-32-g5ddfab5d3+60ce4897b0,22.0.1-4-g037fbe1+64e601228d,22.0.1-4-g8623105+b8044ec9de,22.0.1-5-g096abc9+d18c45d440,22.0.1-5-g15c806e+57f5c03693,22.0.1-7-gba73697+57f5c03693,master-g6e05de7fdc+c1283a92b8,master-g72cdda8301+729191ecac,w.2021.39
LSST Data Management Base Package
|
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects. More...
Classes | |
class | imageIterator |
An ImageBase iterator. More... | |
class | imageLocator |
An ImageBase locator. More... | |
class | ApCorrMap |
A thin wrapper around std::map to allow aperture corrections to be attached to Exposures. More... | |
class | CoaddInputs |
A simple Persistable struct containing ExposureCatalogs that record the inputs to a coadd. More... | |
class | Color |
Describe the colour of a source. More... | |
class | DefectBase |
Encapsulate information about a bad portion of a detector. More... | |
class | Exposure |
A class to contain the data, WCS, and other information needed to describe an image of the sky. More... | |
class | ExposureFitsReader |
A FITS reader class for Exposures and their components. More... | |
class | ExposureInfo |
A collection of all the things that make an Exposure different from a MaskedImage. More... | |
class | FilterLabel |
A group of labels for a filter in an exposure or coadd. More... | |
class | Image |
A class to represent a 2-dimensional array of pixels. More... | |
class | DecoratedImage |
A container for an Image and its associated metadata. More... | |
struct | pixelOp0 |
A functor class equivalent to std::function<ValT ()>, but with a virtual operator() More... | |
struct | pixelOp1 |
A functor class equivalent to std::function<ValT (ValT)>, but with a virtual operator() More... | |
struct | pixelOp1XY |
A functor class equivalent to std::function<ValT (int, int, ValT)>, but with a virtual operator() More... | |
struct | pixelOp2 |
A functor class equivalent to std::function<LhsT (LhsT, RhsT)>, but with a virtual operator() More... | |
struct | pixelOp2XY |
A functor class equivalent to std::function<LhsT (int, int, LhsT, RhsT)>, but with a virtual operator() More... | |
class | CheckIndices |
A class used to request that array accesses be checked. More... | |
struct | Reference |
metafunction to extract reference type from PixelT More... | |
struct | ConstReference |
metafunction to extract const reference type from PixelT More... | |
class | ImageBase |
The base class for all image classed (Image, Mask, MaskedImage, ...) More... | |
class | ImageBaseFitsReader |
Base class for image FITS readers. More... | |
class | ImageFitsReader |
A FITS reader class for regular Images. More... | |
class | ImagePca |
class | ImageSlice |
A class to specify a slice of an image. More... | |
class | Mask |
Represent a 2-dimensional array of bitmask pixels. More... | |
class | MaskedImage |
A class to manipulate images, masks, and variance as a single object. More... | |
struct | GetImage |
class | MaskedImageFitsReader |
A FITS reader class for MaskedImages and their components. More... | |
class | MaskFitsReader |
A FITS reader class for Masks. More... | |
struct | Measurement |
A value and its error. More... | |
class | PhotoCalib |
The photometric calibration of an exposure. More... | |
class | TransmissionCurve |
A spatially-varying transmission curve as a function of wavelength. More... | |
class | VisitInfo |
Information about a single exposure of an imaging camera. More... | |
Typedefs | |
using | MaskPixel = std::int32_t |
default type for Masks and MaskedImage Masks More... | |
using | VariancePixel = float |
default type for MaskedImage variance images More... | |
using | PyCoaddInputs = py::class_< CoaddInputs, std::shared_ptr< CoaddInputs >, typehandling::Storable > |
using | PyColor = py::class_< Color, std::shared_ptr< Color > > |
using | PyTransmissionCurve = py::class_< TransmissionCurve, std::shared_ptr< TransmissionCurve >, typehandling::Storable > |
Enumerations | |
enum | ImageOrigin { PARENT , LOCAL } |
enum | xOrY { X , Y } |
enum class | RotType { UNKNOWN , SKY , HORIZON , MOUNT } |
Type of rotation. More... | |
Functions | |
double | abMagFromFlux (double flux) |
Compute AB magnitude from flux in Janskys. More... | |
double | abMagErrFromFluxErr (double fluxErr, double flux) |
Compute AB magnitude error from flux and flux error in Janskys. More... | |
double | fluxFromABMag (double mag) noexcept |
Compute flux in Janskys from AB magnitude. More... | |
double | fluxErrFromABMagErr (double magErr, double mag) noexcept |
Compute flux error in Janskys from AB magnitude error and AB magnitude. More... | |
template<typename T > | |
ndarray::Array< T, 1 > | abMagFromFlux (ndarray::Array< T const, 1 > const &flux) |
Compute AB magnitude from flux in Janskys. More... | |
template<typename T > | |
ndarray::Array< T, 1 > | abMagErrFromFluxErr (ndarray::Array< T const, 1 > const &fluxErr, ndarray::Array< T const, 1 > const &flux) |
Compute AB magnitude error from flux and flux error in Janskys. More... | |
template<typename T > | |
ndarray::Array< T, 1 > | fluxFromABMag (ndarray::Array< T const, 1 > const &mag) |
Compute flux in Janskys from AB magnitude. More... | |
template<typename T > | |
ndarray::Array< T, 1 > | fluxErrFromABMagErr (ndarray::Array< T const, 1 > const &magErr, ndarray::Array< T const, 1 > const &mag) |
Compute flux error in Janskys from AB magnitude error and AB magnitude. More... | |
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT > | |
std::shared_ptr< Exposure< ImagePixelT, MaskPixelT, VariancePixelT > > | makeExposure (MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > &mimage, std::shared_ptr< geom::SkyWcs const > wcs=std::shared_ptr< geom::SkyWcs const >()) |
A function to return an Exposure of the correct type (cf. More... | |
FilterProperty (FilterProperty const &)=default | |
FilterProperty (FilterProperty &&) noexcept=default | |
FilterProperty & | operator= (FilterProperty const &)=default |
FilterProperty & | operator= (FilterProperty &&) noexcept=default |
~FilterProperty () noexcept=default | |
std::string const & | getName () const noexcept |
Return a filter's name. More... | |
double | getLambdaEff () const noexcept |
Return the filter's effective wavelength (nm) More... | |
double | getLambdaMin () const noexcept |
Return the filter's minimum wavelength (nm) where the transmission is above 1% of the maximum. More... | |
double | getLambdaMax () const noexcept |
Return the filter's maximum wavelength (nm) where the transmission is above 1% of the maximum. More... | |
bool | operator== (FilterProperty const &rhs) const noexcept |
Return true iff two FilterProperties are identical. More... | |
bool | operator!= (FilterProperty const &rhs) const noexcept |
Return true iff rhs != this. More... | |
std::size_t | hash_value () const noexcept |
Return a hash of this object. More... | |
std::string | getPersistenceName () const override |
std::string | getPythonModule () const override |
void | write (OutputArchiveHandle &handle) const override |
std::string | getDatabaseFilterLabel (std::string const &filterLabel) |
Remap special characters, etc. More... | |
template<typename LhsPixelT , typename RhsPixelT > | |
Image< LhsPixelT > & | operator+= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
Add lhs to Image rhs (i.e. pixel-by-pixel addition) where types are different. More... | |
template<typename LhsPixelT , typename RhsPixelT > | |
Image< LhsPixelT > & | operator-= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
Subtract lhs from Image rhs (i.e. pixel-by-pixel subtraction) where types are different. More... | |
template<typename LhsPixelT , typename RhsPixelT > | |
Image< LhsPixelT > & | operator*= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
Multiply lhs by Image rhs (i.e. pixel-by-pixel multiplication) where types are different. More... | |
template<typename LhsPixelT , typename RhsPixelT > | |
Image< LhsPixelT > & | operator/= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
Divide lhs by Image rhs (i.e. pixel-by-pixel division) where types are different. More... | |
template<typename PixelT > | |
void | swap (Image< PixelT > &a, Image< PixelT > &b) |
template<typename PixelT > | |
void | swap (DecoratedImage< PixelT > &a, DecoratedImage< PixelT > &b) |
lsst::geom::Box2I | bboxFromMetadata (daf::base::PropertySet &metadata) |
Determine the image bounding box from its metadata (FITS header) More... | |
template<typename T1 , typename T2 > | |
bool | imagesOverlap (ImageBase< T1 > const &image1, ImageBase< T2 > const &image2) |
Return true if the pixels for two images or masks overlap in memory. More... | |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp0< LhsT > const &func) |
Set each pixel in an Image<LhsT> to func() More... | |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp1< LhsT > const &func) |
Set each pixel in an Image<LhsT> to func(lhs) More... | |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp1XY< LhsT > const &func) |
Set each pixel in an Image<LhsT> to func(x, y, lhs) More... | |
template<typename LhsT , typename RhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, Image< RhsT > const &rhs, pixelOp1< RhsT > const &func) |
Set each pixel in an Image<LhsT> to func(rhs), getting the rhs from an Image<RhsT> More... | |
template<typename LhsT , typename RhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, Image< RhsT > const &rhs, pixelOp2< LhsT, RhsT > const &func) |
Set each pixel in an Image<LhsT> to func(lhs, rhs), getting the rhs from an Image<RhsT> More... | |
template<typename LhsT , typename RhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, Image< RhsT > const &rhs, pixelOp2XY< LhsT, RhsT > const &func) |
Set each pixel in an Image<LhsT> to func(x, y, lhs, rhs), getting the rhs from an Image<RhsT> More... | |
template<typename PixelT > | |
void | swap (ImageBase< PixelT > &a, ImageBase< PixelT > &b) |
template<typename Image1T , typename Image2T > | |
double | innerProduct (Image1T const &lhs, Image2T const &rhs, int const border=0) |
Calculate the inner product of two images. More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator+ (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator+() More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator+ (ImageSlice< PixelT > const &slc, Image< PixelT > const &img) |
Overload operator+() More... | |
template<typename PixelT > | |
void | operator+= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator+=() More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator- (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator-() More... | |
template<typename PixelT > | |
void | operator-= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator-=() More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator* (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator*() More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator* (ImageSlice< PixelT > const &slc, Image< PixelT > const &img) |
Overload operator*() More... | |
template<typename PixelT > | |
void | operator*= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator*=() More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator/ (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator/() More... | |
template<typename PixelT > | |
void | operator/= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator/=() More... | |
double | indexToPosition (double ind) |
Convert image index to image position. More... | |
int | positionToIndex (double pos) |
Convert image position to nearest integer index. More... | |
int | positionToIndex (double &residual, double pos) |
Convert image position to index (nearest integer and fractional parts) More... | |
std::pair< int, double > | positionToIndex (double const pos, bool) |
Convert image position to index (nearest integer and fractional parts) More... | |
template<typename PixelT > | |
void | swap (Mask< PixelT > &a, Mask< PixelT > &b) |
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT > | |
MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > * | makeMaskedImage (typename std::shared_ptr< Image< ImagePixelT >> image, typename std::shared_ptr< Mask< MaskPixelT >> mask=Mask< MaskPixelT >(), typename std::shared_ptr< Image< VariancePixelT >> variance=Image< VariancePixelT >()) |
A function to return a MaskedImage of the correct type (cf. More... | |
template<typename ImagePixelT1 , typename ImagePixelT2 > | |
bool | imagesOverlap (MaskedImage< ImagePixelT1, MaskPixel, VariancePixel > const &image1, MaskedImage< ImagePixelT2, MaskPixel, VariancePixel > const &image2) |
Return true if the pixels for two masked images (image, variance or mask plane) overlap in memory. More... | |
std::ostream & | operator<< (std::ostream &os, Measurement const &measurement) |
void | assertNonNegative (double value, std::string const &name) |
Raise lsst::pex::exceptions::InvalidParameterError if value is not >=0. More... | |
std::shared_ptr< PhotoCalib > | makePhotoCalibFromMetadata (daf::base::PropertySet &metadata, bool strip=false) |
Construct a PhotoCalib from FITS FLUXMAG0/FLUXMAG0ERR keywords. More... | |
std::shared_ptr< PhotoCalib > | makePhotoCalibFromCalibZeroPoint (double instFluxMag0, double instFluxMag0Err) |
Construct a PhotoCalib from the deprecated Calib -style instFluxMag0/instFluxMag0Err values. More... | |
std::ostream & | operator<< (std::ostream &os, VisitInfo const &visitInfo) |
void | wrapCalib (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapCoaddInputs (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapColor (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapDefect (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapExposureInfo (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapFilter (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapFilterLabel (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapExposure (lsst::utils::python::WrapperCollection &) |
void | wrapImagePca (lsst::utils::python::WrapperCollection &) |
void | wrapImageUtils (lsst::utils::python::WrapperCollection &) |
void | wrapPhotoCalib (lsst::utils::python::WrapperCollection &) |
void | wrapReaders (lsst::utils::python::WrapperCollection &) |
void | wrapTransmissionCurve (lsst::utils::python::WrapperCollection &) |
void | wrapVisitInfo (lsst::utils::python::WrapperCollection &) |
PYBIND11_MODULE (_imageLib, mod) | |
void | declareVisitInfo (lsst::utils::python::WrapperCollection &wrappers) |
void | declareRotType (lsst::utils::python::WrapperCollection &wrappers) |
PYBIND11_MODULE (_exposure, mod) | |
void | wrapImage (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapImageSlice (lsst::utils::python::WrapperCollection &) |
PYBIND11_MODULE (_maskedImage, mod) | |
template ndarray::Array< float, 1 > | abMagFromFlux (ndarray::Array< float const, 1 > const &flux) |
template ndarray::Array< float, 1 > | abMagErrFromFluxErr (ndarray::Array< float const, 1 > const &fluxErr, ndarray::Array< float const, 1 > const &flux) |
template ndarray::Array< float, 1 > | fluxFromABMag (ndarray::Array< float const, 1 > const &mag) |
template ndarray::Array< float, 1 > | fluxErrFromABMagErr (ndarray::Array< float const, 1 > const &magErr, ndarray::Array< float const, 1 > const &mag) |
template ndarray::Array< double, 1 > | abMagFromFlux (ndarray::Array< double const, 1 > const &flux) |
template ndarray::Array< double, 1 > | abMagErrFromFluxErr (ndarray::Array< double const, 1 > const &fluxErr, ndarray::Array< double const, 1 > const &flux) |
template ndarray::Array< double, 1 > | fluxFromABMag (ndarray::Array< double const, 1 > const &mag) |
template ndarray::Array< double, 1 > | fluxErrFromABMagErr (ndarray::Array< double const, 1 > const &magErr, ndarray::Array< double const, 1 > const &mag) |
std::shared_ptr< FilterLabel > | makeFilterLabelDirect (std::string const &name) |
Convert an old-style filter name to a FilterLabel without external information. More... | |
std::shared_ptr< FilterLabel > | makeFilterLabel (Filter const &filter) |
Convert an old-style Filter to a FilterLabel. More... | |
std::shared_ptr< FilterLabel > | makeFilterLabel (std::string const &name) |
Convert an old-style single Filter name to a FilterLabel, using available information. More... | |
Filter | makeFilter (FilterLabel const &label) |
Convert a FilterLabel back to an old-style Filter. More... | |
template bool | imagesOverlap< std::uint16_t, std::uint16_t > (MaskedImage< std::uint16_t > const &, MaskedImage< std::uint16_t > const &) |
template bool | imagesOverlap< std::uint16_t, int > (MaskedImage< std::uint16_t > const &, MaskedImage< int > const &) |
template bool | imagesOverlap< std::uint16_t, float > (MaskedImage< std::uint16_t > const &, MaskedImage< float > const &) |
template bool | imagesOverlap< std::uint16_t, double > (MaskedImage< std::uint16_t > const &, MaskedImage< double > const &) |
template bool | imagesOverlap< std::uint16_t, std::uint64_t > (MaskedImage< std::uint16_t > const &, MaskedImage< std::uint64_t > const &) |
template bool | imagesOverlap< int, std::uint16_t > (MaskedImage< int > const &, MaskedImage< std::uint16_t > const &) |
template bool | imagesOverlap< int, int > (MaskedImage< int > const &, MaskedImage< int > const &) |
template bool | imagesOverlap< int, float > (MaskedImage< int > const &, MaskedImage< float > const &) |
template bool | imagesOverlap< int, double > (MaskedImage< int > const &, MaskedImage< double > const &) |
template bool | imagesOverlap< int, std::uint64_t > (MaskedImage< int > const &, MaskedImage< std::uint64_t > const &) |
template bool | imagesOverlap< float, std::uint16_t > (MaskedImage< float > const &, MaskedImage< std::uint16_t > const &) |
template bool | imagesOverlap< float, int > (MaskedImage< float > const &, MaskedImage< int > const &) |
template bool | imagesOverlap< float, float > (MaskedImage< float > const &, MaskedImage< float > const &) |
template bool | imagesOverlap< float, double > (MaskedImage< float > const &, MaskedImage< double > const &) |
template bool | imagesOverlap< float, std::uint64_t > (MaskedImage< float > const &, MaskedImage< std::uint64_t > const &) |
template bool | imagesOverlap< double, std::uint16_t > (MaskedImage< double > const &, MaskedImage< std::uint16_t > const &) |
template bool | imagesOverlap< double, int > (MaskedImage< double > const &, MaskedImage< int > const &) |
template bool | imagesOverlap< double, float > (MaskedImage< double > const &, MaskedImage< float > const &) |
template bool | imagesOverlap< double, double > (MaskedImage< double > const &, MaskedImage< double > const &) |
template bool | imagesOverlap< double, std::uint64_t > (MaskedImage< double > const &, MaskedImage< std::uint64_t > const &) |
template bool | imagesOverlap< std::uint64_t, std::uint16_t > (MaskedImage< std::uint64_t > const &, MaskedImage< std::uint16_t > const &) |
template bool | imagesOverlap< std::uint64_t, int > (MaskedImage< std::uint64_t > const &, MaskedImage< int > const &) |
template bool | imagesOverlap< std::uint64_t, float > (MaskedImage< std::uint64_t > const &, MaskedImage< float > const &) |
template bool | imagesOverlap< std::uint64_t, double > (MaskedImage< std::uint64_t > const &, MaskedImage< double > const &) |
template bool | imagesOverlap< std::uint64_t, std::uint64_t > (MaskedImage< std::uint64_t > const &, MaskedImage< std::uint64_t > const &) |
std::ostream & | operator<< (std::ostream &os, PhotoCalib const &photoCalib) |
Variables | |
class[[deprecated("Removed with no replacement (but see lsst::afw::image::TransmissionCurve). Will be " "removed after v22.")]] FilterProperty | final |
Describe the properties of a Filter (e.g. More... | |
const double | PixelZeroPos = 0.0 |
position of center of pixel 0 More... | |
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
using lsst::afw::image::MaskPixel = typedef std::int32_t |
default type for Masks and MaskedImage Masks
Definition at line 34 of file LsstImageTypes.h.
using lsst::afw::image::PyCoaddInputs = typedef py::class_<CoaddInputs, std::shared_ptr<CoaddInputs>, typehandling::Storable> |
Definition at line 40 of file _coaddInputs.cc.
using lsst::afw::image::PyColor = typedef py::class_<Color, std::shared_ptr<Color> > |
using lsst::afw::image::PyTransmissionCurve = typedef py::class_<TransmissionCurve, std::shared_ptr<TransmissionCurve>, typehandling::Storable> |
Definition at line 43 of file _transmissionCurve.cc.
using lsst::afw::image::VariancePixel = typedef float |
default type for MaskedImage variance images
Definition at line 35 of file LsstImageTypes.h.
|
strong |
Type of rotation.
Definition at line 45 of file VisitInfo.h.
|
defaultnoexcept |
|
inline |
template ndarray::Array< double , 1> lsst::afw::image::abMagErrFromFluxErr | ( | ndarray::Array< double const, 1 > const & | fluxErr, |
ndarray::Array< double const, 1 > const & | flux | ||
) |
template ndarray::Array< float , 1> lsst::afw::image::abMagErrFromFluxErr | ( | ndarray::Array< float const, 1 > const & | fluxErr, |
ndarray::Array< float const, 1 > const & | flux | ||
) |
ndarray::Array< T, 1 > lsst::afw::image::abMagErrFromFluxErr | ( | ndarray::Array< T const, 1 > const & | fluxErr, |
ndarray::Array< T const, 1 > const & | flux | ||
) |
Compute AB magnitude error from flux and flux error in Janskys.
Definition at line 51 of file Calib.cc.
|
inline |
template ndarray::Array< double , 1> lsst::afw::image::abMagFromFlux | ( | ndarray::Array< double const, 1 > const & | flux | ) |
template ndarray::Array< float , 1> lsst::afw::image::abMagFromFlux | ( | ndarray::Array< float const, 1 > const & | flux | ) |
ndarray::Array< T, 1 > lsst::afw::image::abMagFromFlux | ( | ndarray::Array< T const, 1 > const & | flux | ) |
|
inline |
Raise lsst::pex::exceptions::InvalidParameterError if value is not >=0.
Used for checking the calibration mean/error in the constructor.
value | Value that should be positive. |
name | Text to prepend to error message. |
lsst::pex::exceptions::InvalidParameterError | if value < 0 |
Definition at line 69 of file PhotoCalib.h.
lsst::geom::Box2I lsst::afw::image::bboxFromMetadata | ( | daf::base::PropertySet & | metadata | ) |
Determine the image bounding box from its metadata (FITS header)
Note that this modifies the metadata, stripping the WCS headers that provide the xy0.
Definition at line 682 of file Image.cc.
void lsst::afw::image::declareRotType | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 133 of file _visitInfo.cc.
void lsst::afw::image::declareVisitInfo | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 57 of file _visitInfo.cc.
|
defaultnoexcept |
|
default |
|
inlinenoexcept |
Compute flux error in Janskys from AB magnitude error and AB magnitude.
Definition at line 60 of file Calib.h.
template ndarray::Array< double , 1> lsst::afw::image::fluxErrFromABMagErr | ( | ndarray::Array< double const, 1 > const & | magErr, |
ndarray::Array< double const, 1 > const & | mag | ||
) |
template ndarray::Array< float , 1> lsst::afw::image::fluxErrFromABMagErr | ( | ndarray::Array< float const, 1 > const & | magErr, |
ndarray::Array< float const, 1 > const & | mag | ||
) |
ndarray::Array< T, 1 > lsst::afw::image::fluxErrFromABMagErr | ( | ndarray::Array< T const, 1 > const & | magErr, |
ndarray::Array< T const, 1 > const & | mag | ||
) |
|
inlinenoexcept |
template ndarray::Array< double , 1> lsst::afw::image::fluxFromABMag | ( | ndarray::Array< double const, 1 > const & | mag | ) |
template ndarray::Array< float , 1> lsst::afw::image::fluxFromABMag | ( | ndarray::Array< float const, 1 > const & | mag | ) |
ndarray::Array< T, 1 > lsst::afw::image::fluxFromABMag | ( | ndarray::Array< T const, 1 > const & | mag | ) |
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
Image< RhsT > const & | rhs, | ||
pixelOp1< RhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func(rhs), getting the rhs from an Image<RhsT>
Definition at line 142 of file ImageAlgorithm.h.
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
Image< RhsT > const & | rhs, | ||
pixelOp2< LhsT, RhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func(lhs, rhs), getting the rhs from an Image<RhsT>
Definition at line 167 of file ImageAlgorithm.h.
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
Image< RhsT > const & | rhs, | ||
pixelOp2XY< LhsT, RhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func(x, y, lhs, rhs), getting the rhs from an Image<RhsT>
(x, y) allow for lhs.getXY0()
Definition at line 193 of file ImageAlgorithm.h.
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
pixelOp0< LhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func()
lhs | Image to set |
func | functor to call |
Definition at line 94 of file ImageAlgorithm.h.
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
pixelOp1< LhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func(lhs)
lhs | Image to set |
func | functor to call |
Definition at line 109 of file ImageAlgorithm.h.
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
pixelOp1XY< LhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func(x, y, lhs)
(x, y) allow for lhs.getXY0()
lhs | Image to set |
func | functor to call |
Definition at line 126 of file ImageAlgorithm.h.
std::string lsst::afw::image::getDatabaseFilterLabel | ( | std::string const & | filterLabel | ) |
Remap special characters, etc.
to "_" for database fields.
Definition at line 45 of file FilterLabel.cc.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
overrideprotected |
|
overrideprotected |
|
overridenoexcept |
Return a hash of this object.
bool lsst::afw::image::imagesOverlap | ( | ImageBase< T1 > const & | image1, |
ImageBase< T2 > const & | image2 | ||
) |
bool lsst::afw::image::imagesOverlap | ( | MaskedImage< ImagePixelT1, MaskPixel, VariancePixel > const & | image1, |
MaskedImage< ImagePixelT2, MaskPixel, VariancePixel > const & | image2 | ||
) |
Return true if the pixels for two masked images (image, variance or mask plane) overlap in memory.
Definition at line 680 of file MaskedImage.cc.
template bool lsst::afw::image::imagesOverlap< double, double > | ( | MaskedImage< double > const & | , |
MaskedImage< double > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< double, float > | ( | MaskedImage< double > const & | , |
MaskedImage< float > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< double, int > | ( | MaskedImage< double > const & | , |
MaskedImage< int > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< double, std::uint16_t > | ( | MaskedImage< double > const & | , |
MaskedImage< std::uint16_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< double, std::uint64_t > | ( | MaskedImage< double > const & | , |
MaskedImage< std::uint64_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< float, double > | ( | MaskedImage< float > const & | , |
MaskedImage< double > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< float, float > | ( | MaskedImage< float > const & | , |
MaskedImage< float > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< float, int > | ( | MaskedImage< float > const & | , |
MaskedImage< int > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< float, std::uint16_t > | ( | MaskedImage< float > const & | , |
MaskedImage< std::uint16_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< float, std::uint64_t > | ( | MaskedImage< float > const & | , |
MaskedImage< std::uint64_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< int, double > | ( | MaskedImage< int > const & | , |
MaskedImage< double > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< int, float > | ( | MaskedImage< int > const & | , |
MaskedImage< float > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< int, int > | ( | MaskedImage< int > const & | , |
MaskedImage< int > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< int, std::uint16_t > | ( | MaskedImage< int > const & | , |
MaskedImage< std::uint16_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< int, std::uint64_t > | ( | MaskedImage< int > const & | , |
MaskedImage< std::uint64_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint16_t, double > | ( | MaskedImage< std::uint16_t > const & | , |
MaskedImage< double > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint16_t, float > | ( | MaskedImage< std::uint16_t > const & | , |
MaskedImage< float > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint16_t, int > | ( | MaskedImage< std::uint16_t > const & | , |
MaskedImage< int > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint16_t, std::uint16_t > | ( | MaskedImage< std::uint16_t > const & | , |
MaskedImage< std::uint16_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint16_t, std::uint64_t > | ( | MaskedImage< std::uint16_t > const & | , |
MaskedImage< std::uint64_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint64_t, double > | ( | MaskedImage< std::uint64_t > const & | , |
MaskedImage< double > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint64_t, float > | ( | MaskedImage< std::uint64_t > const & | , |
MaskedImage< float > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint64_t, int > | ( | MaskedImage< std::uint64_t > const & | , |
MaskedImage< int > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint64_t, std::uint16_t > | ( | MaskedImage< std::uint64_t > const & | , |
MaskedImage< std::uint16_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint64_t, std::uint64_t > | ( | MaskedImage< std::uint64_t > const & | , |
MaskedImage< std::uint64_t > const & | |||
) |
|
inline |
Convert image index to image position.
The LSST indexing convention is:
ind | image index |
Definition at line 55 of file ImageUtils.h.
double lsst::afw::image::innerProduct | ( | Image1T const & | lhs, |
Image2T const & | rhs, | ||
int const | border = 0 |
||
) |
Calculate the inner product of two images.
lhs | first image |
rhs | Other image to dot with first |
border | number of pixels to ignore around the edge |
lsst::pex::exceptions::LengthError | if all the images aren't the same size |
Definition at line 414 of file ImagePca.cc.
std::shared_ptr<Exposure<ImagePixelT, MaskPixelT, VariancePixelT> > lsst::afw::image::makeExposure | ( | MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > & | mimage, |
std::shared_ptr< geom::SkyWcs const > | wcs = std::shared_ptr<geom::SkyWcs const>() |
||
) |
A function to return an Exposure of the correct type (cf.
Definition at line 462 of file Exposure.h.
Filter lsst::afw::image::makeFilter | ( | FilterLabel const & | label | ) |
Convert a FilterLabel back to an old-style Filter.
label | The FilterLabel to convert. |
Definition at line 210 of file ExposureFitsReader.cc.
std::shared_ptr< FilterLabel > lsst::afw::image::makeFilterLabel | ( | Filter const & | filter | ) |
Convert an old-style Filter to a FilterLabel.
If a filter has been declared using lsst.obs.base.FilterDefinition
, that information (as encoded in the ~lsst.afw.image.Filter
registry) is used to infer the filter's band and physical filter.
filter | Any Filter object. |
Definition at line 121 of file ExposureFitsReader.cc.
std::shared_ptr<FilterLabel> lsst::afw::image::makeFilterLabel | ( | std::string const & | name | ) |
Convert an old-style single Filter name to a FilterLabel, using available information.
If a filter has been declared using lsst.obs.base.FilterDefinition
, that information (as encoded in the ~lsst.afw.image.Filter
registry) is used to infer the filter's band and physical filter.
name | The name persisted in a FITS file. May be any of a Filter's many names. |
Definition at line 177 of file ExposureFitsReader.cc.
std::shared_ptr<FilterLabel> lsst::afw::image::makeFilterLabelDirect | ( | std::string const & | name | ) |
Convert an old-style filter name to a FilterLabel without external information.
Guaranteed to not call any code related to Filter or FilterDefinition.
name | A name for the filter. |
Definition at line 94 of file ExposureFitsReader.cc.
MaskedImage<ImagePixelT, MaskPixelT, VariancePixelT>* lsst::afw::image::makeMaskedImage | ( | typename std::shared_ptr< Image< ImagePixelT >> | image, |
typename std::shared_ptr< Mask< MaskPixelT >> | mask = Mask<MaskPixelT>() , |
||
typename std::shared_ptr< Image< VariancePixelT >> | variance = Image<VariancePixelT>() |
||
) |
A function to return a MaskedImage of the correct type (cf.
image | image |
mask | mask |
variance | variance |
Definition at line 1240 of file MaskedImage.h.
std::shared_ptr< PhotoCalib > lsst::afw::image::makePhotoCalibFromCalibZeroPoint | ( | double | instFluxMag0, |
double | instFluxMag0Err | ||
) |
Construct a PhotoCalib from the deprecated Calib
-style instFluxMag0/instFluxMag0Err values.
This provides backwards compatibility with the obsoleted Calib object that PhotoCalib replaced. It should not be used outside of tests that compare with old persisted Calib objects.
instFluxMag0 | The instrumental flux at zero magnitude. If 0, the resulting PhotoCalib will have infinite calibrationMean and non-finite (inf or NaN) calibrationErr. |
instFluxMag0Err | The instrumental flux at zero magnitude error. If 0, the resulting PhotoCalib will have 0 calibrationErr. |
Definition at line 613 of file PhotoCalib.cc.
std::shared_ptr< PhotoCalib > lsst::afw::image::makePhotoCalibFromMetadata | ( | daf::base::PropertySet & | metadata, |
bool | strip = false |
||
) |
Construct a PhotoCalib from FITS FLUXMAG0/FLUXMAG0ERR keywords.
This provides backwards compatibility with the obsoleted Calib object that PhotoCalib replaced. It should not be used outside of reading old Exposures written before PhotoCalib existed.
metadata | FITS header metadata containing FLUXMAG0 and FLUXMAG0ERR keys. |
strip | Strip FLUXMAG0 and FLUXMAG0ERR from metadata ? |
Definition at line 595 of file PhotoCalib.cc.
|
noexcept |
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator* | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator*()
We'll define both 'image*slice' (this one) and 'slice*image' (next one down).
img | The Image |
slc | The ImageSlice |
Definition at line 104 of file ImageSlice.cc.
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator* | ( | ImageSlice< PixelT > const & | slc, |
Image< PixelT > const & | img | ||
) |
Overload operator*()
We'll define both 'image*slice' (this one) and 'slice*image' (next one down).
slc | The Image |
img | The ImageSlice |
Definition at line 111 of file ImageSlice.cc.
Image< LhsPixelT > & lsst::afw::image::operator*= | ( | Image< LhsPixelT > & | lhs, |
Image< RhsPixelT > const & | rhs | ||
) |
Multiply lhs by Image rhs (i.e. pixel-by-pixel multiplication) where types are different.
Definition at line 671 of file Image.cc.
void lsst::afw::image::operator*= | ( | Image< PixelT > & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator*=()
Only 'image *= slice' is defined, as 'slice *= image' doesn't make sense.
[in,out] | img | The Image |
[in] | slc | The ImageSlice |
Definition at line 116 of file ImageSlice.cc.
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator+ | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator+()
We require two of these, one for image+slice (this one) and one for slice+image (next one down)
img | The Image |
slc | The ImageSlice |
Definition at line 69 of file ImageSlice.cc.
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator+ | ( | ImageSlice< PixelT > const & | slc, |
Image< PixelT > const & | img | ||
) |
Overload operator+()
slc | The ImageSlice |
img | The Image |
We require two of these, one for image+slice (previous one) and one for slice+image (this)
Definition at line 76 of file ImageSlice.cc.
Image< LhsPixelT > & lsst::afw::image::operator+= | ( | Image< LhsPixelT > & | lhs, |
Image< RhsPixelT > const & | rhs | ||
) |
Add lhs to Image rhs (i.e. pixel-by-pixel addition) where types are different.
void lsst::afw::image::operator+= | ( | Image< PixelT > & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator+=()
We'll only allow 'image += slice'. It doesn't make sense to add an image to a slice.
[in,out] | img | The Image |
[in] | slc | The ImageSlice |
Definition at line 81 of file ImageSlice.cc.
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator- | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator-()
We'll only allow 'image - slice', as 'slice - image' doesn't make sense.
img | The Image |
slc | The ImageSlice |
Definition at line 89 of file ImageSlice.cc.
Image< LhsPixelT > & lsst::afw::image::operator-= | ( | Image< LhsPixelT > & | lhs, |
Image< RhsPixelT > const & | rhs | ||
) |
Subtract lhs from Image rhs (i.e. pixel-by-pixel subtraction) where types are different.
void lsst::afw::image::operator-= | ( | Image< PixelT > & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator-=()
Only 'image -= slice' is defined. 'slice -= image' wouldn't make sense.
[in,out] | img | The Image |
[in] | slc | The ImageSlice |
Definition at line 96 of file ImageSlice.cc.
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator/ | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator/()
Only 'image / slice' is defined, as 'slice / image' doesn't make sense.
img | The Image |
slc | The ImageSlice |
Definition at line 123 of file ImageSlice.cc.
Image< LhsPixelT > & lsst::afw::image::operator/= | ( | Image< LhsPixelT > & | lhs, |
Image< RhsPixelT > const & | rhs | ||
) |
Divide lhs by Image rhs (i.e. pixel-by-pixel division) where types are different.
void lsst::afw::image::operator/= | ( | Image< PixelT > & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator/=()
Only 'image /= slice' is defined, as 'slice /= image' doesn't make sense.
[in,out] | img | The Image |
[in] | slc | The ImageSlice |
Definition at line 130 of file ImageSlice.cc.
std::ostream & lsst::afw::image::operator<< | ( | std::ostream & | os, |
Measurement const & | measurement | ||
) |
Definition at line 47 of file PhotoCalib.cc.
std::ostream& lsst::afw::image::operator<< | ( | std::ostream & | os, |
PhotoCalib const & | photoCalib | ||
) |
Definition at line 256 of file PhotoCalib.cc.
std::ostream & lsst::afw::image::operator<< | ( | std::ostream & | os, |
VisitInfo const & | visitInfo | ||
) |
Definition at line 566 of file VisitInfo.cc.
|
defaultnoexcept |
|
default |
|
noexcept |
Return true iff two FilterProperties are identical.
rhs | Object to compare with this |
|
inline |
Convert image position to index (nearest integer and fractional parts)
The LSST indexing convention is:
Note: in python this is called positionToIndexAndResidual
residual | fractional part of index |
pos | image position |
Definition at line 85 of file ImageUtils.h.
|
inline |
Convert image position to index (nearest integer and fractional parts)
pos | image position |
Definition at line 98 of file ImageUtils.h.
|
inline |
Convert image position to nearest integer index.
The LSST indexing convention is:
pos | image position |
Definition at line 69 of file ImageUtils.h.
lsst::afw::image::PYBIND11_MODULE | ( | _exposure | , |
mod | |||
) |
Definition at line 182 of file _exposure.cc.
lsst::afw::image::PYBIND11_MODULE | ( | _imageLib | , |
mod | |||
) |
Definition at line 45 of file _imageLib.cc.
lsst::afw::image::PYBIND11_MODULE | ( | _maskedImage | , |
mod | |||
) |
Definition at line 244 of file _maskedImage.cc.
void lsst::afw::image::swap | ( | DecoratedImage< PixelT > & | a, |
DecoratedImage< PixelT > & | b | ||
) |
Definition at line 78 of file DecoratedImage.cc.
void lsst::afw::image::wrapCalib | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
void lsst::afw::image::wrapCoaddInputs | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 42 of file _coaddInputs.cc.
void lsst::afw::image::wrapColor | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 40 of file _color.cc.
void lsst::afw::image::wrapDefect | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 56 of file _defect.cc.
void lsst::afw::image::wrapExposure | ( | lsst::utils::python::WrapperCollection & | ) |
void lsst::afw::image::wrapExposureInfo | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 207 of file _exposureInfo.cc.
void lsst::afw::image::wrapFilter | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 98 of file _filter.cc.
void lsst::afw::image::wrapFilterLabel | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 116 of file _filterLabel.cc.
void lsst::afw::image::wrapImage | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 448 of file _image.cc.
void lsst::afw::image::wrapImagePca | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 73 of file _imagePca.cc.
void lsst::afw::image::wrapImageSlice | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 115 of file _imageSlice.cc.
void lsst::afw::image::wrapImageUtils | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 35 of file _imageUtils.cc.
void lsst::afw::image::wrapPhotoCalib | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 208 of file _photoCalib.cc.
void lsst::afw::image::wrapReaders | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 338 of file _readers.cc.
void lsst::afw::image::wrapTransmissionCurve | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 46 of file _transmissionCurve.cc.
void lsst::afw::image::wrapVisitInfo | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 143 of file _visitInfo.cc.
|
overrideprotected |
class Filter lsst::afw::image::final |
Describe the properties of a Filter (e.g.
Holds an integer identifier for an LSST filter.
effective wavelength)
const double lsst::afw::image::PixelZeroPos = 0.0 |
position of center of pixel 0
FITS uses 1.0, SDSS uses 0.5, LSST uses 0.0 (http://dev.lsstcorp.org/trac/wiki/BottomLeftPixelProposalII%3A)
Definition at line 44 of file ImageUtils.h.