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/camtool.c

    r13702 r13937  
    184184    }
    185185
    186     psString recipe = psMetadataLookupStr(&status, config->args, "-set_recipe");
    187     if (!status) {
    188         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -set_recipe");
     186    psString reduction = psMetadataLookupStr(&status, config->args, "-set_reduction");
     187    if (!status) {
     188        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -set_reduction");
    189189        return false;
    190190    }
     
    237237
    238238    // would could do this "all in the database" if we didn't want the option
    239     // of changing the label/recipe/expgroup/dvodb/etc.  So we're pulling the
     239    // of changing the label/reduction/expgroup/dvodb/etc.  So we're pulling the
    240240    // data out so we have the option of changing these values or leaving the
    241241    // old values in place (i.e., passing the values through).
     
    257257                    workdir     ? workdir   : row->workdir,
    258258                    label       ? label     : row->label,
    259                     recipe      ? recipe    : row->recipe,
     259                    reduction      ? reduction    : row->reduction,
    260260                    expgroup    ? expgroup  : row->expgroup,
    261261                    dvodb       ? dvodb     : row->dvodb
     
    617617        pendingRow->workdir,
    618618        pendingRow->label,
    619         pendingRow->recipe,
     619        pendingRow->reduction,
    620620        pendingRow->expgroup,
    621621        pendingRow->dvodb,
     
    628628        zp_mean,
    629629        zp_stdev,
    630         fwhm,
    631         fwhm_range,
    632         n_stars,
    633         n_extended,
    634         n_cr,
    635         n_astrom,
     630        fwhm,
     631        fwhm_range,
     632        n_stars,
     633        n_extended,
     634        n_cr,
     635        n_astrom,
    636636        path_base,
    637637        code
Note: See TracChangeset for help on using the changeset viewer.