IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 5, 2006, 5:36:46 PM (20 years ago)
Author:
Paul Price
Message:

Adding shutter correction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageParseDetrend.c

    r8751 r9342  
    66
    77// identify all needed detrend and other I/O files
    8 // create the pmFPAfiles for the active I/O files 
     8// create the pmFPAfiles for the active I/O files
    99
    1010bool ppImageParseDetrend(ppImageOptions *options, pmConfig *config)
     
    1616    pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PPIMAGE.INPUT");
    1717
    18     // the following are defined from the argument list, if given, 
     18    // the following are defined from the argument list, if given,
    1919    // otherwise they revert to the config information
    2020
    2121    if (options->doBias) {
    22         bool status = false;
    23         pmFPAfileFromArgs (&status, config, "PPIMAGE.BIAS", "BIAS");
    24         pmFPAfileFromConf (&status, config, "PPIMAGE.BIAS", input->fpa);
    25         if (!status) psAbort ("ppImageParseDetrend", "can't find a bias image source");
     22        bool status = false;
     23        pmFPAfileFromArgs (&status, config, "PPIMAGE.BIAS", "BIAS");
     24        pmFPAfileFromConf (&status, config, "PPIMAGE.BIAS", input->fpa);
     25        if (!status) psAbort ("ppImageParseDetrend", "can't find a bias image source");
    2626    }
    2727
    2828    if (options->doDark) {
    29         bool status = false;
    30         pmFPAfileFromArgs (&status, config, "PPIMAGE.DARK", "DARK");
    31         pmFPAfileFromConf (&status, config, "PPIMAGE.DARK", input->fpa);
    32         if (!status) psAbort ("ppImageParseDetrend", "can't find a dark image source");
     29        bool status = false;
     30        pmFPAfileFromArgs (&status, config, "PPIMAGE.DARK", "DARK");
     31        pmFPAfileFromConf (&status, config, "PPIMAGE.DARK", input->fpa);
     32        if (!status) psAbort ("ppImageParseDetrend", "can't find a dark image source");
    3333    }
    3434
    3535    if (options->doMask) {
    36         bool status = false;
    37         pmFPAfileFromArgs (&status, config, "PPIMAGE.MASK", "MASK");
    38         pmFPAfileFromConf (&status, config, "PPIMAGE.MASK", input->fpa);
    39         if (!status) psAbort ("ppImageParseDetrend", "can't find a mask image source");
     36        bool status = false;
     37        pmFPAfileFromArgs (&status, config, "PPIMAGE.MASK", "MASK");
     38        pmFPAfileFromConf (&status, config, "PPIMAGE.MASK", input->fpa);
     39        if (!status) psAbort ("ppImageParseDetrend", "can't find a mask image source");
     40    }
     41
     42    if (options->doShutter) {
     43        bool status = false;
     44        pmFPAfileFromArgs (&status, config, "PPIMAGE.SHUTTER", "SHUTTER");
     45        pmFPAfileFromConf (&status, config, "PPIMAGE.SHUTTER", input->fpa);
     46        if (!status) psAbort ("ppImageParseDetrend", "can't find a shutter image source");
    4047    }
    4148
    4249    if (options->doFlat) {
    43         bool status = false;
    44         pmFPAfileFromArgs (&status, config, "PPIMAGE.FLAT", "FLAT");
    45         pmFPAfileFromConf (&status, config, "PPIMAGE.FLAT", input->fpa);
    46         if (!status) psAbort ("ppImageParseDetrend", "can't find a flat image source");
     50        bool status = false;
     51        pmFPAfileFromArgs (&status, config, "PPIMAGE.FLAT", "FLAT");
     52        pmFPAfileFromConf (&status, config, "PPIMAGE.FLAT", input->fpa);
     53        if (!status) psAbort ("ppImageParseDetrend", "can't find a flat image source");
    4754    }
    4855
     
    5360    // XXX do these need to construct a new fpa?
    5461    if (options->doBin1) {
    55         pmFPAfile *file = pmFPAfileFromFPA (config, input->fpa, options->xBin1, options->yBin1, "PPIMAGE.BIN1");
    56         pmFPAfileDefine (config->files, config->camera, file->fpa, "PPIMAGE.JPEG1");
     62        pmFPAfile *file = pmFPAfileFromFPA (config, input->fpa, options->xBin1, options->yBin1, "PPIMAGE.BIN1");
     63        pmFPAfileDefine (config->files, config->camera, file->fpa, "PPIMAGE.JPEG1");
    5764    }
    5865    if (options->doBin2) {
    59         pmFPAfile *file = pmFPAfileFromFPA (config, input->fpa, options->xBin2, options->yBin2, "PPIMAGE.BIN2");
    60         pmFPAfileDefine (config->files, config->camera, file->fpa, "PPIMAGE.JPEG2");
     66        pmFPAfile *file = pmFPAfileFromFPA (config, input->fpa, options->xBin2, options->yBin2, "PPIMAGE.BIN2");
     67        pmFPAfileDefine (config->files, config->camera, file->fpa, "PPIMAGE.JPEG2");
    6168    }
    6269
Note: See TracChangeset for help on using the changeset viewer.