IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 22, 2013, 2:38:49 PM (13 years ago)
Author:
bills
Message:

when saving flux in cff file divide by the exposure time so that the value is counts per second.
psphotLoadExtSources multiples the flux value by CELL.EXPOSURE for cff sources
added some sanity checking to cff files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot/src/psphotMergeSources.c

    r36213 r36299  
    129129        extCFF = psMetadataLookupPtr (NULL, readoutCFF->analysis, "PSPHOT.DETECTIONS");
    130130        if (extCFF) {
     131            psF32 exptime = psMetadataLookupF32(NULL, readout->parent->concepts, "CELL.EXPOSURE");
    131132            for (int i = 0; i < extCFF->allSources->n; i++) {
    132133                pmSource *source = extCFF->allSources->data[i];
     
    136137                source->mode |= PM_SOURCE_MODE_EXTERNAL;
    137138
    138                 // source->peak->detValue,rawFlux,smoothFlux all set to input flux value
     139                // source->peak->detValue,rawFlux,smoothFlux all set to input flux value which is scaled
     140                // to 1 second exposure time. Scale to this image's exposure.
     141                source->peak->rawFlux    *= exptime;
     142                source->peak->smoothFlux *= exptime;
     143                source->peak->detValue   *= exptime;
    139144                // source->peak->xf,yf, moments->Mx,My all set to input position
    140145
Note: See TracChangeset for help on using the changeset viewer.