Changeset 24155
- Timestamp:
- May 12, 2009, 6:17:35 PM (17 years ago)
- Location:
- trunk/ppSub
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
src/ppSub.h (modified) (1 diff)
-
src/ppSubReadoutInverse.c (modified) (2 diffs)
-
src/ppSubReadoutSubtract.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub
- Property svn:mergeinfo changed
/branches/pap_magic/ppSub (added) merged: 24154
- Property svn:mergeinfo changed
-
trunk/ppSub/src/ppSub.h
r23753 r24155 24 24 25 25 #define PPSUB_RECIPE "PPSUB" /// Name of the recipe to use 26 #define WCS_TOLERANCE 0.001 // Tolerance for WCS 26 27 27 28 // Output files, for activation/deactivation -
trunk/ppSub/src/ppSubReadoutInverse.c
r23763 r24155 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; -
trunk/ppSub/src/ppSubReadoutSubtract.c
r23740 r24155 20 20 21 21 #include "ppSub.h" 22 23 #define WCS_TOLERANCE 0.001 // Tolerance for WCS24 22 25 23 bool ppSubReadoutSubtract(pmConfig *config)
Note:
See TracChangeset
for help on using the changeset viewer.
