From 218bcc3293086d26d4b822cfb4a1b11237759a08 Mon Sep 17 00:00:00 2001 From: William Joye Date: Wed, 29 Nov 2017 16:03:24 -0500 Subject: update AST WCS --- tksao/frame/fitsimage.C | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/tksao/frame/fitsimage.C b/tksao/frame/fitsimage.C index cdb6f80..49eb5df 100644 --- a/tksao/frame/fitsimage.C +++ b/tksao/frame/fitsimage.C @@ -3566,8 +3566,30 @@ double FitsImage::wcs2pixx(double in, Coord::CoordSystem sys, int aa) int FitsImage::hasWCS3D(Coord::CoordSystem sys, int aa) { + if (!newast_ || sys=2&&aa=Coord::WCS && wcsx_[ss]) ? 1 : 0; + int nn = astGetI(newast_,"nframe"); + char cc = ' '; + if (ss) + cc = ss+'@'; + + for (int ii=0; ii2 ? 1:0; + } + } + + astEnd; // now, clean up memory + return 0; } double FitsImage::pix2wcsx(double in, Coord::CoordSystem sys, int aa) -- cgit v0.12