IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2008, 10:10:06 AM (18 years ago)
Author:
eugene
Message:

working on injecting fake sources in real images (also forced photometry)

File:
1 edited

Legend:

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

    r15482 r17630  
    55    PS_ASSERT_PTR_NON_NULL(config, PS_EXIT_PROG_ERROR);
    66
     7    // in this program, we are looping over the output image, rather than the input as in ppImage
    78    pmFPAfile *file = psMetadataLookupPtr(NULL, config->files, OUTPUT_FILE); // Output file
    89    assert(file);
     
    1516
    1617    int binning = psMetadataLookupS32(NULL, config->arguments, "BINNING"); // Binning in x and y
     18
     19    // Load forced-photometry positions
     20    if (type == PPSIM_TYPE_OBJECT) {
     21      psArray *spots = ppSimLoadSpots (fpa, config);
     22    }
    1723
    1824    // Load catalogue stars
     
    170176        }
    171177
     178        ppSimMosaicChip(config, blankMask, view, "PPSIM.CHIP", "PPSIM.OUTPUT");
     179
     180        // we perform photometry on the readouts of this chip in the output
     181        ppSimPhotom (config, view);
     182
    172183        if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
    173184            psError(PS_ERR_IO, false, "Unable to write file.");
Note: See TracChangeset for help on using the changeset viewer.