diff options
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 << ')'; |