summaryrefslogtreecommitdiffstats
path: root/tksao/frame/fitsmap.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-08-18 18:54:37 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-08-18 18:54:37 (GMT)
commit5597764b8eea8a9d1222347c1c8c170f5ca90d97 (patch)
tree9f12d489d2285272c8395140c2443948a575aa66 /tksao/frame/fitsmap.C
parent7da217d72bef995f506959b027cbf543c02eaa6a (diff)
downloadblt-5597764b8eea8a9d1222347c1c8c170f5ca90d97.zip
blt-5597764b8eea8a9d1222347c1c8c170f5ca90d97.tar.gz
blt-5597764b8eea8a9d1222347c1c8c170f5ca90d97.tar.bz2
simplify crop code
Diffstat (limited to 'tksao/frame/fitsmap.C')
-rw-r--r--tksao/frame/fitsmap.C25
1 files changed, 0 insertions, 25 deletions
diff --git a/tksao/frame/fitsmap.C b/tksao/frame/fitsmap.C
index 97708ac..a1434d1 100644
--- a/tksao/frame/fitsmap.C
+++ b/tksao/frame/fitsmap.C
@@ -476,28 +476,3 @@ void FitsImage::listDistFromRef(ostream& str,
str << "0 0";
}
}
-
-// 3D
-
-double FitsImage::mapFromImage3d(double dd, Coord::CoordSystem sys)
-{
- if (hasWCS(sys)) {
- Vector3d cc(center(),dd);
- Vector3d rr = pix2wcs(cc,sys,Coord::FK5);
- return rr[2];
- }
- else
- return dd;
-}
-
-double FitsImage::mapToImage3d(double dd, Coord::CoordSystem sys)
-{
- if (hasWCS(sys)) {
- Vector3d cc(center(),1);
- Vector3d wcc = pix2wcs(cc,sys,Coord::FK5);
- Vector3d rr = wcs2pix(Vector3d(wcc[0],wcc[1],dd),sys,Coord::FK5);
- return rr[2];
- }
- else
- return dd;
-}