IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13971


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

allow more flexible names for output results

Location:
trunk/ppStats/src
Files:
2 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]);
  • trunk/ppStats/src/ppStatsFringe.h

    r13923 r13971  
    66
    77/// Supplement the statistics with the fringe solution
    8 bool ppStatsFringe(psMetadata *stats,   ///< Statistics metadata to supplement
    9                    const pmChip *chip,  ///< The chip containing the solution
     8bool ppStatsFringe(psMetadata *stats,     ///< Statistics metadata to supplement
     9                   const pmChip *chip,    ///< The chip containing the solution
     10                   const char *root,      ///< Name of output entry
    1011                   const char *fringeName ///< Name of the solution in the chip->analysis
    1112    );
Note: See TracChangeset for help on using the changeset viewer.