summaryrefslogtreecommitdiffstats
path: root/tksao/frame/fitsmap.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-08-01 18:21:12 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-08-01 18:21:12 (GMT)
commit8da52eb965f95813fd58cf48ddb78acdc76cad15 (patch)
tree473f59696171a2727741918fb1a8fc5d2b4dbf27 /tksao/frame/fitsmap.C
parentae4dd094bc60432a88a9176f96b89150394faef3 (diff)
downloadblt-8da52eb965f95813fd58cf48ddb78acdc76cad15.zip
blt-8da52eb965f95813fd58cf48ddb78acdc76cad15.tar.gz
blt-8da52eb965f95813fd58cf48ddb78acdc76cad15.tar.bz2
remove old wcs code
Diffstat (limited to 'tksao/frame/fitsmap.C')
-rw-r--r--tksao/frame/fitsmap.C32
1 files changed, 0 insertions, 32 deletions
diff --git a/tksao/frame/fitsmap.C b/tksao/frame/fitsmap.C
index 8b34f35..432fdba 100644
--- a/tksao/frame/fitsmap.C
+++ b/tksao/frame/fitsmap.C
@@ -59,7 +59,6 @@ Vector FitsImage::mapToRef(const Vector& vv, Coord::CoordSystem in,
return Vector();
}
-#ifndef OLDWCS
Vector3d FitsImage::mapFromRef(const Vector3d& vv, Coord::CoordSystem out,
Coord::SkyFrame sky)
{
@@ -93,7 +92,6 @@ Vector3d FitsImage::mapToRef(const Vector3d& vv, Coord::CoordSystem in,
return Vector3d();
}
-#endif
void FitsImage::listFromRef(ostream& str, const Vector& vv,
Coord::CoordSystem sys, Coord::SkyFrame sky,
@@ -182,13 +180,7 @@ Vector FitsImage::mapLenFromRef(const Vector& vv, Coord::CoordSystem sys,
return mapLen(vv,refToPhysical * physicalToDetector);
default:
if (hasWCS(sys)) {
-#ifdef OLDWCS
- Vector cd = getWCScdelt(sys);
- Vector in = mapLen(vv,refToImage);
- Vector out = Vector(in[0]*cd[0], in[1]*cd[1]).abs();
-#else
Vector out = vv*getWCSSize(sys);
-#endif
if (hasWCSCel(sys)) {
switch (dist) {
case Coord::DEGREE:
@@ -229,13 +221,7 @@ Vector FitsImage::mapLenToRef(const Vector& vv, Coord::CoordSystem sys,
return mapLen(vv,detectorToPhysical * physicalToRef);
default:
if (hasWCS(sys)) {
-#ifdef OLDWCS
- Vector cd = getWCScdelt(sys);
- Vector in = mapLen(vv,refToImage);
- Vector out = Vector(in[0]/cd[0], in[1]/cd[1]).abs();
-#else
Vector out = vv/getWCSSize(sys);
-#endif
if (hasWCSCel(sys)) {
switch (dist) {
case Coord::DEGREE:
@@ -421,23 +407,6 @@ void FitsImage::listDistFromRef(ostream& str,
// 3D
-#ifdef OLDWCS
-double FitsImage::mapFromImage3d(double dd, Coord::CoordSystem sys)
-{
- if (sys >= Coord::WCS)
- return pix2wcsx(dd,sys);
- else
- return dd;
-}
-
-double FitsImage::mapToImage3d(double dd, Coord::CoordSystem sys)
-{
- if (sys >= Coord::WCS)
- return wcs2pixx(dd,sys);
- else
- return dd;
-}
-#else
double FitsImage::mapFromImage3d(double dd, Coord::CoordSystem sys)
{
if (hasWCS(sys)) {
@@ -460,4 +429,3 @@ double FitsImage::mapToImage3d(double dd, Coord::CoordSystem sys)
else
return dd;
}
-#endif