- Timestamp:
- Jan 25, 2010, 7:52:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.stack.20100120/src/psphotOutput.c
r26542 r26681 161 161 } 162 162 163 bool psphotSetHeaderNstars (psMetadata * recipe, psArray *sources) {163 bool psphotSetHeaderNstars (psMetadata *header, psArray *sources) { 164 164 165 165 int nSrc = 0; … … 190 190 } 191 191 192 psMetadataAddS32 ( recipe, PS_LIST_TAIL, "NSTARS", PS_META_REPLACE, "Number of sources", nSrc);193 psMetadataAddS32 ( recipe, PS_LIST_TAIL, "NDET_EXT", PS_META_REPLACE, "Number of extended sources", nEXT);194 psMetadataAddS32 ( recipe, PS_LIST_TAIL, "NDET_CR", PS_META_REPLACE, "Number of cosmic rays", nCR);195 return true; 196 } 197 198 // these values are saved in an output header stub - they are added to either the 199 // PHU header (CMP) or the MEF table header (CMF)200 // XXX these are currently carried by the recipe -- this will not work in a Stack context201 // XXX they should be place in the readout->analysis of the given image192 psMetadataAddS32 (header, PS_LIST_TAIL, "NSTARS", PS_META_REPLACE, "Number of sources", nSrc); 193 psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_EXT", PS_META_REPLACE, "Number of extended sources", nEXT); 194 psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_CR", PS_META_REPLACE, "Number of cosmic rays", nCR); 195 return true; 196 } 197 198 // these values are saved in an output header stub - they are added to either the PHU header 199 // (CMP) or the MEF table header (CMF) XXX these are currently carried by the recipe -- this 200 // will not work in a Stack context XXX they should be place in the readout->analysis of the 201 // given image or directly on the output header 202 202 psMetadata *psphotDefineHeader (psMetadata *recipe) { 203 203
Note:
See TracChangeset
for help on using the changeset viewer.
