diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-08-12 20:05:50 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-08-12 20:05:50 (GMT) |
commit | d617d2936d32042585a571683ab86bb4ce51a4c1 (patch) | |
tree | cd30c0c77bc06c394be691774a9c908ccae7d9ee /tksao/frame/box.C | |
parent | 39c2c6a9b4f156271ee72313e77eef2d2825bac9 (diff) | |
download | blt-d617d2936d32042585a571683ab86bb4ce51a4c1.zip blt-d617d2936d32042585a571683ab86bb4ce51a4c1.tar.gz blt-d617d2936d32042585a571683ab86bb4ce51a4c1.tar.bz2 |
update marker precision
Diffstat (limited to 'tksao/frame/box.C')
-rw-r--r-- | tksao/frame/box.C | 65 |
1 files changed, 32 insertions, 33 deletions
diff --git a/tksao/frame/box.C b/tksao/frame/box.C index 3dee52f..d440157 100644 --- a/tksao/frame/box.C +++ b/tksao/frame/box.C @@ -359,39 +359,6 @@ void Box::listCiao(ostream& str, Coord::CoordSystem sys, int strip) listCiaoPost(str, strip); } -void Box::listSAOtng(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, - Coord::SkyFormat format, int strip) -{ - FitsImage* ptr = parent->findFits(); - listSAOtngPre(str, strip); - - // radius is always in image coords - switch (sys) { - case Coord::IMAGE: - case Coord::PHYSICAL: - case Coord::DETECTOR: - case Coord::AMPLIFIER: - { - Vector vv = ptr->mapFromRef(center,Coord::IMAGE); - Vector rr = ptr->mapLenFromRef(annuli_[0],Coord::IMAGE); - str << type_ << '(' << setprecision(parent->precLinear_) << vv << ',' - << rr << ',' - << radToDeg(angle) << ')'; - } - break; - default: - if (ptr->hasWCSCel(sys)) { - listWCS(ptr,center,sys,sky,format); - Vector rr = ptr->mapLenFromRef(annuli_[0],Coord::IMAGE); - str << type_ << '(' << ra << ',' << dec << ',' - << setprecision(parent->precLinear_) << rr << ',' - << setprecision(parent->precLinear_) << radToDeg(angle) << ')'; - } - } - - listSAOtngPost(str,strip); -} - void Box::listPros(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, Coord::SkyFormat format, int strip) { @@ -436,6 +403,38 @@ void Box::listPros(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, listProsPost(str, strip); } +void Box::listSAOtng(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, + Coord::SkyFormat format, int strip) +{ + FitsImage* ptr = parent->findFits(); + listSAOtngPre(str, strip); + + str << type_ << '('; + switch (sys) { + case Coord::IMAGE: + case Coord::PHYSICAL: + case Coord::DETECTOR: + case Coord::AMPLIFIER: + str << setprecision(parent->precLinear_) + << ptr->mapFromRef(center,Coord::IMAGE) << ',' + << setprecision(parent->precLenLinear_) + << ptr->mapLenFromRef(annuli_[0],Coord::IMAGE) << ',' + << setprecision(parent->precAngle_) + << radToDeg(angle); + break; + default: + listWCS(ptr,center,sys,sky,format); + str << ra << ',' << dec << ',' + << setprecision(parent->precLinear_) + << ptr->mapLenFromRef(annuli_[0],Coord::IMAGE) << ',' + << setprecision(parent->precAngle_) + << radToDeg(angle); + } + str << ')'; + + listSAOtngPost(str,strip); +} + void Box::listSAOimage(ostream& str, int strip) { FitsImage* ptr = parent->findFits(); |