diff options
Diffstat (limited to 'tksao/frame/ruler.C')
-rw-r--r-- | tksao/frame/ruler.C | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tksao/frame/ruler.C b/tksao/frame/ruler.C index 5900e09..5de7ca3 100644 --- a/tksao/frame/ruler.C +++ b/tksao/frame/ruler.C @@ -495,18 +495,19 @@ void Ruler::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, case Coord::PHYSICAL: case Coord::DETECTOR: case Coord::AMPLIFIER: - listNonCel(ptr, str, sys); + { + Vector v1 = ptr->mapFromRef(p1,sys); + Vector v2 = ptr->mapFromRef(p2,sys); + str << type_ << '(' << setprecision(parent->precLinear_) + << v1 << ',' << v2 << ')'; + } break; default: - if (ptr->hasWCSCel(sys)) { - str << type_ << '('; - listWCS(ptr,p1,sys,sky,format); - str << ra << ',' << dec << ','; - listWCS(ptr,p2,sys,sky,format); - str << ra << ',' << dec << ')'; - } - else - listNonCel(ptr, str, sys); + str << type_ << '('; + listWCS(ptr,p1,sys,sky,format); + str << ra << ',' << dec << ','; + listWCS(ptr,p2,sys,sky,format); + str << ra << ',' << dec << ')'; } if (conj) |