From f150aca834519d829cc482fe03be43d054669a3e Mon Sep 17 00:00:00 2001 From: William Joye Date: Tue, 1 Aug 2017 12:42:40 -0400 Subject: use default values for WCS keywords CRVAL, CRPIX, CDELT, CD, PC --- tksao/frame/fitsimage.C | 14 +------------- 1 file changed, 1 insertion(+), 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; } -- cgit v0.12