IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 21, 2007, 2:10:11 PM (19 years ago)
Author:
Paul Price
Message:

Changes to multiple packages in order to use "reduction classes" to
specify recipe names. The idea is to give a group of recipes a
symbolic name, which distinguish how the reduction is to be performed,
without going to all the trouble of changing the recipes themselves.

For example, we might want to turn off the usual
overscan/bias/dark/shutter/flat processing and only do photometry if
we have pre-processed data. Gene also wants a similar ability for
building the flat-field correction.

Added a REDUCTION metadata to the camera configuration that contains
multiple METADATA entries that have recipes for different processing
steps. PS::IPP::Config has a 'reduction' function to return the
appropriate recipe, and this is now used in the scripts. Updated
ippTasks to use these where appropriate.

This necessitated changing the database, so that the desired reduction
class can be specified in the right places. Instructions on converting
an extant database are in dbconfig/changes.txt.

Tested with the SIMTEST, and it works.

There is currently no way of specifying the reduction class when an
exposure proceeds from 'register' to 'chip' (it has to be hacked in
the database directly: "update chipPendingExp set reduction =
'SOME_CLASS' where ..."), but it can be specified when adding a
detrend run or queuing chips with 'chiptool -queue' (the '-reduction'
option). Also, the 'recipe' columns remain throughout the detrend
tables, and they continue to be populated with the actual recipe used
(rather than the reduction class; but that is contained in the
detRun).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/chiptoolConfig.c

    r13649 r13937  
    9494    psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_label",  0,
    9595            "define label", NULL);
    96     psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_recipe",  0,
    97             "define recipe", NULL);
     96    psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_reduction",  0,
     97            "define reduction class", NULL);
    9898    psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_expgroup",  0,
    9999            "define exposure group", NULL);
     
    115115            "search by camera of interest", NULL);
    116116    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-filter",  0,
    117             "search by filter of interest", NULL); 
     117            "search by filter of interest", NULL);
    118118    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-uri",  0,
    119119            "search by URL", NULL);
     
    122122    psMetadataAddBool(pendingimfileArgs, PS_LIST_TAIL, "-simple",  0,
    123123            "use the simple output format", false);
    124  
     124
    125125    // -addprocessedimfile
    126126    psMetadata *addprocessedimfileArgs = psMetadataAlloc();
     
    188188            "define camera of interest", NULL);
    189189    psMetadataAddStr(processedimfileArgs, PS_LIST_TAIL, "-filter",  0,
    190             "define filter of interest", NULL); 
     190            "define filter of interest", NULL);
    191191    psMetadataAddStr(processedimfileArgs, PS_LIST_TAIL, "-uri",  0,
    192192            "define URL", NULL);
     
    226226    psMetadataAddStr(blockArgs, PS_LIST_TAIL, "-label",  0,
    227227            "name of a label to mask out (required)", NULL);
    228    
     228
    229229    // -masked
    230230    psMetadata *maskedArgs = psMetadataAlloc();
    231231    psMetadataAddBool(maskedArgs, PS_LIST_TAIL, "-simple",  0,
    232232            "use the simple output format", false);
    233    
     233
    234234    // -unblock
    235235    psMetadata *unblockArgs = psMetadataAlloc();
Note: See TracChangeset for help on using the changeset viewer.