Changeset 10954 for trunk/pswarp/src/pswarpDefine.c
- Timestamp:
- Jan 7, 2007, 6:48:50 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpDefine.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpDefine.c
r10952 r10954 23 23 pmFPAfileRead (skycell, view, config); 24 24 25 // XXX this is not a sufficient test 26 view->chip = 0; 27 pmChip *chip = pmFPAviewThisChip (view, skycell->fpa); 28 pmHDU *phu = pmFPAviewThisPHU (view, skycell->fpa); 29 pmHDU *hdu = pmFPAviewThisHDU (view, skycell->fpa); 30 bool bilevelAstrometry = false; 31 if (phu) { 32 char *ctype = psMetadataLookupStr (NULL, phu->header, "CTYPE1"); 33 if (ctype) { 34 bilevelAstrometry = !strcmp (&ctype[4], "-DIS"); 35 } 36 } 37 if (bilevelAstrometry) { 38 pmAstromReadBilevelMosaic (skycell->fpa, phu->header); 39 pmAstromReadBilevelChip (chip, hdu->header); 40 } else { 41 // XXX get pixelScale from recipes. does it matter? 42 float pixelScale = 13.5; 43 pmAstromReadWCS (skycell->fpa, chip, hdu->header, pixelScale); 44 } 45 25 46 // construct the output fpa here 26 47 pmFPAfile *output = psMetadataLookupPtr (NULL, config->files, "PSWARP.OUTPUT");
Note:
See TracChangeset
for help on using the changeset viewer.
