diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-01-10 22:47:06 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-01-10 22:47:06 (GMT) |
commit | bb42e1de109363a9ffe6922e8e2a3e00be98c564 (patch) | |
tree | 9b1a77221c33eb96faeebc22c5160ca6e6374c25 /tksao/frame/vect.C | |
parent | 61f0822f0ca5af76f7f93e650a6cd9eb9a40a861 (diff) | |
download | blt-bb42e1de109363a9ffe6922e8e2a3e00be98c564.zip blt-bb42e1de109363a9ffe6922e8e2a3e00be98c564.tar.gz blt-bb42e1de109363a9ffe6922e8e2a3e00be98c564.tar.bz2 |
clean up marker code
Diffstat (limited to 'tksao/frame/vect.C')
-rw-r--r-- | tksao/frame/vect.C | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/tksao/frame/vect.C b/tksao/frame/vect.C index 0c2bcb5..008249c 100644 --- a/tksao/frame/vect.C +++ b/tksao/frame/vect.C @@ -68,27 +68,13 @@ void Vect::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, break; default: if (ptr->hasWCSCel(sys)) { + listRADEC(ptr,p1,sys,sky,format); double rr = ptr->mapLenFromRef((p2-p1).length(),sys,Coord::ARCSEC); double aa = parent->mapAngleFromRef((p2-p1).angle(),sys,sky); - switch (format) { - case Coord::DEGREES: - { - Vector v1 = ptr->mapFromRef(p1,sys,sky); - str << type_ << '(' - << setprecision(10) << v1 << ',' - << setprecision(3) << fixed << rr << '"' << ','; - str.unsetf(ios_base::floatfield); - str << setprecision(8) << radToDeg(aa) << ')'; - } - break; - case Coord::SEXAGESIMAL: - listRADEC(ptr,p1,sys,sky,format); - str << type_ << '(' << ra << ',' << dec << ',' - << setprecision(3) << fixed << rr << '"' << ','; - str.unsetf(ios_base::floatfield); - str << setprecision(8) << radToDeg(aa) << ')'; - break; - } + str << type_ << '(' << ra << ',' << dec << ',' + << setprecision(3) << fixed << rr << '"' << ','; + str.unsetf(ios_base::floatfield); + str << setprecision(8) << radToDeg(aa) << ')'; } else listNonCel(ptr, str, sys); |