summaryrefslogtreecommitdiffstats
path: root/tksao/frame/ellipse.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-08-14 18:16:33 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-08-14 18:16:33 (GMT)
commit581a2d821d4f1625a37d3df04cdd0c38a4c5a39f (patch)
tree4aaf831835bb355b45c02644a2ff527da4756347 /tksao/frame/ellipse.C
parent24f9d727a3735908982ef20cbde4e628abc4e5ac (diff)
downloadblt-581a2d821d4f1625a37d3df04cdd0c38a4c5a39f.zip
blt-581a2d821d4f1625a37d3df04cdd0c38a4c5a39f.tar.gz
blt-581a2d821d4f1625a37d3df04cdd0c38a4c5a39f.tar.bz2
simplify marker code
Diffstat (limited to 'tksao/frame/ellipse.C')
-rw-r--r--tksao/frame/ellipse.C20
1 files changed, 7 insertions, 13 deletions
diff --git a/tksao/frame/ellipse.C b/tksao/frame/ellipse.C
index bfb08f8..5a4bb31 100644
--- a/tksao/frame/ellipse.C
+++ b/tksao/frame/ellipse.C
@@ -236,9 +236,6 @@ void Ellipse::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky,
FitsImage* ptr = parent->findFits(sys,center);
listPre(str, sys, sky, ptr, strip, 0);
- Vector rr = ptr->mapLenFromRef(annuli_[0],sys,Coord::ARCSEC);
- double aa = parent->mapAngleFromRef(angle,sys,sky);
-
str << type_ << '(';
switch (sys) {
case Coord::IMAGE:
@@ -253,16 +250,13 @@ void Ellipse::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky,
break;
default:
listWCS(ptr,center,sys,sky,format);
- str << ra << ',' << dec << ',' ;
-
- if (ptr->hasWCSCel(sys)) {
- str << setprecision(parent->precArcsec_) << fixed << setunit('"')
- << rr << ',';
- str.unsetf(ios_base::floatfield);
- }
- else
- str << setprecision(parent->precLenLinear_) << rr << ',' ;
- str << setprecision(parent->precAngle_) << radToDeg(aa);
+ str << ra << ',' << dec;
+ str << ',';
+ if (ptr->hasWCSCel(sys))
+ str << setunit('"');
+ ptr->listLenFromRef(str,annuli_[0],sys,Coord::ARCSEC);
+ str << ',';
+ parent->listAngleFromRef(str,angle,sys,sky);
}
str << ')';