Changeset 9342 for trunk/ppImage/src/ppImageParseDetrend.c
- Timestamp:
- Oct 5, 2006, 5:36:46 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageParseDetrend.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageParseDetrend.c
r8751 r9342 6 6 7 7 // 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 9 9 10 10 bool ppImageParseDetrend(ppImageOptions *options, pmConfig *config) … … 16 16 pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PPIMAGE.INPUT"); 17 17 18 // the following are defined from the argument list, if given, 18 // the following are defined from the argument list, if given, 19 19 // otherwise they revert to the config information 20 20 21 21 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"); 26 26 } 27 27 28 28 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"); 33 33 } 34 34 35 35 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"); 40 47 } 41 48 42 49 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"); 47 54 } 48 55 … … 53 60 // XXX do these need to construct a new fpa? 54 61 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"); 57 64 } 58 65 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"); 61 68 } 62 69
Note:
See TracChangeset
for help on using the changeset viewer.
