Changeset 34787 for trunk/psphot/src/psphotOutput.c
- Timestamp:
- Dec 11, 2012, 9:06:46 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotOutput.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotOutput.c
r34528 r34787 201 201 int nCR = 0; 202 202 int nEXT = 0; 203 int nForced = 0; 203 204 204 205 // count the number of sources which will be written and other sub-types 205 206 for (int i = 0; (sources != NULL) && (i < sources->n); i++) { 206 207 pmSource *source = (pmSource *) sources->data[i]; 208 if (source->mode2 & PM_SOURCE_MODE2_MATCHED) { 209 nForced ++; 210 } 207 211 pmModel *model = pmSourceGetModel (NULL, source); 208 212 if (model == NULL) … … 217 221 } 218 222 223 // XXX: This loop cauess nSrc to be twice as large as it should be. This is kept 224 // for compatability 219 225 for (int i = 0; (sources != NULL) && (i < sources->n); i++) { 220 226 pmSource *source = (pmSource *) sources->data[i]; … … 228 234 psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_EXT", PS_META_REPLACE, "Number of extended sources", nEXT); 229 235 psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_CR", PS_META_REPLACE, "Number of cosmic rays", nCR); 236 psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_FRC", PS_META_REPLACE, "Number of Forced detections", nForced); 230 237 return true; 231 238 } … … 308 315 psMetadataItemSupplement (&status, header, analysis, "NDET_EXT"); 309 316 psMetadataItemSupplement (&status, header, analysis, "NDET_CR"); 317 psMetadataItemSupplement (&status, header, analysis, "NDET_FRC"); 310 318 311 319 psMetadataItemSupplement (&status, header, analysis, "PSPHOT.PSF.APRESID");
Note:
See TracChangeset
for help on using the changeset viewer.
