summaryrefslogtreecommitdiffstats
path: root/tksao/frame/basecommand.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-08-16 20:37:55 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-08-16 20:37:55 (GMT)
commite45aee40eb4f7837acae8808dd2343dad32f9fe0 (patch)
treec7ab0e58cae22259046bf9cd21d12db6025b5213 /tksao/frame/basecommand.C
parent4ea7342aad40acc50b455dc6ed1d2d9c3154588e (diff)
downloadblt-e45aee40eb4f7837acae8808dd2343dad32f9fe0.zip
blt-e45aee40eb4f7837acae8808dd2343dad32f9fe0.tar.gz
blt-e45aee40eb4f7837acae8808dd2343dad32f9fe0.tar.bz2
simplify wcs code
Diffstat (limited to 'tksao/frame/basecommand.C')
-rw-r--r--tksao/frame/basecommand.C13
1 files changed, 4 insertions, 9 deletions
diff --git a/tksao/frame/basecommand.C b/tksao/frame/basecommand.C
index b3ad310..bc9a97d 100644
--- a/tksao/frame/basecommand.C
+++ b/tksao/frame/basecommand.C
@@ -1783,16 +1783,11 @@ void Base::getFitsSliceCmd(int id, Coord::CoordSystem sys)
{
if (currentContext->fits) {
int ss = currentContext->slice(id);
- /*
+
FitsImage* ptr = currentContext->fits;
- Vector cc = ptr->center();
- Vector3d dd = Vector3d(cc,ss) * Translate3d(-.5,-.5,-.5);
- cerr << ptr->mapFromRef(dd,sys,Coord::FK5,Coord::SEXAGESIMAL)
- << '='
- << ptr->mapFromRef(dd,sys)
- << '='
- << ptr->mapFromImage3d(ss,sys) << endl;
- */
+ // Vector cc = ptr->center();
+ // Vector3d dd = Vector3d(cc,ss) * Translate3d(-.5,-.5,-.5);
+ // cerr << ptr->mapFromRef(dd,sys,Coord::FK5,Coord::SEXAGESIMAL) << endl;
printDouble(currentContext->fits->mapFromImage3d(ss,sys));
}
else