IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41265 for trunk/ppImage/src


Ignore:
Timestamp:
Feb 11, 2020, 1:12:02 PM (6 years ago)
Author:
tdeboer
Message:

additional output added

File:
1 edited

Legend:

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

    r37406 r41265  
    3838    if (options->doPatternRow) {
    3939
     40        //psLogMsg("ppImage", PS_LOG_INFO, "Log: entering pattern.row routine");
     41        //psWarning ("Entering pattern.row routine");
     42
    4043        bool status;
    4144        pmHDU *hdu = pmHDUFromChip(chip);
     
    4548        }
    4649
     50        const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME");
     51        psLogMsg("ppImage", PS_LOG_INFO, "Performing row pattern correction for %s\n", chipName);
     52
    4753        pmFPAfile *input = psMetadataLookupPtr(&status, config->files, "PPIMAGE.INPUT");
    4854        pmFPAview *view = pmFPAviewAlloc(0); // View for local processing
    4955        *view = *inputView;
    5056        while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) {
     57            //const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME");
     58            //const char *cellName = psMetadataLookupStr(NULL, cell->concepts, "CELL.NAME");
     59            //psWarning ("Looping through %s, %s\n", chipName, cellName);
     60
    5161            if (!cell->process || !cell->file_exists) {
    5262                continue;
     
    6979                ESCAPE(false, "Unable to determine whether row pattern matching should be applied.");
    7080            }
     81            //psWarning ("Row: %d\n", doPattern);
    7182            if (!doPattern) continue;
    7283
     
    116127        }
    117128
     129        const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME");
     130        psLogMsg("ppImage", PS_LOG_INFO, "Performing pattern continuity correction for %s\n", chipName);
     131
    118132        for (int i = 0; i < chip->cells->n; i++) {
    119133            view->cell = i;
     
    130144                ESCAPE(false, "Unable to determine whether row pattern matching should be applied.");
    131145            }
     146
    132147            if (doPattern) {
    133148                tweak->data.U8[i] = 0xFF;
     
    161176          goto pattern_done;
    162177        }
     178
     179        const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME");
     180        psLogMsg("ppImage", PS_LOG_INFO, "Performing cell pattern correction for %s\n", chipName);
    163181
    164182        for (int i = 0; i < chip->cells->n; i++) {
Note: See TracChangeset for help on using the changeset viewer.