Changeset 11862 for trunk/dvoTools/src/dvoApplyCorrParseCamera.c
- Timestamp:
- Feb 16, 2007, 1:46:31 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/dvoTools/src/dvoApplyCorrParseCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dvoTools/src/dvoApplyCorrParseCamera.c
r11804 r11862 10 10 11 11 // the input image defines the camera, and all recipes and options the follow 12 // XXX we need to change this: mosaic.fits is not in pmFPA format?? 13 // - determine the camera from the header keywords 14 pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "DVOCORR.INPUT", "INPUT"); 15 if (!status || !input) { 16 psError(PS_ERR_IO, false, "Failed to build FPA from DVOCORR.INPUT"); 12 pmFPAfile *input = pmFPAfileDefineFromArgs (NULL, config, "DVOFLAT.INPUT", "INPUT"); 13 if (!input) { 14 psError(PS_ERR_IO, false, "Failed to build FPA from DVOFLAT.INPUT"); 17 15 return NULL; 18 16 } … … 25 23 26 24 // the following files are output targets 27 pmFPAfile *output = pmFPAfileDefineOutput(config, input->fpa, "DVO CORR.OUTPUT");25 pmFPAfile *output = pmFPAfileDefineOutput(config, input->fpa, "DVOFLAT.OUTPUT"); 28 26 if (!output) { 29 psError(PS_ERR_IO, false, _("Unable to generate output file from DVO CORR.OUTPUT"));27 psError(PS_ERR_IO, false, _("Unable to generate output file from DVOFLAT.OUTPUT")); 30 28 psFree(options); 31 29 return NULL; 32 30 } 33 31 32 // find the flat-field correction image (from command-line, config file, or detrend db) 33 status = false; 34 pmFPAfileDefineFromArgs (&status, config, "DVOFLAT.CORR", "CORR"); 35 psErrorClear(); 36 pmFPAfileDefineFromConf (&status, config, "DVOFLAT.CORR"); 37 psErrorClear(); 38 pmFPAfileDefineFromDetDB (&status, config, "DVOFLAT.CORR", input->fpa, PM_DETREND_TYPE_FLAT_CORRECTION); 39 if (!status) { 40 psError (PS_ERR_IO, false, "can't find a flat-field correction image source"); 41 return NULL; 42 } 43 34 44 // Chip selection: turn on only the chips specified (pass status to suppress missing-key log msg) 45 status = false; 35 46 char *chipLine = psMetadataLookupStr(&status, config->arguments, "CHIP_SELECTIONS"); 36 47 psArray *chips = psStringSplitArray (chipLine, ",", false);
Note:
See TracChangeset
for help on using the changeset viewer.
