IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 27, 2008, 7:12:46 PM (18 years ago)
Author:
eugene
Message:

working on the photometry of fake sources

File:
1 edited

Legend:

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

    r17705 r17818  
    1313
    1414    // in this program, we are looping over the output image, rather than the input as in ppImage
    15     pmFPAfile *file = psMetadataLookupPtr(NULL, config->files, OUTPUT_FILE); // Output file
     15    pmFPAfile *file = psMetadataLookupPtr(NULL, config->files, "PPSIM.OUTPUT"); // Output file
    1616    assert(file);
    17 
    18     // if we have an input image, we need to add the synthetic data on top of it below
    19     // XXX we may potentially use this input file to skip missing elements
    20     pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPIMAGE.INPUT");
    2117
    2218    pmFPA *fpa = file->fpa;             // FPA for file
     
    111107
    112108            psVector *biasCols = ppSimMakeBiassec (cell, config);
    113 
    114             pmCell *inputCell = NULL;
    115             if (input) {
    116                 inputCell = pmFPAviewThisCell (view, input->fpa);
    117             }
    118109
    119110            for (int i = 0; i < cell->readouts->n; i++) {
     
    169160                readout->parent->parent->data_exists = true;
    170161
    171                 if (inputCell && inputCell->readouts->data[i]) {
    172                     pmReadout *inReadout = inputCell->readouts->data[i];
    173                     if (!inReadout->weight) {
    174                         if (!pmReadoutGenerateWeight(inReadout, true)) {
    175                             psError (PS_ERR_UNKNOWN, false, "trouble creating weight");
    176                             return false;
    177                         }
    178                     }
    179                     if (!ppSimMergeReadouts (readout, inReadout)) ESCAPE (PS_ERR_UNKNOWN, "problem merging input image with simulated image");
    180                 }
     162                // if there is an input image, merge it with the simulated image
     163                if (!ppSimMergeReadouts (config, view)) ESCAPE (PS_ERR_UNKNOWN, "problem merging input image with simulated image");
    181164            }
    182165            psFree(biasCols);
Note: See TracChangeset for help on using the changeset viewer.