summaryrefslogtreecommitdiffstats
path: root/tksao
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-08-01 16:42:40 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-08-01 16:42:40 (GMT)
commitf150aca834519d829cc482fe03be43d054669a3e (patch)
treeb290d0e18222bffac7a82035f40605264ee5db58 /tksao
parentc118ddf8ce5f3b1970f27a31061e719d5e7e9232 (diff)
downloadblt-f150aca834519d829cc482fe03be43d054669a3e.zip
blt-f150aca834519d829cc482fe03be43d054669a3e.tar.gz
blt-f150aca834519d829cc482fe03be43d054669a3e.tar.bz2
use default values for WCS keywords CRVAL, CRPIX, CDELT, CD, PC
Diffstat (limited to 'tksao')
-rw-r--r--tksao/frame/fitsimage.C14
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;
}