From 1d739044cc07a7f3f129ee839a0f249702ad639f Mon Sep 17 00:00:00 2001 From: William Joye Date: Fri, 1 Dec 2017 14:38:22 -0500 Subject: update AST WCS --- tksao/frame/fitsimage.C | 19 +++++++++---------- tksao/frame/fitsimage.h | 8 ++++---- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/tksao/frame/fitsimage.C b/tksao/frame/fitsimage.C index 6a0a9ac..43ba208 100644 --- a/tksao/frame/fitsimage.C +++ b/tksao/frame/fitsimage.C @@ -3329,7 +3329,8 @@ Vector3d FitsImage::wcs2pix(const Vector3d& vv, Coord::CoordSystem sys, #endif #ifndef NEWWCS -double FitsImage::getWCSDist(Vector vv1, Vector vv2, Coord::CoordSystem sys) +double FitsImage::getWCSDist(const Vector& vv1, const Vector& vv2, + Coord::CoordSystem sys) { int ss = sys-Coord::WCS; if (!(ss>=0 && ast_ && ast_[ss])) @@ -3342,7 +3343,8 @@ double FitsImage::getWCSDist(Vector vv1, Vector vv2, Coord::CoordSystem sys) wcsDistance(ast_[ss], vv1, vv2); } #else -double FitsImage::getWCSDist(Vector vv1, Vector vv2, Coord::CoordSystem sys) +double FitsImage::getWCSDist(const Vector& vv1, const Vector& vv2, + Coord::CoordSystem sys) { if (!hasWCS(sys)) return 0; @@ -3406,9 +3408,7 @@ int FitsImage::hasWCSCel(Coord::CoordSystem sys) return 0; } - #else - int FitsImage::hasWCS(Coord::CoordSystem sys) { if (!newast_ || sys