IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 18, 2012, 5:56:48 AM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20121130/psphot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121130/psphot

  • branches/eam_branches/ipp-20121130/psphot/src

  • branches/eam_branches/ipp-20121130/psphot/src/psphotOutput.c

    r34528 r34838  
    201201    int nCR  = 0;
    202202    int nEXT = 0;
     203    int nForced = 0;
     204    int nDetections = sources != NULL ? sources->n : 0;
    203205
    204206    // count the number of sources which will be written and other sub-types
    205207    for (int i = 0; (sources != NULL) && (i < sources->n); i++) {
    206208        pmSource *source = (pmSource *) sources->data[i];
     209        if (source->mode2 & PM_SOURCE_MODE2_MATCHED) {
     210            nForced ++;
     211        }
    207212        pmModel *model = pmSourceGetModel (NULL, source);
    208213        if (model == NULL)
     
    217222    }
    218223
     224    // XXX: This loop cauess nSrc to be twice as large as it should be. This is kept
     225    // for compatability
    219226    for (int i = 0; (sources != NULL) && (i < sources->n); i++) {
    220227        pmSource *source = (pmSource *) sources->data[i];
     
    226233
    227234    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);
    228236    psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_EXT", PS_META_REPLACE, "Number of extended sources", nEXT);
    229237    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);
    230239    return true;
    231240}
     
    306315    psMetadataItemSupplement (&status, header, analysis, "NSTARS");
    307316
     317    psMetadataItemSupplement (&status, header, analysis, "NDET");
    308318    psMetadataItemSupplement (&status, header, analysis, "NDET_EXT");
    309319    psMetadataItemSupplement (&status, header, analysis, "NDET_CR");
     320    psMetadataItemSupplement (&status, header, analysis, "NDET_FRC");
    310321
    311322    psMetadataItemSupplement (&status, header, analysis, "PSPHOT.PSF.APRESID");
Note: See TracChangeset for help on using the changeset viewer.