IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 28, 2009, 5:24:09 PM (18 years ago)
Author:
Paul Price
Message:

Convering 'weight' to 'variance' where appropriate. Mostly just propagating changes from psModules. Fixed some mask types as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/ppMerge/src/ppMergeReadChunk.c

    r19014 r21219  
    99    bool mdok;
    1010    bool haveMasks = psMetadataLookupBool(&mdok, config->arguments, "INPUTS.MASKS"); // Do we have masks?
    11     bool haveWeights = psMetadataLookupBool(&mdok, config->arguments, "INPUTS.WEIGHTS");// Do we have weights?
     11    bool haveVariances = psMetadataLookupBool(&mdok, config->arguments,
     12                                              "INPUTS.VARIANCES");// Do we have variances?
    1213    int rows = psMetadataLookupS32(NULL, config->arguments, "ROWS"); // Number of rows to read per chunk
    1314
     
    4041                // override the recorded last scan
    4142                inRO->thisImageScan  = fileGroup->firstScan;
    42                 inRO->thisWeightScan = fileGroup->firstScan;
     43                inRO->thisVarianceScan = fileGroup->firstScan;
    4344                inRO->thisMaskScan   = fileGroup->firstScan;
    4445                inRO->forceScan      = true;
     
    6970                }
    7071
    71                 if (haveWeights && pmReadoutMoreWeight(inRO, file->fits, 0, rows, config)) {
     72                if (haveVariances && pmReadoutMoreVariance(inRO, file->fits, 0, rows, config)) {
    7273                    keepReading = true;
    73                     pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT.WEIGHT", i);
    74                     if (!pmReadoutReadChunkWeight(inRO, file->fits, 0, rows, 0, config)) {
    75                         psError(PS_ERR_IO, false, "Unable to read chunk %d for file PPMERGE.INPUT.WEIGHT %d",
     74                    pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT.VARIANCE", i);
     75                    if (!pmReadoutReadChunkVariance(inRO, file->fits, 0, rows, 0, config)) {
     76                        psError(PS_ERR_IO, false,
     77                                "Unable to read chunk %d for file PPMERGE.INPUT.VARIANCE %d",
    7678                                numChunk, i);
    7779                        *status = false;
Note: See TracChangeset for help on using the changeset viewer.