Changeset 13528 for trunk/psphot/src
- Timestamp:
- May 25, 2007, 5:09:20 PM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
psphotDefineFiles.c (modified) (3 diffs)
-
psphotParseCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotDefineFiles.c
r13416 r13528 75 75 76 76 // optionally save output plots 77 // allow specific plots only 77 78 if (psMetadataLookupBool(NULL, recipe, "SAVE.PLOTS")) { 78 79 if (!pmFPAfileDefineOutput (config, input->fpa, "SOURCE.PLOT.MOMENTS")) { 79 psTrace ("psphot", 3, "Cannot find a rule for SOURCE.PLOT.MOMENTS"); 80 psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for SOURCE.PLOT.MOMENTS"); 81 return false; 80 82 } 81 83 if (!pmFPAfileDefineOutput (config, input->fpa, "SOURCE.PLOT.PSFMODEL")) { 82 psTrace ("psphot", 3, "Cannot find a rule for SOURCE.PLOT.PSFMODEL"); 84 psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for SOURCE.PLOT.PSFMODEL"); 85 return false; 83 86 } 84 87 if (!pmFPAfileDefineOutput (config, input->fpa, "SOURCE.PLOT.APRESID")) { 85 psTrace ("psphot", 3, "Cannot find a rule for SOURCE.PLOT.APRESID"); 88 psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for SOURCE.PLOT.APRESID"); 89 return false; 86 90 } 87 91 } 88 92 89 93 if (psMetadataLookupPtr(NULL, config->arguments, "SRC")) { 90 status = false; 91 pmFPAfileDefineFromArgs (&status, config, "PSPHOT.INPUT.CMF", "SRC"); 92 if (!status) { 94 if (!pmFPAfileDefineFromArgs (&status, config, "PSPHOT.INPUT.CMF", "SRC")) { 93 95 psError(PSPHOT_ERR_CONFIG, false, "Failed to find/build PSPHOT.INPUT.CMF"); 94 96 return status; … … 97 99 98 100 if (psMetadataLookupPtr(NULL, config->arguments, "PSPHOT.PSF")) { 99 status = false;100 101 pmFPAfileBindFromArgs(&status, input, config, "PSPHOT.PSF.LOAD", "PSPHOT.PSF"); 101 // pmFPAfileDefineFromArgs (&status, config, "PSPHOT.PSF.LOAD", "PSPHOT.PSF");102 102 if (!status) { 103 103 psError(PSPHOT_ERR_CONFIG, false, "Failed to find/build PSPHOT.PSF.LOAD"); … … 111 111 return true; 112 112 } 113 114 // if we have requested PSPHOT.SRC, attempt to resolve it115 // this is a list of input sources, stored in a psphot output format file116 // XXX this was disabled after the switch to CHIP-mosaicked images. It needs to be tested117 // before it is added back into the code.118 # if (0)119 // optionally load the PSF Model and/or fixed stars120 // XXX add this back in later121 // pmFPAfileBindFromArgs (NULL, input, config, "PSPHOT.PSF", "PSF");122 # endif123 -
trunk/psphot/src/psphotParseCamera.c
r12805 r13528 17 17 // if MASK or WEIGHT was supplied on command line, bind files to 'load' 18 18 // the mask and weight will be mosaicked with the image 19 pmFPAfileBindFromArgs (NULL, load, config, "PSPHOT.MASK", "MASK"); 20 pmFPAfileBindFromArgs (NULL, load, config, "PSPHOT.WEIGHT", "WEIGHT"); 19 pmFPAfileBindFromArgs (&status, load, config, "PSPHOT.MASK", "MASK"); 20 if (!status) { 21 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 22 return NULL; 23 } 24 25 pmFPAfileBindFromArgs (&status, load, config, "PSPHOT.WEIGHT", "WEIGHT"); 26 if (!status) { 27 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 28 return NULL; 29 } 21 30 22 31 // the psphot analysis is performed on chips
Note:
See TracChangeset
for help on using the changeset viewer.
