Changeset 24154 for branches/pap_magic/ppSub/src/ppSubReadoutInverse.c
- Timestamp:
- May 12, 2009, 6:15:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_magic/ppSub/src/ppSubReadoutInverse.c
r23763 r24154 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 pmChip *outChip = outRO->parent->parent; // Output chip 26 pmFPA *outFPA = outChip->parent; // Output FPA 27 pmFPA *invFPA = invRO->parent->parent->parent; // Inverse FPA 28 29 pmConceptsCopyFPA(invFPA, outFPA, true, true); 30 31 #if 0 32 // Copy astrometry over 33 pmHDU *outHDU = outFPA->hdu; // Output HDU 34 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 #endif 45 pmHDU *invHDU = invFPA->hdu; // Inverse HDU 46 if (!pmAstromWriteWCS(invHDU->header, outFPA, outChip, WCS_TOLERANCE)) { 47 psError(PS_ERR_UNKNOWN, false, "Unable to write WCS astrometry to PPSUB.INVERSE."); 48 return false; 49 } 27 50 28 51 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
