diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-02-14 19:42:14 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-02-14 19:42:14 (GMT) |
commit | 8a37a411bbb24fc25ee584b4830694c0ae3f30c1 (patch) | |
tree | 3dca9075f84a68531d4ced14f9dad86a5a2e5f0d /tksao/frame | |
parent | b2660acdfdb464407b3b4bfbee64229cff89c6de (diff) | |
download | blt-8a37a411bbb24fc25ee584b4830694c0ae3f30c1.zip blt-8a37a411bbb24fc25ee584b4830694c0ae3f30c1.tar.gz blt-8a37a411bbb24fc25ee584b4830694c0ae3f30c1.tar.bz2 |
fix binning physical in case of no WCS
Diffstat (limited to 'tksao/frame')
-rw-r--r-- | tksao/frame/fitsimage.C | 10 |
1 files 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)) && |