diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-01-12 18:23:23 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-01-12 18:23:23 (GMT) |
commit | 8142cb4cc65d4501fdcd8c948986cff3e9d45036 (patch) | |
tree | bf0ff25aa9975b5c0d58567caa5c5fbcab600d5d /tksao/frame/circle.C | |
parent | 10e68f58b7f7d74c4ba02cb0561e2c1d59f6d92b (diff) | |
download | blt-8142cb4cc65d4501fdcd8c948986cff3e9d45036.zip blt-8142cb4cc65d4501fdcd8c948986cff3e9d45036.tar.gz blt-8142cb4cc65d4501fdcd8c948986cff3e9d45036.tar.bz2 |
add precision command tests
Diffstat (limited to 'tksao/frame/circle.C')
-rw-r--r-- | tksao/frame/circle.C | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tksao/frame/circle.C b/tksao/frame/circle.C index 28e9e51..ad906e6 100644 --- a/tksao/frame/circle.C +++ b/tksao/frame/circle.C @@ -224,7 +224,7 @@ void Circle::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, listRADEC(ptr,center,sys,sky,format); double rr = ptr->mapLenFromRef(annuli_[0][0],sys,Coord::ARCSEC); str << type_ << '(' << ra << ',' << dec << ',' - << setprecision(parent->precArcsec) << fixed << rr << '"' << ')'; + << setprecision(parent->precArcsec_) << fixed << rr << '"' << ')'; str.unsetf(ios_base::floatfield); } else @@ -258,7 +258,7 @@ void Circle::listNonCel(FitsImage* ptr, ostream& str, Coord::CoordSystem sys) { Vector vv = ptr->mapFromRef(center,sys); double rr = ptr->mapLenFromRef(annuli_[0][0],sys); - str << type_ << '(' << setprecision(parent->precLinear) << vv << ',' + str << type_ << '(' << setprecision(parent->precLinear_) << vv << ',' << rr << ')'; } @@ -292,7 +292,7 @@ void Circle::listCiao(ostream& str, Coord::CoordSystem sys, int strip) { Vector vv = ptr->mapFromRef(center,Coord::PHYSICAL); double rr = ptr->mapLenFromRef(annuli_[0][0],Coord::PHYSICAL); - str << type_ << '(' << setprecision(parent->precLinear) << vv << ',' + str << type_ << '(' << setprecision(parent->precLinear_) << vv << ',' << rr << ')'; } break; @@ -301,7 +301,7 @@ void Circle::listCiao(ostream& str, Coord::CoordSystem sys, int strip) listRADEC(ptr,center,sys,Coord::FK5,Coord::SEXAGESIMAL); double rr = ptr->mapLenFromRef(annuli_[0][0],sys,Coord::ARCMIN); str << type_ << '(' << ra << ',' << dec << ',' - << setprecision(parent->precArcmin) << fixed << rr << '\'' << ')'; + << setprecision(parent->precArcmin_) << fixed << rr << '\'' << ')'; str.unsetf(ios_base::floatfield); } } @@ -324,7 +324,7 @@ void Circle::listSAOtng(ostream& str, { Vector vv = ptr->mapFromRef(center,Coord::IMAGE); double rr = ptr->mapLenFromRef(annuli_[0][0],Coord::IMAGE); - str << type_ << '(' << setprecision(parent->precLinear) << vv << ',' + str << type_ << '(' << setprecision(parent->precLinear_) << vv << ',' << rr << ')'; } break; @@ -334,7 +334,7 @@ void Circle::listSAOtng(ostream& str, double rr = ptr->mapLenFromRef(annuli_[0][0],Coord::IMAGE); str << type_ << '(' << ra << ',' << dec << ',' - << setprecision(parent->precLinear) << rr << ')'; + << setprecision(parent->precLinear_) << rr << ')'; } } @@ -356,7 +356,7 @@ void Circle::listPros(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, Vector vv = ptr->mapFromRef(center,sys); double rr = ptr->mapLenFromRef(annuli_[0][0],Coord::IMAGE); coord.listProsCoordSystem(str,sys,sky); - str << "; " << type_ << ' ' << setprecision(parent->precLinear) + str << "; " << type_ << ' ' << setprecision(parent->precLinear_) << vv << ' ' << rr; } break; @@ -374,7 +374,7 @@ void Circle::listPros(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, str << ra << ' ' << dec << ' '; break; } - str << setprecision(parent->precArcsec) << fixed << rr << '"'; + str << setprecision(parent->precArcsec_) << fixed << rr << '"'; str.unsetf(ios_base::floatfield); } } @@ -388,7 +388,7 @@ void Circle::listSAOimage(ostream& str, int strip) listSAOimagePre(str); Vector vv = ptr->mapFromRef(center,Coord::IMAGE); - str << type_ << '(' << setprecision(parent->precLinear) << vv << ',' + str << type_ << '(' << setprecision(parent->precLinear_) << vv << ',' << annuli_[0][0] << ')'; listSAOimagePost(str, strip); |