diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-08-16 16:52:55 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-08-16 16:52:55 (GMT) |
commit | 33b8f9fd852477630addbf48a59d01849df5a096 (patch) | |
tree | 37188a077cc674a1afcd952bc8126283d9d918b3 /tksao/frame/basecommand.C | |
parent | 2e9a4d3293f9a27883d525abaaa5459a67b063af (diff) | |
download | blt-33b8f9fd852477630addbf48a59d01849df5a096.zip blt-33b8f9fd852477630addbf48a59d01849df5a096.tar.gz blt-33b8f9fd852477630addbf48a59d01849df5a096.tar.bz2 |
simplify wcs code
Diffstat (limited to 'tksao/frame/basecommand.C')
-rw-r--r-- | tksao/frame/basecommand.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tksao/frame/basecommand.C b/tksao/frame/basecommand.C index 2c60ee9..b3ad310 100644 --- a/tksao/frame/basecommand.C +++ b/tksao/frame/basecommand.C @@ -1783,6 +1783,16 @@ 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; + */ printDouble(currentContext->fits->mapFromImage3d(ss,sys)); } else |