Changeset 10415 for trunk/ppImage/src/ppImageDetrendReadout.c
- Timestamp:
- Dec 1, 2006, 4:53:13 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageDetrendReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDetrendReadout.c
r10413 r10415 73 73 float norm = psMetadataLookupF32(&mdok, config->arguments, "NORMALISATION"); 74 74 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 75 81 psBinaryOp(input->image, input->image, "*", psScalarAlloc(norm, PS_TYPE_F32)); 76 82 }
Note:
See TracChangeset
for help on using the changeset viewer.
