IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2009, 2:31:20 PM (17 years ago)
Author:
Paul Price
Message:

Cleaning up. Had trouble getting the output photometry file written out, but works now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubCamera.c

    r21374 r21524  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.33 $ $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 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
     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>
    1221
    1322#include "ppSub.h"
     
    257266    // psPhot input
    258267    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
    263271        pmFPAfile *psf = pmFPAfileDefineOutputFromFile(config, output, "PSPHOT.PSF.LOAD");
    264272        if (!psf) {
     
    272280        pmFPAfileActivate(config->files, false, "PSPHOT.PSF.LOAD");
    273281
    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.INPUT
    284     if (0) {
    285282        pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT");
    286283        if (!psphot) {
     
    297294            return false;
    298295        }
    299 
    300296    }
    301297
Note: See TracChangeset for help on using the changeset viewer.