Changeset 34272 for trunk/ppSub/src/ppSubReadoutInverse.c
- Timestamp:
- Aug 1, 2012, 2:33:06 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubReadoutInverse.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubReadoutInverse.c
r32697 r34272 30 30 pmFPAfile *refFile; 31 31 if (noConvolve) { 32 refFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.REF"); // File with concepts32 refFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.REF"); // File with concepts 33 33 } 34 34 else { 35 refFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.REF.CONV"); // File with concepts35 refFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.REF.CONV"); // File with concepts 36 36 } 37 37 pmFPA *invFPA = invRO->parent->parent->parent; // Inverse FPA … … 44 44 pmHDU *invHDU = invFPA->hdu; // Inverse HDU 45 45 if (!pmAstromWriteWCS(invHDU->header, outFPA, outChip, WCS_TOLERANCE)) { 46 psError(psErrorCodeLast(), false, "Unable to write WCS astrometry to PPSUB.INVERSE.");46 psError(psErrorCodeLast(), false, "Unable to write WCS astrometry to PPSUB.INVERSE."); 47 47 psFree(view); 48 return false;48 return false; 49 49 } 50 50 // Read from newly written astrometry so that it exists in the "inverse" FPA (for sources) 51 51 if (!pmAstromReadWCS(invFPA, invChip, invHDU->header, 1.0)) { 52 psError(psErrorCodeLast(), false, "Unable to read WCS astrometry.");52 psError(psErrorCodeLast(), false, "Unable to read WCS astrometry."); 53 53 psFree(view); 54 return false;54 return false; 55 55 } 56 56
Note:
See TracChangeset
for help on using the changeset viewer.
