IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12599


Ignore:
Timestamp:
Mar 27, 2007, 9:03:42 AM (19 years ago)
Author:
eugene
Message:

de-activate input images before calling second chip-level IO function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotImageLoop.c

    r12592 r12599  
    4343            return false;
    4444        }
    45         pmFPAfileActivate (config->files, true, NULL);
    46        
     45
    4746        // mosaic the cells of a chip into a single contiguous chip.
    4847        // this probably needs to return a new fpa?
     
    5251        }
    5352
    54         // try to load the data
     53        // try to load other supporting data (PSF, SRC, etc).
     54        // do not re-load the following three files
     55        pmFPAfileActivate (config->files, true, NULL);
     56        pmFPAfileActivate (config->files, false, "PSPHOT.LOAD");
     57        pmFPAfileActivate (config->files, false, "PSPHOT.MASK");
     58        pmFPAfileActivate (config->files, false, "PSPHOT.WEIGHT");
    5559        if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) {
    5660            psError(PSPHOT_ERR_DATA, false, "failed IO for chip %d in psphot\n", view->chip);
     
    6064
    6165        // there is now only a single chip (multiple readouts?). loop over it and process
    62         // XXX activate / de-activate files? no I/O here?
    6366        while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
    6467            psLogMsg ("psphot", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    65             // XXX who should be setting cell->process?
    66             // if (! cell->process || ! cell->file_exists) { continue; }
    67             // if (! cell->process) { continue; }
    68            
     68
    6969            // process each of the readouts
    7070            while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
     
    7272                if (! readout->data_exists) { continue; }
    7373
    74                 // run the actual photometry analysis
    75                 // XXX calling psphotReadout here will operate on the mosaic'ed chips (for each readout)
     74                // run the actual photometry analysis on this chip/cell/readout
    7675                if (!psphotReadout (config, view)) {
    7776                    psError(psErrorCodeLast(), false, "failure in psphotReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout);
Note: See TracChangeset for help on using the changeset viewer.