IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2008, 5:16:44 PM (18 years ago)
Author:
eugene
Message:

split fake and force photometry into separate functions and separate mosaicked images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080511/ppSim/src/ppSimPhotom.c

    r17901 r17958  
    1616
    1717    int blankMask = 0;          // XXX not sure what this should be set to...
    18     ppSimMosaicChip(config, blankMask, view, "PPSIM.CHIP", "PPSIM.OUTPUT");
     18    ppSimMosaicChip(config, blankMask, view, "PPSIM.FORCE.CHIP", "PPSIM.INPUT");
     19    ppSimMosaicChip(config, blankMask, view, "PPSIM.FAKE.CHIP", "PPSIM.OUTPUT");
    1920
    20     // XXX have ppSimMosaicChip return the pointer?
    21     pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PPSIM.CHIP");
     21    // use PPSIM.FAKE.CHIP as the base since it is guaranteed to exist (derived from PPSIM.OUTPUT)
     22    pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PPSIM.FAKE.CHIP");
    2223    if (!status) {
    23         psError(PSPHOT_ERR_CONFIG, false, "PPSIM.CHIP I/O file is not defined");
     24        psError(PSPHOT_ERR_CONFIG, false, "PPSIM.FAKE.CHIP I/O file is not defined");
    2425        return false;
    2526    }
     
    4647
    4748            // run the actual photometry analysis
    48             if (!ppSimPhotomReadout (config, view)) {
     49            if (!ppSimPhotomReadoutFake (config, view)) {
     50                psError(psErrorCodeLast(), false, "failure in psphotReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout);
     51                return false;
     52            }
     53            if (!ppSimPhotomReadoutForce (config, view)) {
    4954                psError(psErrorCodeLast(), false, "failure in psphotReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout);
    5055                return false;
Note: See TracChangeset for help on using the changeset viewer.