- Timestamp:
- Jun 25, 2009, 2:00:56 PM (17 years ago)
- Location:
- branches/eam_branches/20090522
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090522
- Property svn:mergeinfo changed
-
branches/eam_branches/20090522/ppSub
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/20090522/ppSub/src/ppSubReadoutInverse.c
r24155 r24557 23 23 invRO->data_exists = invRO->parent->data_exists = invRO->parent->parent->data_exists = true; 24 24 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 25 31 pmChip *outChip = outRO->parent->parent; // Output chip 26 32 pmFPA *outFPA = outChip->parent; // Output FPA 27 pmFPA *invFPA = invRO->parent->parent->parent; // Inverse FPA28 29 pmConceptsCopyFPA(invFPA, outFPA, true, true);30 31 #if 032 // Copy astrometry over33 pmHDU *outHDU = outFPA->hdu; // Output HDU34 33 pmChip *invChip = invRO->parent->parent; // Inverse chip 35 psFree(view);36 if (!outHDU || !inHDU) {37 psError(PS_ERR_UNKNOWN, false, "Unable to find HDU at FPA level to copy astrometry.");38 return false;39 }40 if (!pmAstromReadWCS(invFPA, invChip, outHDU->header, 1.0)) {41 psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry from PPSUB.OUTPUT.");42 return false;43 }44 #endif45 34 pmHDU *invHDU = invFPA->hdu; // Inverse HDU 46 35 if (!pmAstromWriteWCS(invHDU->header, outFPA, outChip, WCS_TOLERANCE)) { … … 48 37 return false; 49 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 } 50 44 51 45 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
