IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2007, 8:52:31 AM (19 years ago)
Author:
eugene
Message:

adding input psf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimLoop.c

    r14463 r14531  
    2323
    2424    // Add random stars
    25     // XXX put this in a wrapper (add to array of stars)
    2625    if (type == PPSIM_TYPE_OBJECT) {
    2726        ppSimMakeStars (stars, fpa, config, rng);
     
    3029    pmFPAview *view = pmFPAviewAlloc(0);// View for iterating over FPA
    3130
     31    // load any needed files (eg, input image, PSF)
     32    if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) {
     33        psError(PSPHOT_ERR_DATA, false, "failed IO for fpa in ppSim\n");
     34        psFree(view);
     35        return false;
     36    }
     37
    3238    ppSimUpdateConceptsFPA (fpa, config);
    3339
    3440    pmChip *chip;                       // Chip from FPA
    3541    while ((chip = pmFPAviewNextChip(view, fpa, 1))) {
     42
     43        // load any needed files (eg, input image, PSF)
     44        if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) {
     45            psError(PSPHOT_ERR_DATA, false, "failed IO for chip %d in ppSim\n", view->chip);
     46            psFree (view);
     47            return false;
     48        }
     49
     50        pmPSF *psf = NULL;
     51        if (type == PPSIM_TYPE_OBJECT) {
     52            psf = ppSimSetPSF (config);
     53        }
    3654
    3755        pmCell *cell;                   // Cell from chip
Note: See TracChangeset for help on using the changeset viewer.