Changeset 11190
- Timestamp:
- Jan 19, 2007, 12:18:53 PM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
psphotArguments.c (modified) (1 diff)
-
psphotParseCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotArguments.c
r11009 r11190 98 98 psFree (options); 99 99 100 // if these command-line options are supplied, load the file name lists into config->arguments 101 // override any configuration-specified source for these files 102 pmConfigFileSetsMD (config->arguments, config, "MASK", "-mask", "-masklist"); 103 pmConfigFileSetsMD (config->arguments, config, "WEIGHT", "-weight", "-weightlist"); 104 pmConfigFileSetsMD (config->arguments, config, "PSF", "-psf", "-psflist"); 105 100 106 // the input file is a required argument; if not found, we will exit 101 107 status = pmConfigFileSetsMD (config->arguments, config, "INPUT", "-file", "-list"); -
trunk/psphot/src/psphotParseCamera.c
r11173 r11190 15 15 // select recipe options supplied on command line 16 16 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSPHOT_RECIPE); 17 18 // if MASK or WEIGHT was supplied on command line, bind files to input fpa 19 // XXX these do not quite yet work: pmFPAAddSourceFromHeader is not appropriate 20 pmFPAfileBindFromArgs (NULL, input, config, "INPUT.MASK", "MASK"); 21 pmFPAfileBindFromArgs (NULL, input, config, "INPUT.WEIGHT", "WEIGHT"); 22 23 // optionally load the PSF Model 24 pmFPAfile *psfInput = pmFPAfileBindFromArgs (NULL, input, config, "INPUT.PSF", "PSF"); 25 if (psfInput == NULL) { 26 fprintf (stderr, "!"); 27 } 17 28 18 29 // set default recipe values here … … 81 92 } 82 93 } 83 // optionally load the PSF Model84 if (psMetadataLookupBool(NULL, recipe, "LOAD.PSF")) {85 if (!pmFPAfileDefineInput (config, input->fpa, "PSPHOT.PSF.LOAD")) {86 psError(PS_ERR_IO, false, "Cannot find a rule for PSPHOT.PSF.LOAD");87 return false;88 }89 }90 94 91 // optionally save the PSF Model95 // optionally save output plots 92 96 if (psMetadataLookupBool(NULL, recipe, "SAVE.PLOTS")) { 93 97 if (!pmFPAfileDefineOutput (config, input->fpa, "SOURCE.PLOT.MOMENTS")) {
Note:
See TracChangeset
for help on using the changeset viewer.
