Changeset 25027 for branches/pap/ppSub/src/ppSubReadoutInverse.c
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ppSub
- Property svn:mergeinfo deleted
-
branches/pap/ppSub/src/ppSubReadoutInverse.c
r23763 r25027 7 7 8 8 #include "ppSub.h" 9 10 9 11 10 bool ppSubReadoutInverse(pmConfig *config) … … 24 23 invRO->data_exists = invRO->parent->data_exists = invRO->parent->parent->data_exists = true; 25 24 26 pmConceptsCopyFPA(invRO->parent->parent->parent, outRO->parent->parent->parent, true, true); 25 // Get concepts from reference 26 pmFPAfile *refFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.REF.CONV"); // File with concepts 27 pmFPA *invFPA = invRO->parent->parent->parent; // Inverse FPA 28 pmConceptsCopyFPA(invFPA, refFile->fpa, true, true); 29 30 // Get astrometry from (forward) subtraction 31 pmChip *outChip = outRO->parent->parent; // Output chip 32 pmFPA *outFPA = outChip->parent; // Output FPA 33 pmChip *invChip = invRO->parent->parent; // Inverse chip 34 pmHDU *invHDU = invFPA->hdu; // Inverse HDU 35 if (!pmAstromWriteWCS(invHDU->header, outFPA, outChip, WCS_TOLERANCE)) { 36 psError(PS_ERR_UNKNOWN, false, "Unable to write WCS astrometry to PPSUB.INVERSE."); 37 return false; 38 } 39 // Read from newly written astrometry so that it exists in the "inverse" FPA (for sources) 40 if (!pmAstromReadWCS(invFPA, invChip, invHDU->header, 1.0)) { 41 psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry."); 42 return false; 43 } 27 44 28 45 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
