IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 25, 2007, 2:27:56 PM (19 years ago)
Author:
eugene
Message:

allow more flexible names for output results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStatsFringe.c

    r13927 r13971  
    99#include "ppStatsFringe.h"
    1010
    11 bool ppStatsFringe(psMetadata *stats, const pmChip *chip, const char *fringeName)
     11bool ppStatsFringe(psMetadata *stats, const pmChip *chip, const char *root, const char *fringeName)
    1212{
    1313    PS_ASSERT_PTR_NON_NULL(chip, false);
     
    2828    for (int i = 0; i < fringes->nFringeFrames; i++) {
    2929        psString name = NULL; // Name of statistic
    30         psStringAppend(&name, "FRINGE_%d", i);
     30        psStringAppend(&name, "%s_%d", root, i);
    3131        psMetadataAddF32(chipStats, PS_LIST_TAIL, name, 0, "Fringe amplitude",
    3232                         fringes->coeff->data.F32[i + 1]);
    3333        psFree(name);
    3434        name = NULL;
    35         psStringAppend(&name, "FRINGE_ERR_%d", i);
     35        psStringAppend(&name, "%s_ERR_%d", root, i);
    3636        psMetadataAddF32(chipStats, PS_LIST_TAIL, name, 0, "Fringe amplitude error",
    3737                         fringes->coeffErr->data.F32[i + 1]);
Note: See TracChangeset for help on using the changeset viewer.