LSST Applications g070148d5b3+33e5256705,g0d53e28543+25c8b88941,g0da5cf3356+2dd1178308,g1081da9e2a+62d12e78cb,g17e5ecfddb+7e422d6136,g1c76d35bf8+ede3a706f7,g295839609d+225697d880,g2e2c1a68ba+cc1f6f037e,g2ffcdf413f+853cd4dcde,g38293774b4+62d12e78cb,g3b44f30a73+d953f1ac34,g48ccf36440+885b902d19,g4b2f1765b6+7dedbde6d2,g5320a0a9f6+0c5d6105b6,g56b687f8c9+ede3a706f7,g5c4744a4d9+ef6ac23297,g5ffd174ac0+0c5d6105b6,g6075d09f38+66af417445,g667d525e37+2ced63db88,g670421136f+2ced63db88,g71f27ac40c+2ced63db88,g774830318a+463cbe8d1f,g7876bc68e5+1d137996f1,g7985c39107+62d12e78cb,g7fdac2220c+0fd8241c05,g96f01af41f+368e6903a7,g9ca82378b8+2ced63db88,g9d27549199+ef6ac23297,gabe93b2c52+e3573e3735,gb065e2a02a+3dfbe639da,gbc3249ced9+0c5d6105b6,gbec6a3398f+0c5d6105b6,gc9534b9d65+35b9f25267,gd01420fc67+0c5d6105b6,geee7ff78d7+a14128c129,gf63283c776+ede3a706f7,gfed783d017+0c5d6105b6,w.2022.47
LSST Data Management Base Package
|
Namespaces | |
namespace | _exposureInfoContinued |
namespace | _exposureSummaryStats |
namespace | _photoCalibContinued |
namespace | _visitInfo |
namespace | apCorrMap |
namespace | basicUtils |
namespace | detail |
namespace | details |
namespace | exposure |
namespace | image |
namespace | impl |
namespace | maskedImage |
namespace | pixel |
namespace | python |
namespace | testUtils |
namespace | utils |
Classes | |
class | ApCorrMap |
A thin wrapper around std::map to allow aperture corrections to be attached to Exposures. More... | |
class | CheckIndices |
A class used to request that array accesses be checked. 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... | |
struct | ConstReference |
metafunction to extract const reference type from PixelT More... | |
class | DecoratedImage |
A container for an Image and its associated metadata. 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... | |
struct | GetImage |
class | Image |
A class to represent a 2-dimensional array of pixels. 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 | imageIterator |
An ImageBase iterator. More... | |
class | imageLocator |
An ImageBase locator. 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... | |
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... | |
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... | |
struct | Reference |
metafunction to extract reference type from PixelT 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... | |
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 | 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 (std::string const &name) |
Convert an old-style single Filter name to a FilterLabel, using available information. 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) |
bool | _eqOrNan (double lhs, double rhs) noexcept |
Test whether two numbers are exactly equal or both NaN. More... | |
bool | _eqOrNonFinite (lsst::geom::SpherePoint const &lhs, lsst::geom::SpherePoint const &rhs) noexcept |
Test whether two SpherePoints are exactly equal or invalid. More... | |
Variables | |
const double | PixelZeroPos = 0.0 |
position of center of pixel 0 More... | |
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.
|
noexcept |
Test whether two numbers are exactly equal or both NaN.
This function is exactly equivalent to operator==(double, double)
, except that NaNs compare equal (NaNs of different values also compare equal).
Definition at line 558 of file VisitInfo.cc.
|
noexcept |
Test whether two SpherePoints are exactly equal or invalid.
This function is needed because SpherePoint::operation== is specifically designed to be ill-behaved when NaN values are involved.
Definition at line 566 of file VisitInfo.cc.
|
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 | ) |
Compute AB magnitude from flux in Janskys.
Definition at line 41 of file Calib.cc.
|
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 721 of file Image.cc.
void lsst::afw::image::declareRotType | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 149 of file _visitInfo.cc.
void lsst::afw::image::declareVisitInfo | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 57 of file _visitInfo.cc.
|
inlinenoexcept |
Compute flux error in Janskys from AB magnitude error and AB magnitude.
Definition at line 68 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 | ||
) |
Compute flux error in Janskys from AB magnitude error and AB magnitude.
Definition at line 77 of file Calib.cc.
|
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 | ) |
Compute flux in Janskys from AB magnitude.
Definition at line 67 of file Calib.cc.
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.
bool lsst::afw::image::imagesOverlap | ( | ImageBase< T1 > const & | image1, |
ImageBase< T2 > const & | image2 | ||
) |
Return true if the pixels for two images or masks overlap in memory.
Definition at line 733 of file Image.cc.
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 445 of file Exposure.h.
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.
name | The name persisted in a FITS file. May be any of a Filter's many names. |
Definition at line 117 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 95 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 1241 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 614 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 596 of file PhotoCalib.cc.
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 710 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 48 of file PhotoCalib.cc.
std::ostream & lsst::afw::image::operator<< | ( | std::ostream & | os, |
PhotoCalib const & | photoCalib | ||
) |
Definition at line 257 of file PhotoCalib.cc.
std::ostream & lsst::afw::image::operator<< | ( | std::ostream & | os, |
VisitInfo const & | visitInfo | ||
) |
Definition at line 688 of file VisitInfo.cc.
|
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 179 of file _exposure.cc.
lsst::afw::image::PYBIND11_MODULE | ( | _imageLib | , |
mod | |||
) |
Definition at line 44 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 225 of file _exposureInfo.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 209 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 159 of file _visitInfo.cc.
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.