diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-01-10 22:15:02 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-01-10 22:15:02 (GMT) |
commit | e648fb57d3650612959e48eba7e9e068b50c262f (patch) | |
tree | 9cc3fd23170a0b85954bb09f036ccbe0cbc94eca | |
parent | 9833767da405554103afeb049c45dd41e797c51e (diff) | |
download | blt-e648fb57d3650612959e48eba7e9e068b50c262f.zip blt-e648fb57d3650612959e48eba7e9e068b50c262f.tar.gz blt-e648fb57d3650612959e48eba7e9e068b50c262f.tar.bz2 |
clean up marker code
-rw-r--r-- | tksao/frame/circle.C | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/tksao/frame/circle.C b/tksao/frame/circle.C index afb483d..d9c3662 100644 --- a/tksao/frame/circle.C +++ b/tksao/frame/circle.C @@ -221,24 +221,11 @@ void Circle::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, break; default: if (ptr->hasWCSCel(sys)) { + listRADEC(ptr,center,sys,sky,format); double rr = ptr->mapLenFromRef(annuli_[0][0],sys,Coord::ARCSEC); - switch (format) { - case Coord::DEGREES: - { - Vector vv = ptr->mapFromRef(center,sys,sky); - str << type_ << '(' - << setprecision(10) << vv << ',' - << setprecision(3) << fixed << rr << '"' << ')'; - str.unsetf(ios_base::floatfield); - } - break; - case Coord::SEXAGESIMAL: - listRADEC(ptr,center,sys,sky,format); - str << type_ << '(' << ra << ',' << dec << ',' - << setprecision(3) << fixed << rr << '"' << ')'; - str.unsetf(ios_base::floatfield); - break; - } + str << type_ << '(' << ra << ',' << dec << ',' + << setprecision(3) << fixed << rr << '"' << ')'; + str.unsetf(ios_base::floatfield); } else listNonCel(ptr, str, sys); @@ -340,23 +327,11 @@ void Circle::listSAOtng(ostream& str, break; default: if (ptr->hasWCSCel(sys)) { + listRADEC(ptr,center,sys,sky,format); double rr = ptr->mapLenFromRef(annuli_[0][0],Coord::IMAGE); - switch (format) { - case Coord::DEGREES: - { - Vector vv = ptr->mapFromRef(center,sys,sky); - str << type_ << '(' - << setprecision(10) << vv << ',' - << setprecision(8) << rr << ')'; - } - break; - case Coord::SEXAGESIMAL: - listRADEC(ptr,center,sys,sky,format); - str << type_ << '(' - << ra << ',' << dec << ',' - << setprecision(8) << rr << ')'; - break; - } + str << type_ << '(' + << ra << ',' << dec << ',' + << setprecision(8) << rr << ')'; } } |