IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 4:47:00 PM (17 years ago)
Author:
Paul Price
Message:

Merging pap_branch_20090128. Resolved a small number of conflicts. Compiles, but not tested in detail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeReadChunk.c

    r21244 r21365  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-01 21:43:05 $
     8 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-06 02:44:31 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
     
    2020
    2121    bool mdok;
    22     bool haveMasks = psMetadataLookupBool(&mdok, config->arguments, "INPUTS.MASKS"); ///< Do we have masks?
    23     bool haveWeights = psMetadataLookupBool(&mdok, config->arguments, "INPUTS.WEIGHTS");///< Do we have weights?
    24     int rows = psMetadataLookupS32(NULL, config->arguments, "ROWS"); ///< Number of rows to read per chunk
     22    bool haveMasks = psMetadataLookupBool(&mdok, config->arguments, "INPUTS.MASKS"); // Do we have masks?
     23    bool haveVariances = psMetadataLookupBool(&mdok, config->arguments,
     24                                              "INPUTS.VARIANCES");// Do we have variances?
     25    int rows = psMetadataLookupS32(NULL, config->arguments, "ROWS"); // Number of rows to read per chunk
    2526
    2627    // select an available fileGroup
     
    5253                // override the recorded last scan
    5354                inRO->thisImageScan  = fileGroup->firstScan;
    54                 inRO->thisWeightScan = fileGroup->firstScan;
     55                inRO->thisVarianceScan = fileGroup->firstScan;
    5556                inRO->thisMaskScan   = fileGroup->firstScan;
    5657                inRO->forceScan      = true;
     
    8182                }
    8283
    83                 if (haveWeights && pmReadoutMoreWeight(inRO, file->fits, 0, rows, config)) {
     84                if (haveVariances && pmReadoutMoreVariance(inRO, file->fits, 0, rows, config)) {
    8485                    keepReading = true;
    85                     pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT.WEIGHT", i);
    86                     if (!pmReadoutReadChunkWeight(inRO, file->fits, 0, rows, 0, config)) {
    87                         psError(PS_ERR_IO, false, "Unable to read chunk %d for file PPMERGE.INPUT.WEIGHT %d",
     86                    pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT.VARIANCE", i);
     87                    if (!pmReadoutReadChunkVariance(inRO, file->fits, 0, rows, 0, config)) {
     88                        psError(PS_ERR_IO, false,
     89                                "Unable to read chunk %d for file PPMERGE.INPUT.VARIANCE %d",
    8890                                numChunk, i);
    8991                        *status = false;
Note: See TracChangeset for help on using the changeset viewer.