Changeset 21524 for trunk/ppSub/src/ppSubCamera.c
- Timestamp:
- Feb 17, 2009, 2:31:20 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubCamera.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubCamera.c
r21374 r21524 6 6 * 7 7 * @author IfA 8 * @version $Revision: 1.3 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2009-02- 06 03:20:02$8 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-18 00:31:20 $ 10 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 11 */ 12 13 #ifdef HAVE_CONFIG_H 14 #include <config.h> 15 #endif 16 17 #include <stdio.h> 18 #include <pslib.h> 19 #include <psmodules.h> 20 #include <psphot.h> 12 21 13 22 #include "ppSub.h" … … 257 266 // psPhot input 258 267 if (psMetadataLookupBool(NULL, recipe, "PHOTOMETRY")) { 259 psphotModelClassInit (); // load implementation-specific models 260 261 262 // Internal-ish file for getting the PSF from the matched addition 268 psphotModelClassInit(); // load implementation-specific models 269 270 // Internal-ish file for getting the PSF from the minuend 263 271 pmFPAfile *psf = pmFPAfileDefineOutputFromFile(config, output, "PSPHOT.PSF.LOAD"); 264 272 if (!psf) { … … 272 280 pmFPAfileActivate(config->files, false, "PSPHOT.PSF.LOAD"); 273 281 274 pmFPAfile *psphotResid = pmFPAfileDefineOutputForFormat (config, NULL, "PSPHOT.RESID", output->cameraName, output->formatName);275 if (!psphotResid) {276 psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for PSPHOT.RESID");277 return false;278 }279 // make this optional: psphotResid->save = true;280 }281 282 // Always do this, since we're using psphot for the background model.283 // XXX Not certain that I need to generate a separate pmFPAfile for PSPHOT.INPUT284 if (0) {285 282 pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT"); 286 283 if (!psphot) { … … 297 294 return false; 298 295 } 299 300 296 } 301 297
Note:
See TracChangeset
for help on using the changeset viewer.
