- Timestamp:
- Jun 4, 2008, 1:52:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimPhotomFiles.c
r17818 r17901 44 44 pmFPAfile *output = pmFPAfileDefineFromFile (config, input, 1, 1, "PSPHOT.BACKSUB"); 45 45 if (!output) { 46 psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for PSPHOT. ");46 psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for PSPHOT.BACKSUB"); 47 47 return false; 48 48 } … … 51 51 52 52 // the input sources are required for sensible measurements of the fake or force sources 53 pmFPAfile DefineFromArgs (&status, config, "PPSIM.REAL.SOURCES", "INPUT.SOURCES");54 if (! status) {55 psError(PS_ERR_UNKNOWN, false, " Failed to build FPA from PPSIM.REAL.SOURCES");53 pmFPAfile *cmffile = pmFPAfileDefineFromArgs (&status, config, "PPSIM.REAL.SOURCES", "INPUT.SOURCES"); 54 if (!cmffile) { 55 psError(PS_ERR_UNKNOWN, false, "input sources not found; required for photometry (or error with PPSIM.REAL.SOURCES filerule)"); 56 56 return false; 57 57 } … … 60 60 pmFPAfile *outsources = pmFPAfileDefineOutputFromFile (config, input, "PPSIM.FAKE.SOURCES"); 61 61 if (!outsources) { 62 psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for P SPHOT.OUTPUT");62 psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for PPSIM.FAKE.SOURCES"); 63 63 return false; 64 64 } 65 65 outsources->save = true; 66 66 67 pmFPAfileBindFromArgs(&status, input, config, "PSPHOT.PSF.LOAD", "PSPHOT.PSF"); 68 if (!status) { 67 // we bind the psffile to the chip-mosaicked image so we have a reference to the image 68 pmFPAfile *psffile = pmFPAfileBindFromArgs(&status, input, config, "PSPHOT.PSF.LOAD", "PSPHOT.PSF"); 69 if (!psffile) { 69 70 psError(PSPHOT_ERR_CONFIG, false, "Failed to find/build PSPHOT.PSF.LOAD"); 70 return status;71 return false; 71 72 } 72 73
Note:
See TracChangeset
for help on using the changeset viewer.
