IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 22, 2010, 5:18:32 PM (16 years ago)
Author:
Paul Price
Message:

Attempt (not sure I've got it right) to correct the zero point so the output gets it set appropriately.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackConvolve.c

    r27004 r27036  
    204204        psListAdd(fpaList, PS_LIST_TAIL, inCell->parent->parent);
    205205
     206        // Correct ZP
     207        if (options->matchZPs) {
     208            // I think I need to take off the exposure time because we're going to set the new exposure time
     209            psMetadataItem *zpItem = psMetadataLookup(inCell->parent->parent->concepts, "FPA.ZP");
     210            zpItem->data.F32 += options->norm->data.F32[i] + 2.5*log10(options->sumExposure);
     211
     212            psMetadataItem *expItem = psMetadataLookup(inCell->parent->parent->concepts, "FPA.EXPOSURE");
     213            expItem->data.F32 = options->sumExposure;
     214
     215            expItem = psMetadataLookup(inCell->concepts, "CELL.EXPOSURE");
     216            expItem->data.F32 = options->sumExposure;
     217        }
     218
    206219        options->cells->data[i] = psMemIncrRefCounter(inCell);
    207220        if (!ppStackFilesIterateUp(config)) {
Note: See TracChangeset for help on using the changeset viewer.