IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25263


Ignore:
Timestamp:
Sep 3, 2009, 12:26:38 AM (17 years ago)
Author:
Paul Price
Message:

Can't put results in recipe, because they will find their way to the header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psphot/src/psphotFake.c

    r25262 r25263  
    192192    }
    193193
     194    thresh *= thresh;                   // Significance image is actually significance-squared
     195
    194196    int numBins = magOffsets->n;                          // Number of bins
    195197    psVector *frac = psVectorAlloc(numBins, PS_TYPE_S32); // Fraction of sources in each bin
     
    210212    psFree(significance);
    211213
    212     // Putting results on recipe because that appears to be the psphot standard, but it's not a good idea
    213     psMetadataAddVector(recipe, PS_LIST_TAIL, "FAKE.EFF", PS_META_REPLACE,
     214    // XXX How do we get the results out?
     215    psMetadata *stats = psMetadataAlloc();
     216    psMetadataAddVector(stats, PS_LIST_TAIL, "FAKE.EFF", PS_META_REPLACE,
    214217                        "Efficiency fractions", frac);
    215     psMetadataAddVector(recipe, PS_LIST_TAIL, "FAKE.MAG", PS_META_REPLACE,
     218    psMetadataAddVector(stats, PS_LIST_TAIL, "FAKE.MAG", PS_META_REPLACE,
    216219                        "Efficiency magnitudes", magOffsets);
    217     psMetadataAddF32(recipe, PS_LIST_TAIL, "FAKE.REF", PS_META_REPLACE,
     220    psMetadataAddF32(stats, PS_LIST_TAIL, "FAKE.REF", PS_META_REPLACE,
    218221                     "Efficiency reference magnitude", magLim);
     222    psMetadataConfigWrite(stats, "fake.stats");
     223    psFree(stats);
    219224
    220225    psFree(frac);
Note: See TracChangeset for help on using the changeset viewer.