lsst.meas.algorithms  14.0-7-g23fdbe95+6
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
lsst::meas::algorithms::BinnedWcs Class Reference

#include <BinnedWcs.h>

Inheritance diagram for lsst::meas::algorithms::BinnedWcs:
lsst::afw::image::Wcs std::enable_shared_from_this< BinnedWcs > lsst::daf::base::Persistable lsst::daf::base::Citizen PersistableFacade< Wcs > lsst::afw::table::io::Persistable

Public Types

typedef std::shared_ptr< PersistablePtr
 
typedef unsigned long memId
 
typedef memId(* memNewCallback) (const memId cid)
 
typedef memId(* memCallback) (const Citizen *ptr)
 

Public Member Functions

 BinnedWcs (boost::shared_ptr< afw::image::Wcs > parent, unsigned int xBin, unsigned int yBin, afw::geom::Point2I xy0)
 
virtual ~BinnedWcs ()
 
virtual boost::shared_ptr< afw::image::Wcsclone () const
 
boost::shared_ptr< afw::image::Wcsupcast ()
 
boost::shared_ptr< afw::image::WcsgetParent () const
 
unsigned int getXBin () const
 
unsigned int getYBin () const
 
afw::geom::Point2I getXY0 () const
 
virtual bool hasDistortion () const
 
virtual bool isPersistable () const
 
virtual void flipImage (int flipLR, int flipTB, afw::geom::Extent2I dimensions) const
 
virtual void rotateImageBy90 (int nQuarter, afw::geom::Extent2I dimensions) const
 
virtual boost::shared_ptr< daf::base::PropertyListgetFitsMetadata () const
 
afw::geom::AffineTransform getBinnedToOriginal () const
 
afw::geom::AffineTransform getOriginalToBinned () const
 
bool operator== (Wcs const &other) const
 
bool operator!= (Wcs const &other) const
 
std::shared_ptr< lsst::afw::coord::CoordgetSkyOrigin () const
 
lsst::afw::geom::Point2D getPixelOrigin () const
 
Eigen::Matrix2d getCDMatrix () const
 
bool isFlipped () const
 
double pixArea (lsst::afw::geom::Point2D pix00) const
 
geom::Angle pixelScale () const
 
std::shared_ptr< coord::CoordpixelToSky (double pix1, double pix2) const
 
std::shared_ptr< coord::CoordpixelToSky (lsst::afw::geom::Point2D const &pixel) const
 
void pixelToSky (double pixel1, double pixel2, geom::Angle &sky1, geom::Angle &sky2) const
 
geom::Point2D skyToPixel (geom::Angle sky1, geom::Angle sky2) const
 
geom::Point2D skyToPixel (coord::Coord const &coord) const
 
geom::Point2D skyToIntermediateWorldCoord (coord::Coord const &coord) const
 
afw::coord::CoordSystem getCoordSystem () const
 
double getEquinox () const
 
bool isSameSkySystem (Wcs const &wcs) const
 
geom::LinearTransform getLinearTransform () const
 
geom::AffineTransform linearizePixelToSky (coord::Coord const &coord, geom::AngleUnit skyUnit=geom::degrees) const
 
geom::AffineTransform linearizePixelToSky (geom::Point2D const &pix, geom::AngleUnit skyUnit=geom::degrees) const
 
geom::AffineTransform linearizeSkyToPixel (coord::Coord const &coord, geom::AngleUnit skyUnit=geom::degrees) const
 
geom::AffineTransform linearizeSkyToPixel (geom::Point2D const &pix, geom::AngleUnit skyUnit=geom::degrees) const
 
virtual void shiftReferencePixel (double dx, double dy)
 
virtual void shiftReferencePixel (geom::Extent2D const &d)
 
void writeFits (std::string const &fileName, std::string const &mode="w") const
 
void writeFits (fits::MemFileManager &manager, std::string const &mode="w") const
 
