- Timestamp:
- Dec 18, 2012, 5:56:48 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20121130/psphot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121130/psphot
- Property svn:mergeinfo changed
/branches/czw_branch/20120906/psphot (added) merged: 34772,34786 /trunk/psphot (added) merged: 34769,34787-34788,34795-34796,34800
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20121130/psphot/src
- Property svn:mergeinfo changed
/branches/czw_branch/20120906/psphot/src (added) merged: 34772,34786 /trunk/psphot/src (added) merged: 34769,34787-34788,34795-34796,34800
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20121130/psphot/src/psphotOutput.c
r34528 r34838 201 201 int nCR = 0; 202 202 int nEXT = 0; 203 int nForced = 0; 204 int nDetections = sources != NULL ? sources->n : 0; 203 205 204 206 // count the number of sources which will be written and other sub-types 205 207 for (int i = 0; (sources != NULL) && (i < sources->n); i++) { 206 208 pmSource *source = (pmSource *) sources->data[i]; 209 if (source->mode2 & PM_SOURCE_MODE2_MATCHED) { 210 nForced ++; 211 } 207 212 pmModel *model = pmSourceGetModel (NULL, source); 208 213 if (model == NULL) … … 217 222 } 218 223 224 // XXX: This loop cauess nSrc to be twice as large as it should be. This is kept 225 // for compatability 219 226 for (int i = 0; (sources != NULL) && (i < sources->n); i++) { 220 227 pmSource *source = (pmSource *) sources->data[i]; … … 226 233 227 234 psMetadataAddS32 (header, PS_LIST_TAIL, "NSTARS", PS_META_REPLACE, "Number of sources", nSrc); 235 psMetadataAddS32 (header, PS_LIST_TAIL, "NDET", PS_META_REPLACE, "Number of detections", nDetections); 228 236 psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_EXT", PS_META_REPLACE, "Number of extended sources", nEXT); 229 237 psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_CR", PS_META_REPLACE, "Number of cosmic rays", nCR); 238 psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_FRC", PS_META_REPLACE, "Number of Forced detections", nForced); 230 239 return true; 231 240 } … … 306 315 psMetadataItemSupplement (&status, header, analysis, "NSTARS"); 307 316 317 psMetadataItemSupplement (&status, header, analysis, "NDET"); 308 318 psMetadataItemSupplement (&status, header, analysis, "NDET_EXT"); 309 319 psMetadataItemSupplement (&status, header, analysis, "NDET_CR"); 320 psMetadataItemSupplement (&status, header, analysis, "NDET_FRC"); 310 321 311 322 psMetadataItemSupplement (&status, header, analysis, "PSPHOT.PSF.APRESID");
Note:
See TracChangeset
for help on using the changeset viewer.
