IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 1, 2006, 4:53:13 PM (19 years ago)
Author:
Paul Price
Message:

Adding HISTORY for normalisation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageDetrendReadout.c

    r10413 r10415  
    7373    float norm = psMetadataLookupF32(&mdok, config->arguments, "NORMALISATION");
    7474    if (mdok && isfinite(norm) && norm != 1.0) {
     75        pmHDU *hdu = pmHDUFromReadout(input); // HDU of interest
     76        psString comment = NULL;        // Comment to add
     77        psStringAppend(&comment, "Normalisation: %f", norm);
     78        psMetadataAddStr(hdu->header, PS_LIST_TAIL, "HISTORY", PS_META_DUPLICATE_OK, comment, "");
     79        psFree(comment);
     80
    7581        psBinaryOp(input->image, input->image, "*", psScalarAlloc(norm, PS_TYPE_F32));
    7682    }
Note: See TracChangeset for help on using the changeset viewer.