IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34796 for trunk


Ignore:
Timestamp:
Dec 11, 2012, 11:18:48 AM (14 years ago)
Author:
bills
Message:

add NDET = sources->n to header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotOutput.c

    r34787 r34796  
    202202    int nEXT = 0;
    203203    int nForced = 0;
     204    int nDetections = sources != NULL ? sources->n : 0;
    204205
    205206    // count the number of sources which will be written and other sub-types
     
    232233
    233234    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);
    234236    psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_EXT", PS_META_REPLACE, "Number of extended sources", nEXT);
    235237    psMetadataAddS32 (header, PS_LIST_TAIL, "NDET_CR",  PS_META_REPLACE, "Number of cosmic rays", nCR);
     
    313315    psMetadataItemSupplement (&status, header, analysis, "NSTARS");
    314316
     317    psMetadataItemSupplement (&status, header, analysis, "NDET");
    315318    psMetadataItemSupplement (&status, header, analysis, "NDET_EXT");
    316319    psMetadataItemSupplement (&status, header, analysis, "NDET_CR");
Note: See TracChangeset for help on using the changeset viewer.