IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2007, 4:49:08 PM (19 years ago)
Author:
Paul Price
Message:

Adding chip and mask output for chip-mosaicked files. Was going to make this the default output, but we only have to have it selected in the recipe. Reduced the name of the filerule down, so that it's not excessively long (e.g., PPIMAGE.OUTPUT.CHIP.MASK --> PPIMAGE.CHIP.MASK).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImagePhotom.c

    r13838 r13901  
    1717    pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT");
    1818    if (!status) {
    19         psError(PSPHOT_ERR_CONFIG, false, "PSPHOT.INPUT I/O file is not defined");
    20         return false;
     19        psError(PSPHOT_ERR_CONFIG, false, "PSPHOT.INPUT I/O file is not defined");
     20        return false;
    2121    }
    2222
     
    2828    // iterate over the cells and readout for this chip
    2929    while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
    30         psLogMsg ("ppImagePhotom", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    31         if (! cell->process || ! cell->file_exists) { continue; }
     30        psLogMsg ("ppImagePhotom", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
     31        if (! cell->process || ! cell->file_exists) { continue; }
    3232
    33         // process each of the readouts
    34         while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
    35             if (! readout->data_exists) { continue; }
     33        // process each of the readouts
     34        while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
     35            if (! readout->data_exists) { continue; }
    3636
    37             // run the actual photometry analysis
    38             if (!psphotReadout (config, view)) {
    39                 psError(psErrorCodeLast(), false, "failure in psphotReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout);
    40                 return false;
    41             }
    42         }
     37            // run the actual photometry analysis
     38            if (!psphotReadout (config, view)) {
     39                psError(psErrorCodeLast(), false, "failure in psphotReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout);
     40                return false;
     41            }
     42        }
    4343    }
    4444
    45     // the PSPHOT.INPUT file is a temporary file used to carry PPIMAGE.OUTPUT.CHIP to psphotReadout
     45    // the PSPHOT.INPUT file is a temporary file used to carry PPIMAGE.CHIP to psphotReadout
    4646    // XXX not sure that this is needed...
    4747    pmFPAfileActivate (config->files, false, "PSPHOT.INPUT");
Note: See TracChangeset for help on using the changeset viewer.