IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2007, 9:32:53 AM (19 years ago)
Author:
eugene
Message:

adding calls to psphotReadout, related options

File:
1 edited

Legend:

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

    r14280 r14404  
    223223    }
    224224
     225    // For photometry, we operate on the chip-mosaicked image
     226    // we create a copy of the mosaicked image for psphot so we can write out a clean image
     227    bool mdok = false;
     228    bool doPhotom = psMetadataLookupBool(&mdok, config->arguments, "PHOTOM"); // perform photometry
     229    if (doPhotom) {
     230        // this file is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by
     231        // psphotDefineFiles
     232        pmFPAfile *psphotInput = pmFPAfileDefineFromFPA (config, output->fpa, 1, 1, "PSPHOT.INPUT");
     233        PS_ASSERT (psphotInput, false);
     234
     235        // define associated psphot input/output files
     236        if (!psphotDefineFiles (config, psphotInput)) {
     237            psError(PSPHOT_ERR_CONFIG, false, "Trouble defining the additional input/output files for psphot");
     238            return false;
     239        }
     240    }
     241
    225242    return true;
    226243}
Note: See TracChangeset for help on using the changeset viewer.