void writeFits (fits::Fits &fitsfile) const
 
void serialize (Archive &, unsigned int const)
 
std::string repr () const
 
void markPersistent (void)
 
memId getId () const
 
shared_from_this (T... args)
 

Static Public Member Functions

static std::shared_ptr< WcsreadFits (fits::Fits &fitsfile)
 
static std::shared_ptr< WcsreadFits (std::string const &fileName, int hdu=INT_MIN)
 
static std::shared_ptr< WcsreadFits (fits::MemFileManager &manager, int hdu=INT_MIN)
 
static std::shared_ptr< WcsreadFits (fits::Fits &fitsfile)
 
static std::shared_ptr< WcsreadFits (fits::MemFileManager &manager, int hdu=INT_MIN)
 
static bool hasBeenCorrupted ()
 
static memId getNextMemId ()
 
static int init ()
 
static int census (int, memId startingMemId=0)
 
static void census (std::ostream &stream, memId startingMemId=0)
 
static const std::vector< const Citizen *> * census ()
 
static int census (int, memId startingMemId=0)
 
static void census (std::ostream &stream, memId startingMemId=0)
 
static const std::vector< const Citizen *> * census ()
 
static memId setNewCallbackId (memId id)
 
static memId setNewCallbackId (memId id)
 
static memId setDeleteCallbackId (memId id)
 
static memId setDeleteCallbackId (memId id)
 
static memNewCallback setNewCallback (memNewCallback func)
 
static memCallback setDeleteCallback (memCallback func)
 
static memCallback setCorruptionCallback (memCallback func)
 

Public Attributes

 magicSentinel
 

Protected Types

typedef io::OutputArchiveHandle OutputArchiveHandle
 

Protected Member Functions

virtual void pixelToSkyImpl (double pixel1, double pixel2, afw::geom::Angle skyTmp[2]) const
 
virtual afw::geom::Point2D skyToPixelImpl (afw::geom::Angle sky1, afw::geom::Angle sky2) const
 
bool _mayBePersistable () const
 
virtual std::string getPersistenceName () const
 
virtual std::string getPythonModule () const
 
virtual void write (OutputArchiveHandle &handle) const
 
virtual void write (OutputArchiveHandle &handle) const
 
virtual bool _isSubset (Wcs const &other) const
 
bool _isIcrs () const
 
std::shared_ptr< afw::coord::CoordmakeCorrectCoord (geom::Angle sky0, geom::Angle sky1) const
 
std::shared_ptr< afw::coord::CoordconvertCoordToSky (coord::Coord const &coord) const
 
virtual geom::AffineTransform linearizePixelToSkyInternal (geom::Point2D const &pix, coord::Coord const &coord, geom::AngleUnit skyUnit) const
 
virtual geom::AffineTransform linearizeSkyToPixelInternal (geom::Point2D const &pix, coord::Coord const &coord, geom::AngleUnit skyUnit) const
 
void initWcsLibFromFits (std::shared_ptr< lsst::daf::base::PropertySet const > const &fitsMetadata)
 
void _initWcs ()
 
void _setWcslibParams ()
 

Protected Attributes

struct wcsprm * _wcsInfo
 
int _nWcsInfo
 
int _relax
 
int _wcsfixCtrl
 
int _wcshdrCtrl
 
int _nReject
 
coord::CoordSystem _coordSystem
 
bool _skyAxesSwapped
 

Detailed Description

Definition at line 41 of file BinnedWcs.h.

Constructor & Destructor Documentation

◆ BinnedWcs()

lsst::meas::algorithms::BinnedWcs::BinnedWcs ( boost::shared_ptr< afw::image::Wcs parent,
unsigned int  xBin,
unsigned int  yBin,
afw::geom::Point2I  xy0 
)

Definition at line 29 of file BinnedWcs.cc.

◆ ~BinnedWcs()

virtual lsst::meas::algorithms::BinnedWcs::~BinnedWcs ( )
inlinevirtual

