IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 5, 2008, 11:18:27 AM (18 years ago)
Author:
Paul Price
Message:

Adding configuration dumping. Required reorganisation of how recipe values get into the program. Formerly, the command-line and recipe values were parsed and the result was put on config->arguments. Now, we want whatever was altered by the command-line to be reflected in the recipe (which is dumped), so using the recipe as the storage. Not yet tested, but will do so soon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackReadout.c

    r18591 r18918  
    2727    static int sectionNum = 0;          // Section number; for debugging outputs
    2828
    29 
    3029    // Get the recipe values
     30    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe
     31    psAssert(recipe, "We've thrown an error on this before.");
     32
    3133    bool mdok;                          // Status of MD lookup
    32     int iter = psMetadataLookupS32(NULL, config->arguments, "ITER"); // Rejection iterations
    33     float combineRej = psMetadataLookupF32(NULL, config->arguments, "COMBINE.REJ"); // Combination threshold
     34    int iter = psMetadataLookupS32(NULL, recipe, "ITER"); // Rejection iterations
     35    float combineRej = psMetadataLookupF32(NULL, recipe, "COMBINE.REJ"); // Combination threshold
    3436    psMaskType maskVal = pmConfigMaskGet("BLANK", config); // Value to mask
    35     bool useVariance = psMetadataLookupBool(&mdok, config->arguments, "VARIANCE"); // Use variance for rejection?
    36     bool safe = psMetadataLookupBool(&mdok, config->arguments, "SAFE"); // Play safe when combining small numbers of pixels?
     37    bool useVariance = psMetadataLookupBool(&mdok, recipe, "VARIANCE"); // Use variance for rejection?
     38    bool safe = psMetadataLookupBool(&mdok, recipe, "SAFE"); // Be safe when combining small numbers of pixels
     39
    3740    psMetadata *ppsub = psMetadataLookupMetadata(NULL, config->recipes, "PPSUB"); // PPSUB recipe
    3841    int kernelSize = psMetadataLookupS32(NULL, ppsub, "KERNEL.SIZE"); // Kernel half-size
    39 
    4042
    4143    int num = readouts->n;              // Number of inputs
     
    137139
    138140    // Get the recipe values
     141    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe
     142    psAssert(recipe, "We've thrown an error on this before.");
     143
    139144    bool mdok;                          // Status of MD lookup
    140145    psMaskType maskVal = pmConfigMaskGet("BLANK", config); // Value to mask
    141     bool useVariance = psMetadataLookupBool(&mdok, config->arguments, "VARIANCE"); // Use variance for rejection?
     146    bool useVariance = psMetadataLookupBool(&mdok, recipe, "VARIANCE"); // Use variance for rejection?
    142147
    143148    int num = readouts->n;              // Number of inputs
Note: See TracChangeset for help on using the changeset viewer.