|
LSSTApplications
8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
|
Implementation of the WCS standard for a any projection. More...
#include <Wcs.h>
Public Types | |
| typedef boost::shared_ptr< Wcs > | Ptr |
| typedef boost::shared_ptr< Wcs const > | ConstPtr |
Public Types inherited from lsst::daf::base::Persistable | |
| typedef boost::shared_ptr < Persistable > | Ptr |
Public Types inherited from lsst::daf::base::Citizen | |
| enum | { magicSentinel = 0xdeadbeef } |
| typedef unsigned long | memId |
| Type of the block's ID. More... | |
| typedef memId(* | memNewCallback )(const memId cid) |
| A function used to register a callback. More... | |
| typedef memId(* | memCallback )(const Citizen *ptr) |
Public Member Functions | |
| Wcs (lsst::afw::geom::Point2D const &crval, lsst::afw::geom::Point2D const &crpix, Eigen::Matrix2d const &CD, std::string const &ctype1="RA---TAN", std::string const &ctype2="DEC--TAN", double equinox=2000, std::string const &raDecSys="ICRS", std::string const &cunits1="deg", std::string const &cunits2="deg") | |
| Create a Wcs object with some known information. More... | |
| virtual | ~Wcs () |
| virtual Ptr | clone (void) const |
| bool | operator== (Wcs const &other) const |
| bool | operator!= (Wcs const &other) const |
| lsst::afw::coord::Coord::Ptr | getSkyOrigin () const |
| Returns CRVAL. More... | |
| lsst::afw::geom::Point2D | getPixelOrigin () const |
| Returns CRPIX (corrected to LSST convention). More... | |
| Eigen::Matrix2d | getCDMatrix () const |
| Returns CD matrix. You would never have guessed that from the name. More... | |
| virtual void | flipImage (int flipLR, int flipTB, lsst::afw::geom::Extent2I dimensions) const |
| Flip CD matrix around the y-axis. More... | |
| virtual void | rotateImageBy90 (int nQuarter, lsst::afw::geom::Extent2I dimensions) const |
| virtual boost::shared_ptr < lsst::daf::base::PropertyList > | getFitsMetadata () const |
| Return a PropertyList containing FITS header keywords that can be used to save the Wcs.x. More... | |
| bool | isFlipped () const |
| double | pixArea (lsst::afw::geom::Point2D pix00) const |
Sky area covered by a pixel at position pix00 in units of square degrees. More... | |
| geom::Angle | pixelScale () const |
| Returns the pixel scale [Angle/pixel]. More... | |
| boost::shared_ptr< coord::Coord > | pixelToSky (double pix1, double pix2) const |
| Convert from celestial coordinates to pixel coordinates. More... | |
| boost::shared_ptr< coord::Coord > | pixelToSky (lsst::afw::geom::Point2D const &pixel) const |
| Convert from celestial coordiantes to pixel coordinates. More... | |
| void | pixelToSky (double pixel1, double pixel2, geom::Angle &sky1, geom::Angle &sky2) const |
| Convert from celestial coordiantes to pixel coordinates. More... | |
| geom::Point2D | skyToPixel (geom::Angle sky1, geom::Angle sky2) const |
| Convert from sky coordinates (e.g ra/dec) to pixel positions. More... | |
| geom::Point2D | skyToPixel (coord::Coord const &coord) const |
| Convert from sky coordinates (e.g ra/dec) to pixel positions. More... | |
| geom::Point2D | skyToIntermediateWorldCoord (coord::Coord const &coord) const |
| Convert from sky coordinates (e.g ra/dec) to intermediate world coordinates. More... | |
| virtual bool | hasDistortion () const |
| geom::LinearTransform | getLinearTransform () const |
| geom::AffineTransform | linearizePixelToSky (coord::Coord const &coord, geom::AngleUnit skyUnit=geom::degrees) const |
| Return the local linear approximation to Wcs::pixelToSky at a point given in sky coordinates. More... | |
| geom::AffineTransform | linearizePixelToSky (geom::Point2D const &pix, geom::AngleUnit skyUnit=geom::degrees) const |
| Return the local linear approximation to Wcs::pixelToSky at a point given in pixel coordinates. More... | |
| geom::AffineTransform | linearizeSkyToPixel (coord::Coord const &coord, geom::AngleUnit skyUnit=geom::degrees) const |
| Return the local linear approximation to Wcs::skyToPixel at a point given in sky coordinates. More... | |
| geom::AffineTransform | linearizeSkyToPixel (geom::Point2D const &pix, geom::AngleUnit skyUnit=geom::degrees) const |
| Return the local linear approximation to Wcs::skyToPixel at a point given in pixel coordinates. More... | |
| void | shiftReferencePixel (geom::Extent2D const &d) |
| void | shiftReferencePixel (double dx, double dy) |
| Move the pixel reference position by (dx, dy) Used when persisting and retrieving sub-images. The lsst convention is that Wcs returns pixel position (which is based on position in the parent image), but the fits convention is to return pixel index (which is bases on position in the sub-image). In order that the fits files we create make sense to other fits viewers, we change to the fits convention when writing out images. More... | |
| virtual bool | isPersistable () const |
| Whether the Wcs is persistable using afw::table::io archives. More... | |
Public Member Functions inherited from lsst::daf::base::Persistable | |
| Persistable (void) | |
| virtual | ~Persistable (void) |
| template<class Archive > | |
| void | serialize (Archive &, unsigned int const) |
Public Member Functions inherited from lsst::daf::base::Citizen | |
| Citizen (const std::type_info &) | |
| Citizen (Citizen const &) | |
| ~Citizen () | |
| Citizen & | operator= (Citizen const &) |
| std::string | repr () const |
| Return a string representation of a Citizen. More... | |
| void | markPersistent (void) |
| Mark a Citizen as persistent and not destroyed until process end. More... | |
| memId | getId () const |
| Return the Citizen's ID. More... | |
Public Member Functions inherited from lsst::afw::table::io::Persistable | |
| void | writeFits (std::string const &fileName, std::string const &mode="w") const |
| Write the object to a regular FITS file. More... | |
| void | writeFits (fits::MemFileManager &manager, std::string const &mode="w") const |
| Write the object to a FITS image in memory. More... | |
| void | writeFits (fits::Fits &fitsfile) const |
| Write the object to an already-open FITS object. More... | |
| virtual | ~Persistable () |
Protected Member Functions | |
| virtual std::string | getPersistenceName () const |
| Return the unique name used to persist this object and look up its factory. More... | |
| virtual std::string | getPythonModule () const |
| Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. More... | |
| virtual void | write (OutputArchiveHandle &handle) const |
| Write the object to one or more catalogs. More... | |
| virtual bool | _isSubset (Wcs const &other) const |
| Wcs () | |
| Construct an invalid Wcs given no arguments. More... | |
| Wcs (boost::shared_ptr< lsst::daf::base::PropertySet const > const &fitsMetadata) | |
| Wcs (afw::table::BaseRecord const &record) | |
| Wcs (Wcs const &rhs) | |
| Copy constructor. More... | |
| Wcs & | operator= (const Wcs &) |
| afw::coord::Coord::Ptr | makeCorrectCoord (geom::Angle sky0, geom::Angle sky1) const |
| Given a sky position, use the values stored in ctype and radesys to return the correct sub-class of Coord. More... | |
| afw::coord::Coord::Ptr | convertCoordToSky (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 (boost::shared_ptr< lsst::daf::base::PropertySet const > const &fitsMetadata) |
| Parse a fits header, extract the relevant metadata and create a Wcs object. More... | |
| void | _initWcs () |
| void | _setWcslibParams () |
Protected Member Functions inherited from lsst::afw::table::io::Persistable | |
| Persistable () | |
| Persistable (Persistable const &other) | |
| void | operator= (Persistable const &other) |
Protected Attributes | |
| struct wcsprm * | _wcsInfo |
| int | _nWcsInfo |
| int | _relax |
| Degree of permissiveness for wcspih (0 for strict); see wcshdr.h for details. More... | |
| int | _wcsfixCtrl |
| Do potentially unsafe translations of non-standard unit strings? 0/1 = no/yes. More... | |
| int | _wcshdrCtrl |
| Controls messages to stderr from wcshdr (0 for none); see wcshdr.h for details. More... | |
| int | _nReject |
| coord::CoordSystem | _coordSystem |
Private Member Functions | |
| void | initWcsLib (geom::Point2D const &crval, geom::Point2D const &crpix, Eigen::Matrix2d const &CD, std::string const &ctype1, std::string const &ctype2, double equinox, std::string const &raDecSys, std::string const &cunits1, std::string const &cunits2) |
| Manually initialise a wcs struct using values passed by the constructor. More... | |
| virtual void | pixelToSkyImpl (double pixel1, double pixel2, geom::Angle skyTmp[2]) const |
| virtual geom::Point2D | skyToPixelImpl (geom::Angle sky1, geom::Angle sky2) const |
Friends | |
| class | WcsFactory |
| Wcs::Ptr | makeWcs (boost::shared_ptr< lsst::daf::base::PropertySet > const &fitsMetadata, bool stripMetadata) |
| Create a Wcs of the correct class using a fits header. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from lsst::daf::base::Citizen | |
| static bool | hasBeenCorrupted () |
| Check all allocated blocks for corruption. More... | |
| static memId | getNextMemId () |
| Return the memId of the next object to be allocated. More... | |
| static int | init () |
| Called once when the memory system is being initialised. More... | |
| static int | census (int, memId startingMemId=0) |
| How many active Citizens are there? More... | |
| static void | census (std::ostream &stream, memId startingMemId=0) |
| Print a list of all active Citizens to stream, sorted by ID. More... | |
| static const std::vector < const Citizen * > * | census () |
| Return a (newly allocated) std::vector of active Citizens sorted by ID. More... | |
| static memId | setNewCallbackId (memId id) |
| Call the NewCallback when block is allocated. More... | |
| static memId | setDeleteCallbackId (memId id) |
| Call the current DeleteCallback when block is deleted. More... | |
| static memNewCallback | setNewCallback (memNewCallback func) |
| Set the NewCallback function. More... | |
| static memCallback | setDeleteCallback (memCallback func) |
| Set the DeleteCallback function. More... | |
| static memCallback | setCorruptionCallback (memCallback func) |
| Set the CorruptionCallback function. More... | |
Static Public Member Functions inherited from lsst::afw::table::io::PersistableFacade< Wcs > | |
| static boost::shared_ptr< Wcs > | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. More... | |
| static boost::shared_ptr< Wcs > | readFits (std::string const &fileName, int hdu=0) |
| Read an object from a regular FITS file. More... | |
| static boost::shared_ptr< Wcs > | readFits (fits::MemFileManager &manager, int hdu=0) |
| Read an object from a FITS file in memory. More... | |
Protected Types inherited from lsst::afw::table::io::Persistable | |
| typedef io::OutputArchiveHandle | OutputArchiveHandle |
Implementation of the WCS standard for a any projection.
Implements a single representation of the World Coordinate System of a two dimensional image The standard is defined in two papers
In its simplest sense, Wcs is used to convert from position in the sky (in right ascension and declination) to pixel position on an image (and back again). It is, however, much more general than that and can understand a myriad of different coordinate systems.
A wcs can be constructed from a reference position (crval, crpix) and a translation matrix. Alternatively, if you have the header from a fits file, you can create a Wcs object with the makeWcs() function. This function determines whether your Wcs is one the subset of projection systems that is dealt with specially by Lsst, and creates an object of the correct class. Otherwise, a pointer to a Wcs object is returned. Most astronomical images use tangent plane projection, so makeWcs() returns a TanWcs object pointer
o[ This class is implemented in by calls to the wcslib library by Mark Calabretta http://www.atnf.csiro.au/people/mcalabre/WCS/
Note that we violate the Wcs standard in one minor way. The standard states that none of the CRPIX or CRVAL keywords are required, for the header to be valid, and the appropriate values should be set to 0.0 if the keywords are absent. This is a recipe for painful bugs in analysis, so we violate the standard by insisting that the keywords CRPIX[1,2] and CRVAL[1,2] are present when reading a header (keywords CRPIX1a etc are also accepted)
| typedef boost::shared_ptr<Wcs const> lsst::afw::image::Wcs::ConstPtr |
| typedef boost::shared_ptr<Wcs> lsst::afw::image::Wcs::Ptr |
| Wcs::Wcs | ( | lsst::afw::geom::Point2D const & | crval, |
| lsst::afw::geom::Point2D const & | crpix, | ||
| Eigen::Matrix2d const & | CD, | ||
| std::string const & | ctype1 = "RA---TAN", |
||
| std::string const & | ctype2 = "DEC--TAN", |
||
| double | equinox = 2000, |
||
| std::string const & | raDecSys = "ICRS", |
||
| std::string const & | cunits1 = "deg", |
||
| std::string const & | cunits2 = "deg" |
||
| ) |
Create a Wcs object with some known information.
| crval | The sky position of the reference point |
| crpix | The pixel position corresponding to crval in LSST units |
| CD | Matrix describing transformations from pixel to sky positions |
| ctype1 | Projection system used (see description of Wcs) |
| ctype2 | Projection system used (see description of Wcs) |
| equinox | Equinox of coordinate system, eg 2000 (Julian) or 1950 (Besselian) |
| raDecSys | System used to describe right ascension or declination, e.g FK4, FK5 or ICRS |
| cunits1 | Units of sky position. One of deg, arcmin or arcsec |
| cunits2 | Units of sky position. One of deg, arcmin or arcsec |
Definition at line 148 of file Wcs.cc.
|
protected |
Construct an invalid Wcs given no arguments.
Definition at line 87 of file Wcs.cc.
|
protected |
Create a Wcs from a fits header. Don't call this directly. Use makeWcs() instead, which will figure out which (if any) sub-class of Wcs is appropriate
Definition at line 98 of file Wcs.cc.
|
explicitprotected |
Definition at line 1153 of file Wcs.cc.
|
protected |
Copy constructor.
Definition at line 464 of file Wcs.cc.
|
protected |
Definition at line 117 of file Wcs.cc.
|
protectedvirtual |
Reimplemented in lsst::afw::image::TanWcs.
Definition at line 530 of file Wcs.cc.
|
protected |
Definition at line 68 of file Wcs.cc.
|
virtual |
|
protected |
|
virtual |
| Eigen::Matrix2d Wcs::getCDMatrix | ( | ) | const |
|
virtual |
Return a PropertyList containing FITS header keywords that can be used to save the Wcs.x.
Return the Wcs as a fits header.
Reimplemented in lsst::afw::image::TanWcs.
Definition at line 678 of file Wcs.cc.
| lsst::afw::geom::LinearTransform Wcs::getLinearTransform | ( | ) | const |
Return the linear part of the Wcs, the CD matrix in FITS speak, as an AffineTransform
Definition at line 1058 of file Wcs.cc.
|
protectedvirtual |
Return the unique name used to persist this object and look up its factory.
Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.
Reimplemented from lsst::afw::table::io::Persistable.
Reimplemented in lsst::afw::image::TanWcs.
| GeomPoint Wcs::getPixelOrigin | ( | ) | const |
|
protectedvirtual |
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.
Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.
Will be ignored if empty.
Reimplemented from lsst::afw::table::io::Persistable.
| CoordPtr Wcs::getSkyOrigin | ( | ) | const |
Returns CRVAL.
Return crval. Note that this need not be the centre of the image.
Definition at line 571 of file Wcs.cc.
|
inlinevirtual |
Reimplemented in lsst::afw::image::TanWcs.
|
private |
Manually initialise a wcs struct using values passed by the constructor.
| crval | The sky position of the reference point |
| crpix | The pixel position corresponding to crval in LSST units |
| CD | Matrix describing transformations from pixel to sky positions |
| ctype1 | Projection system used (see description of Wcs) |
| ctype2 | Projection system used (see description of Wcs) |
| equinox | Equinox of coordinate system, eg 2000 (Julian) or 1950 (Besselian) |
| raDecSys | System used to describe right ascension or declination, e.g FK4, FK5 or ICRS |
| cunits1 | Units of sky position. One of deg, arcmin or arcsec |
| cunits2 | Units of sky position. One of deg, arcmin or arcsec |
Definition at line 371 of file Wcs.cc.
|
protected |
Parse a fits header, extract the relevant metadata and create a Wcs object.
Access control for the input header
We want to hack up the input, and in order to do so we need to do a deep copy on it. We only want to do that copy once, and would like to avoid doing it altogether.
Return a readable version of the metadata
Return a writable version of the metadata
Ctor
Definition at line 172 of file Wcs.cc.
| bool Wcs::isFlipped | ( | ) | const |
Does the Wcs follow the convention of North=Up, East=Left?
This actually just measures the sign of the determinant of the CD matrix to determine the "handedness" of the coordinate system.
Returns the orientation of the Wcs
The conventional sense for a Wcs image is to have North up and East to the left, or at least to be able to rotate the image to that orientation. It is possible to create a "flipped" Wcs, where East points right when the image is rotated such that North is up. Flipping a Wcs is akin to producing a mirror image. This function tests whether the image is flipped or not.
It does so by calculating the determinant of the CD (i.e the rotation and scaling) matrix. If this determinant is positive, then the image can be rotated to a position where increasing the right ascension and declination increases the horizontal and vertical pixel position. In this case the image is flipped.
Definition at line 696 of file Wcs.cc.
|
virtual |
Whether the Wcs is persistable using afw::table::io archives.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 1146 of file Wcs.cc.
| lsst::afw::geom::AffineTransform Wcs::linearizePixelToSky | ( | coord::Coord const & | coord, |
| geom::AngleUnit | skyUnit = geom::degrees |
||
| ) | const |
Return the local linear approximation to Wcs::pixelToSky at a point given in sky coordinates.
The local linear approximation is defined such the following is true (ignoring floating-point errors):
(recall that AffineTransform::operator() is matrix multiplication with the augmented point (x,y,1)).
This is currently implemented as a numerical derivative, but we should specialise the Wcs class (or rather its implementation) to handle "simple" cases such as TAN-SIP analytically
| [in] | coord | Position in sky coordinates where transform is desired. |
| [in] | skyUnit | Units to use for sky coordinates; units of matrix elements will be skyUnits/pixel. |
Definition at line 977 of file Wcs.cc.
| lsst::afw::geom::AffineTransform Wcs::linearizePixelToSky | ( | geom::Point2D const & | pix, |
| geom::AngleUnit | skyUnit = geom::degrees |
||
| ) | const |
Return the local linear approximation to Wcs::pixelToSky at a point given in pixel coordinates.
The local linear approximation is defined such the following is true (ignoring floating-point errors):
(recall that AffineTransform::operator() is matrix multiplication with the augmented point (x,y,1)).
This is currently implemented as a numerical derivative, but we should specialise the Wcs class (or rather its implementation) to handle "simple" cases such as TAN-SIP analytically
| [in] | pix | Position in pixel coordinates where transform is desired. |
| [in] | skyUnit | Units to use for sky coordinates; units of matrix elements will be skyUnits/pixel. |
Definition at line 983 of file Wcs.cc.
|
protectedvirtual |
Definition at line 994 of file Wcs.cc.
| lsst::afw::geom::AffineTransform Wcs::linearizeSkyToPixel | ( | coord::Coord const & | coord, |
| geom::AngleUnit | skyUnit = geom::degrees |
||
| ) | const |
Return the local linear approximation to Wcs::skyToPixel at a point given in sky coordinates.
The local linear approximation is defined such the following is true (ignoring floating-point errors):
(recall that AffineTransform::operator() is matrix multiplication with the augmented point (x,y,1)).
This is currently implemented as a numerical derivative, but we should specialise the Wcs class (or rather its implementation) to handle "simple" cases such as TAN-SIP analytically
| [in] | coord | Position in sky coordinates where transform is desired. |
| [in] | skyUnit | Units to use for sky coordinates; units of matrix elements will be pixels/skyUnit. |
Definition at line 1024 of file Wcs.cc.
| lsst::afw::geom::AffineTransform Wcs::linearizeSkyToPixel | ( | geom::Point2D const & | pix, |
| geom::AngleUnit | skyUnit = geom::degrees |
||
| ) | const |
Return the local linear approximation to Wcs::skyToPixel at a point given in pixel coordinates.
The local linear approximation is defined such the following is true (ignoring floating-point errors):
(recall that AffineTransform::operator() is matrix multiplication with the augmented point (x,y,1)).
This is currently implemented as a numerical derivative, but we should specialise the Wcs class (or rather its implementation) to handle "simple" cases such as TAN-SIP analytically
| [in] | pix | Position in pixel coordinates where transform is desired. |
| [in] | skyUnit | Units to use for sky coordinates; units of matrix elements will be pixels/skyUnit. |
Definition at line 1031 of file Wcs.cc.
|
protectedvirtual |
Implementation for the overloaded public linearizeSkyToPixel methods, requiring both a pixel coordinate and the corresponding sky coordinate.
Definition at line 1042 of file Wcs.cc.
|
protected |
Given a sky position, use the values stored in ctype and radesys to return the correct sub-class of Coord.
Definition at line 922 of file Wcs.cc.
|
inline |
| bool Wcs::operator== | ( | Wcs const & | other | ) | const |
Definition at line 496 of file Wcs.cc.
| double Wcs::pixArea | ( | lsst::afw::geom::Point2D | pix00 | ) | const |
Sky area covered by a pixel at position pix00 in units of square degrees.
Sky area covered by a pixel at position pix00. In units of square degrees.
| pix00 | The pixel point where the area is desired |
Definition at line 712 of file Wcs.cc.
| afwGeom::Angle Wcs::pixelScale | ( | ) | const |
Returns the pixel scale [Angle/pixel].
Definition at line 745 of file Wcs.cc.
| CoordPtr Wcs::pixelToSky | ( | double | pixel1, |
| double | pixel2 | ||
| ) | const |
Convert from celestial coordinates to pixel coordinates.
Convert from pixel position to sky coordinates (e.g ra/dec)
Convert a pixel position (e.g x,y) to a celestial coordinate (e.g ra/dec). The output coordinate system depends on the values of CTYPE used to construct the object. For ra/dec, the CTYPES should be RA–TAN and DEC-TAN.
Definition at line 894 of file Wcs.cc.
| CoordPtr Wcs::pixelToSky | ( | lsst::afw::geom::Point2D const & | pixel | ) | const |
Convert from celestial coordiantes to pixel coordinates.
Convert from pixel position to sky coordinates (e.g ra/dec)
Convert a pixel position (e.g x,y) to a celestial coordinate (e.g ra/dec). The output coordinate system depends on the values of CTYPE used to construct the object. For ra/dec, the CTYPES should be RA–TAN and DEC-TAN.
Definition at line 885 of file Wcs.cc.
| void Wcs::pixelToSky | ( | double | pixel1, |
| double | pixel2, | ||
| geom::Angle & | sky1, | ||
| geom::Angle & | sky2 | ||
| ) | const |
Convert from celestial coordiantes to pixel coordinates.
Convert from pixel position to sky coordinates (e.g ra/dec)
Convert a pixel position (e.g x,y) to a celestial coordinate (e.g ra/dec)
Definition at line 909 of file Wcs.cc.
|
privatevirtual |
Reimplemented in lsst::afw::image::TanWcs.
Definition at line 857 of file Wcs.cc.
|
virtual |
|
inline |
| void Wcs::shiftReferencePixel | ( | double | dx, |
| double | dy | ||
| ) |
Move the pixel reference position by (dx, dy) Used when persisting and retrieving sub-images. The lsst convention is that Wcs returns pixel position (which is based on position in the parent image), but the fits convention is to return pixel index (which is bases on position in the sub-image). In order that the fits files we create make sense to other fits viewers, we change to the fits convention when writing out images.
Definition at line 1205 of file Wcs.cc.
| GeomPoint Wcs::skyToIntermediateWorldCoord | ( | coord::Coord const & | coord | ) | const |
Convert from sky coordinates (e.g ra/dec) to intermediate world coordinates.
Intermediate world coordinates are in DEGREES.
Definition at line 812 of file Wcs.cc.
| GeomPoint Wcs::skyToPixel | ( | geom::Angle | sky1, |
| geom::Angle | sky2 | ||
| ) | const |
Convert from sky coordinates (e.g ra/dec) to pixel positions.
ASSUMES the angles are in the appropriate coordinate system for this WCS.
Convert a sky position (e.g RA/Dec) to a pixel position. The exact meaning of sky1, sky2 and the return value depend on the properties of the wcs (i.e the values of CTYPE1 and CTYPE2), but the inputs are usually RA/Dec. The outputs are x and y pixel position.
Definition at line 808 of file Wcs.cc.
| GeomPoint Wcs::skyToPixel | ( | coord::Coord const & | coord | ) | const |
Convert from sky coordinates (e.g ra/dec) to pixel positions.
Definition at line 791 of file Wcs.cc.
|
privatevirtual |
Reimplemented in lsst::afw::image::TanWcs.
Definition at line 752 of file Wcs.cc.
|
protectedvirtual |
Write the object to one or more catalogs.
The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.
Reimplemented from lsst::afw::table::io::Persistable.
Reimplemented in lsst::afw::image::TanWcs.
Definition at line 1128 of file Wcs.cc.
|
friend |
Create a Wcs of the correct class using a fits header.
Set stripMetadata=true to remove processed keywords from the PropertySet.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.5