diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-08-12 18:44:01 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-08-12 18:44:01 (GMT) |
commit | 2dc6fd7bdb85b8e0c901b4978555217b5442df90 (patch) | |
tree | 3301065fc043a78bfb2e6d5692bde3e5492a315c /tksao/frame/projection.C | |
parent | 2b0d1fc5f0859859e21d15732fb0847aefdd0397 (diff) | |
download | blt-2dc6fd7bdb85b8e0c901b4978555217b5442df90.zip blt-2dc6fd7bdb85b8e0c901b4978555217b5442df90.tar.gz blt-2dc6fd7bdb85b8e0c901b4978555217b5442df90.tar.bz2 |
update wcs precision
Diffstat (limited to 'tksao/frame/projection.C')
-rw-r--r-- | tksao/frame/projection.C | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tksao/frame/projection.C b/tksao/frame/projection.C index 9a3c377..2f4d0c9 100644 --- a/tksao/frame/projection.C +++ b/tksao/frame/projection.C @@ -342,7 +342,7 @@ void Projection::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, FitsImage* ptr = parent->findFits(sys,center); listPre(str, sys, sky, ptr, strip, 1); - double ww = ptr->mapLenFromRef(width,sys,Coord::ARCSEC); + double rr = ptr->mapLenFromRef(width,sys,Coord::ARCSEC); str << type_ << '('; switch (sys) { @@ -351,9 +351,8 @@ void Projection::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, case Coord::DETECTOR: case Coord::AMPLIFIER: str << setprecision(parent->precLinear_) - << ptr->mapFromRef(p1,sys) << ',' - << ptr->mapFromRef(p2,sys) << ',' - << ww; + << ptr->mapFromRef(p1,sys) << ',' << ptr->mapFromRef(p2,sys) << ',' + << setprecision(parent->precLenLinear_) << rr; break; default: listWCS(ptr,p1,sys,sky,format); @@ -362,11 +361,11 @@ void Projection::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, str << ra << ',' << dec << ','; if (ptr->hasWCSCel(sys)) { - str << setprecision(parent->precArcsec_) << fixed << ww << '"'; + str << setprecision(parent->precArcsec_) << fixed << rr << '"'; str.unsetf(ios_base::floatfield); } else - str << setprecision(parent->precLinear_) << ww; + str << setprecision(parent->precLenLinear_) << rr; } str << ')'; |