diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-08-01 16:42:40 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-08-01 16:42:40 (GMT) |
commit | f150aca834519d829cc482fe03be43d054669a3e (patch) | |
tree | b290d0e18222bffac7a82035f40605264ee5db58 | |
parent | c118ddf8ce5f3b1970f27a31061e719d5e7e9232 (diff) | |
download | blt-f150aca834519d829cc482fe03be43d054669a3e.zip blt-f150aca834519d829cc482fe03be43d054669a3e.tar.gz blt-f150aca834519d829cc482fe03be43d054669a3e.tar.bz2 |
use default values for WCS keywords CRVAL, CRPIX, CDELT, CD, PC
-rw-r--r-- | tksao/frame/fitsimage.C | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tksao/frame/fitsimage.C b/tksao/frame/fitsimage.C index 0c74fc4..91497ab 100644 --- a/tksao/frame/fitsimage.C +++ b/tksao/frame/fitsimage.C @@ -3364,19 +3364,7 @@ AstFrameSet* FitsImage::buildast(int ii, FitsHead* hd, FitsHead* prim) strcpy(ctype2, "CTYPE2 "); ctype1[6] = ctype2[6] = alt; - char crval1[8], crval2[8]; - strcpy(crval1, "CRVAL1 "); - strcpy(crval2, "CRVAL2 "); - crval1[6] = crval2[6] = alt; - - char crpix1[8], crpix2[8]; - strcpy(crpix1, "CRPIX1 "); - strcpy(crpix2, "CRPIX2 "); - crpix1[6] = crpix2[6] = alt; - - if (hd->find(ctype1) && hd->find(ctype2) && - hd->find(crval1) && hd->find(crval2) && - hd->find(crpix1) && hd->find(crpix2)) { + if (hd->find(ctype1) && hd->find(ctype2)) { wcs2ast(ii,hd,prim,chan); fromwcs =1; } |