diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-01-11 18:49:39 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-01-11 18:49:39 (GMT) |
commit | 818811db79cb8a075eea1ead8df73bd465b9a135 (patch) | |
tree | 56be8cf413586ddc96d4dd8ebed5113ad04e2eff /tksao/frame/basecommand.C | |
parent | 59967dc4830146ff53bc64a33c00c70ef6021cb3 (diff) | |
download | blt-818811db79cb8a075eea1ead8df73bd465b9a135.zip blt-818811db79cb8a075eea1ead8df73bd465b9a135.tar.gz blt-818811db79cb8a075eea1ead8df73bd465b9a135.tar.bz2 |
add support for variable precision
Diffstat (limited to 'tksao/frame/basecommand.C')
-rw-r--r-- | tksao/frame/basecommand.C | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tksao/frame/basecommand.C b/tksao/frame/basecommand.C index cf9ccad..50e2eea 100644 --- a/tksao/frame/basecommand.C +++ b/tksao/frame/basecommand.C @@ -1760,17 +1760,16 @@ void Base::getFitsSizeCmd(Coord::CoordSystem sys, Coord::SkyFrame sky, keyContext->fits->getWCSDist(wbb.ll,wbb.ul(),sys)); ostringstream str; - str << fixed; switch (dist) { case Coord::DEGREE: - str << setprecision(7); + str << setprecision(10); break; case Coord::ARCMIN: - str << setprecision(5); + str << setprecision(5) << fixed; ss *= 60; break; case Coord::ARCSEC: - str << setprecision(3); + str << setprecision(3) << fixed; ss *= 60*60; break; } |