IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 6, 2010, 8:02:38 PM (16 years ago)
Author:
eugene
Message:

working on psphotStack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/psphot.20100506/src/psphotStackImageLoop.c

    r27848 r27876  
    1414    pmReadout *readout;
    1515
    16     pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT");
    17     if (!status) {
     16    pmFPAfile *inputRaw = psMetadataLookupPtr (&status, config->files, "PSPHOT.STACK.INPUT.RAW");
     17    pmFPAfile *inputCnv = psMetadataLookupPtr (&status, config->files, "PSPHOT.STACK.INPUT.CNV");
     18
     19    pmFPAfile *input = inputRaw ? inputRaw : inputCnv;
     20
     21    if (!input) {
    1822        psError(PSPHOT_ERR_PROG, false, "Can't find input data!");
    1923        return false;
     
    2933        psLogMsg ("psphot", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    3034        if (! chip->process || ! chip->file_exists) { continue; }
    31         if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Chip in psphotStack.");
     35        // if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Chip in psphotStack.");
    3236
    3337        // there is now only a single chip (multiple readouts?). loop over it and process
    3438        while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
    3539            psLogMsg ("psphot", 5, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    36             if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Cell in psphotStack.");
     40            // if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Cell in psphotStack.");
    3741
    3842            // process each of the readouts
     
    4145                if (! readout->data_exists) { continue; }
    4246
    43 # if (0)               
    44                 // uncomment to generate matched psfs
     47                // PSF matching
    4548                if (!psphotStackMatchPSFs (config, view)) {
    4649                    psError(psErrorCodeLast(), false, "failure in psphotStackMatchPSFs for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout);
     
    4851                    return false;
    4952                }
    50 # endif
    5153
    5254                // XXX for now, we assume there is only a single chip in the PHU:
Note: See TracChangeset for help on using the changeset viewer.