Changeset 24240 for trunk/ppSub/src/ppSubReadoutInverse.c
- Timestamp:
- May 26, 2009, 11:01:13 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubReadoutInverse.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubReadoutInverse.c
r24155 r24240 29 29 pmConceptsCopyFPA(invFPA, outFPA, true, true); 30 30 31 #if 032 // Copy astrometry over33 pmHDU *outHDU = outFPA->hdu; // Output HDU34 31 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 32 pmHDU *invHDU = invFPA->hdu; // Inverse HDU 46 33 if (!pmAstromWriteWCS(invHDU->header, outFPA, outChip, WCS_TOLERANCE)) { … … 48 35 return false; 49 36 } 37 // Read from newly written astrometry so that it exists in the "inverse" FPA (for sources) 38 if (!pmAstromReadWCS(invFPA, invChip, invHDU->header, 1.0)) { 39 psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry."); 40 return false; 41 } 50 42 51 43 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
