From 8a37a411bbb24fc25ee584b4830694c0ae3f30c1 Mon Sep 17 00:00:00 2001 From: William Joye Date: Thu, 14 Feb 2019 14:42:14 -0500 Subject: fix binning physical in case of no WCS --- tksao/frame/fitsimage.C | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tksao/frame/fitsimage.C b/tksao/frame/fitsimage.C index bfd0cbf..d5db1ce 100644 --- a/tksao/frame/fitsimage.C +++ b/tksao/frame/fitsimage.C @@ -1065,7 +1065,8 @@ void FitsImage::initWCS(FitsHead* hd) if (ast_) astAnnul(ast_); ast_ =NULL; - if (encoding_) + + if (encoding_) delete [] encoding_; encoding_ =NULL; @@ -1146,9 +1147,12 @@ void FitsImage::initWCS(FitsHead* hd) encoding_ =NULL; ast_ = fits2ast(hd); - if (!ast_) + if (!ast_) { + // reset to process LTMV keywords + keyLTMV =0; return; - + } + // special case if (astGetI(ast_,"Naxes") == 2 && astIsASkyFrame(astGetFrame(ast_,AST__CURRENT)) && -- cgit v0.12