Changeset 20614 for trunk/ppSub/src/ppSubCamera.c
- Timestamp:
- Nov 9, 2008, 4:13:58 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubCamera.c
r19757 r20614 179 179 if (psMetadataLookupBool(NULL, recipe, "PHOTOMETRY")) { 180 180 psphotModelClassInit (); // load implementation-specific models 181 pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT"); 182 if (!psphot) { 183 psError(PS_ERR_IO, false, "Failed to build FPA from PSPHOT.INPUT"); 184 return false; 185 } 186 if (psphot->type != PM_FPA_FILE_IMAGE) { 187 psError(PS_ERR_IO, true, "PSPHOT.INPUT is not of type IMAGE"); 188 return false; 189 } 190 191 if (!psphotDefineFiles(config, psphot)) { 192 psError(PS_ERR_UNKNOWN, false, "Unable to set up psphot files."); 193 return false; 194 } 181 195 182 196 183 // Internal-ish file for getting the PSF from the matched addition … … 205 192 } 206 193 pmFPAfileActivate(config->files, false, "PSPHOT.PSF.LOAD"); 194 } 195 196 // Always do this, since we're using psphot for the background model. 197 { 198 pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT"); 199 if (!psphot) { 200 psError(PS_ERR_IO, false, "Failed to build FPA from PSPHOT.INPUT"); 201 return false; 202 } 203 if (psphot->type != PM_FPA_FILE_IMAGE) { 204 psError(PS_ERR_IO, true, "PSPHOT.INPUT is not of type IMAGE"); 205 return false; 206 } 207 208 if (!psphotDefineFiles(config, psphot)) { 209 psError(PS_ERR_UNKNOWN, false, "Unable to set up psphot files."); 210 return false; 211 } 207 212 208 213 }
Note:
See TracChangeset
for help on using the changeset viewer.
