IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 13, 2007, 5:39:58 PM (19 years ago)
Author:
Paul Price
Message:

Cleaning up code to produce photometry. Moving the call to psphot into ppStackReadout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackCamera.c

    r14811 r14834  
    229229    // we create a copy of the mosaicked image for psphot so we can write out a clean image
    230230    bool mdok = false;
    231     bool doPhotom = psMetadataLookupBool(&mdok, config->arguments, "PHOTOM"); // perform photometry
     231    bool doPhotom = psMetadataLookupBool(&mdok, config->arguments, "PHOTOMETRY"); // perform photometry
    232232    if (doPhotom) {
    233         // this file is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by
     233        // This file, PSPHOT.INPUT, is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by
    234234        // psphotDefineFiles
    235         pmFPAfile *psphotInput = pmFPAfileDefineFromFPA (config, output->fpa, 1, 1, "PSPHOT.INPUT");
    236         PS_ASSERT (psphotInput, false);
    237 
    238         // define associated psphot input/output files
    239         if (!psphotDefineFiles (config, psphotInput)) {
    240             psError(PSPHOT_ERR_CONFIG, false, "Trouble defining the additional input/output files for psphot");
     235        pmFPAfile *psphotInput = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT");
     236        if (!psphotInput) {
     237            psError(PS_ERR_IO, false, _("Unable to generate output file from PSPHOT.INPUT"));
     238            return false;
     239        }
     240
     241        // Define associated psphot input/output files
     242        if (!psphotDefineFiles(config, psphotInput)) {
     243            psError(PSPHOT_ERR_CONFIG, false,
     244                    "Trouble defining the additional input/output files for psphot");
    241245            return false;
    242246        }
Note: See TracChangeset for help on using the changeset viewer.