- Timestamp:
- Dec 18, 2012, 5:56:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121130/ppStack/src/ppStackUpdateHeader.c
r31158 r34838 6 6 7 7 pmReadout *outRO = options->outRO; // Output readout 8 pmReadout *expRO = options->expRO; 8 9 9 10 // Propagate WCS 10 11 bool wcsDone = false; // Have we done the WCS? 11 12 for (int i = 0; i < options->num && !wcsDone; i++) { 12 if (options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i]) {13 if ((options->inputMask)&&(options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i])) { 13 14 continue; 14 15 } … … 123 124 snprintf (field, 64, "AIR_%04d", i); 124 125 psMetadataAddF32(hdu->header, PS_LIST_TAIL, field, PS_META_REPLACE, "input image airmass", value); 125 } 126 } 127 128 // Copy information into expRO, because it should be there too. 129 if ((expRO)&&(expRO->parent)) { 130 pmHDU *expROhdu = pmHDUFromCell(expRO->parent); 131 if (!expROhdu->header) { 132 expROhdu->header = psMetadataAlloc(); 133 } 134 expRO->parent->parent->parent->hdu->header = psMetadataCopy(expRO->parent->parent->parent->hdu->header, 135 outRO->parent->parent->parent->hdu->header); 136 137 expRO->parent->concepts = psMetadataCopy(expRO->parent->concepts, 138 outRO->parent->concepts); 139 expRO->parent->parent->concepts = psMetadataCopy(expRO->parent->parent->concepts, 140 outRO->parent->concepts); 141 expRO->parent->parent->parent->concepts = psMetadataCopy(expRO->parent->parent->parent->concepts, 142 outRO->parent->parent->parent->concepts); 143 } 144 126 145 return true; 127 146 }
Note:
See TracChangeset
for help on using the changeset viewer.
