IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16601


Ignore:
Timestamp:
Feb 22, 2008, 9:19:13 AM (18 years ago)
Author:
Paul Price
Message:

Adding overlap so that incremental reads can handle convolution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080207/ppStack/src/ppStackLoop.c

    r16408 r16601  
    209209    int num = psMetadataLookupS32(NULL, config->arguments, "INPUTS.NUM"); // Number of inputs
    210210    int numScans = psMetadataLookupS32(NULL, config->arguments, "ROWS"); // Number of scans to read at once
    211 
    212 
    213 
    214     // XXX Will need to adjust this when we're doing the convolution
    215     int overlap = 0;                    // Overlap between consecutive scans
    216 
    217 
    218 
     211    psMetadata *ppsub = psMetadataLookupMetadata(NULL, config->recipes, "PPSUB"); // PPSUB recipe
     212    int overlap = 2 * psMetadataLookupS32(NULL, ppsub, "KERNEL.SIZE"); // Overlap by kernel size between consecutive scans
    219213
    220214    // Preparation iteration: Load the sources, and get a target PSF model
     
    424418                pmReadout *readout = readouts->data[i];
    425419                assert(readout);
    426                 more &= pmReadoutMore(readout, imageFits->data[i], 0, numScans, overlap);
    427                 more &= pmReadoutMoreMask(readout, maskFits->data[i], 0, numScans, overlap);
    428                 more &= pmReadoutMoreWeight(readout, weightFits->data[i], 0, numScans, overlap);
     420                more &= pmReadoutMore(readout, imageFits->data[i], 0, numScans);
     421                more &= pmReadoutMoreMask(readout, maskFits->data[i], 0, numScans);
     422                more &= pmReadoutMoreWeight(readout, weightFits->data[i], 0, numScans);
    429423            }
    430424        }
Note: See TracChangeset for help on using the changeset viewer.