summaryrefslogtreecommitdiffstats
path: root/tksao/frame/compass.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-08-10 20:48:03 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-08-10 20:48:03 (GMT)
commit2c2b823e0a272367d0a81cda70f9ba50cc80274e (patch)
tree3811c038b6a0c81158e5440d76946ab78baf03bb /tksao/frame/compass.C
parent5dd5295407412f6f10ea2393972a9698b1f749c6 (diff)
downloadblt-2c2b823e0a272367d0a81cda70f9ba50cc80274e.zip
blt-2c2b823e0a272367d0a81cda70f9ba50cc80274e.tar.gz
blt-2c2b823e0a272367d0a81cda70f9ba50cc80274e.tar.bz2
simplify marker code
Diffstat (limited to 'tksao/frame/compass.C')
-rw-r--r--tksao/frame/compass.C12
1 files changed, 7 insertions, 5 deletions
diff --git a/tksao/frame/compass.C b/tksao/frame/compass.C
index 16dee8a..7dc004b 100644
--- a/tksao/frame/compass.C
+++ b/tksao/frame/compass.C
@@ -556,26 +556,28 @@ void Compass::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky,
double rr = ptr->mapLenFromRef(radius,sys,Coord::ARCSEC);
+ str << type_ << '(';
switch (sys) {
case Coord::IMAGE:
case Coord::PHYSICAL:
case Coord::DETECTOR:
case Coord::AMPLIFIER:
- str << type_ << '(' << setprecision(parent->precLinear_)
+ str << setprecision(parent->precLinear_)
<< ptr->mapFromRef(center,sys) << ','
- << rr << ')';
+ << rr;
break;
default:
listWCS(ptr,center,sys,sky,format);
- str << type_ << '(' << ra << ',' << dec << ',' ;
+ str << ra << ',' << dec << ',' ;
if (ptr->hasWCSCel(sys)) {
- str << setprecision(parent->precArcsec_) << fixed << rr << '"' << ')';
+ str << setprecision(parent->precArcsec_) << fixed << rr << '"';
str.unsetf(ios_base::floatfield);
}
else
- str << setprecision(parent->precLinear_) << rr << ')';
+ str << setprecision(parent->precLinear_) << rr;
}
+ str << ')';
if (conj)
str << " ||";