Definition at line 44 of file BinnedWcs.h.

Member Function Documentation

◆ clone()

virtual boost::shared_ptr< afw::image::Wcs > lsst::meas::algorithms::BinnedWcs::clone ( void  ) const
inlinevirtual

Reimplemented from lsst::afw::image::Wcs.

Definition at line 46 of file BinnedWcs.h.

◆ flipImage()

virtual void lsst::meas::algorithms::BinnedWcs::flipImage ( int  flipLR,
int  flipTB,
afw::geom::Extent2I  dimensions 
) const
inlinevirtual

Reimplemented from lsst::afw::image::Wcs.

Definition at line 59 of file BinnedWcs.h.

◆ getBinnedToOriginal()

afw::geom::AffineTransform lsst::meas::algorithms::BinnedWcs::getBinnedToOriginal ( ) const
inline

Definition at line 70 of file BinnedWcs.h.

◆ getFitsMetadata()

virtual boost::shared_ptr< daf::base::PropertyList > lsst::meas::algorithms::BinnedWcs::getFitsMetadata ( ) const
inlinevirtual

Reimplemented from lsst::afw::image::Wcs.

Definition at line 65 of file BinnedWcs.h.

◆ getOriginalToBinned()

afw::geom::AffineTransform lsst::meas::algorithms::BinnedWcs::getOriginalToBinned ( ) const
inline

Definition at line 71 of file BinnedWcs.h.

◆ getParent()

boost::shared_ptr< afw::image::Wcs > lsst::meas::algorithms::BinnedWcs::getParent ( ) const
inline

Definition at line 51 of file BinnedWcs.h.

◆ getXBin()

unsigned int lsst::meas::algorithms::BinnedWcs::getXBin ( ) const
inline

Definition at line 52 of file BinnedWcs.h.

◆ getXY0()

afw::geom::Point2I lsst::meas::algorithms::BinnedWcs::getXY0 ( ) const
inline

Definition at line 54 of file BinnedWcs.h.

◆ getYBin()

unsigned int lsst::meas::algorithms::BinnedWcs::getYBin ( ) const
inline

Definition at line 53 of file BinnedWcs.h.

◆ hasDistortion()

virtual bool lsst::meas::algorithms::BinnedWcs::hasDistortion ( ) const
inlinevirtual

Reimplemented from lsst::afw::image::Wcs.

Definition at line 56 of file BinnedWcs.h.

◆ isPersistable()

virtual bool lsst::meas::algorithms::BinnedWcs::isPersistable ( ) const
inlinevirtual

Reimplemented from lsst::afw::image::Wcs.

Definition at line 57 of file BinnedWcs.h.

◆ pixelToSkyImpl()

void lsst::meas::algorithms::BinnedWcs::pixelToSkyImpl ( double  pixel1,
double  pixel2,
afw::geom::Angle  skyTmp[2] 
) const
protectedvirtual

Reimplemented from lsst::afw::image::Wcs.

Definition at line 48 of file BinnedWcs.cc.

◆ rotateImageBy90()

virtual void lsst::meas::algorithms::BinnedWcs::rotateImageBy90 ( int  nQuarter,
afw::geom::Extent2I  dimensions 
) const
inlinevirtual

Reimplemented from lsst::afw::image::Wcs.

Definition at line 62 of file BinnedWcs.h.

◆ skyToPixelImpl()

afw::geom::Point2D lsst::meas::algorithms::BinnedWcs::skyToPixelImpl ( afw::geom::Angle  sky1,
afw::geom::Angle  sky2 
) const
protectedvirtual

Reimplemented from lsst::afw::image::Wcs.

Definition at line 55 of file BinnedWcs.cc.

◆ upcast()

boost::shared_ptr< afw::image::Wcs > lsst::meas::algorithms::BinnedWcs::upcast ( )
inline

Definition at line 49 of file BinnedWcs.h.


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