- Timestamp:
- Jan 28, 2009, 5:24:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20090128/ppMerge/src/ppMergeReadChunk.c
r19014 r21219 9 9 bool mdok; 10 10 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? 12 13 int rows = psMetadataLookupS32(NULL, config->arguments, "ROWS"); // Number of rows to read per chunk 13 14 … … 40 41 // override the recorded last scan 41 42 inRO->thisImageScan = fileGroup->firstScan; 42 inRO->this WeightScan = fileGroup->firstScan;43 inRO->thisVarianceScan = fileGroup->firstScan; 43 44 inRO->thisMaskScan = fileGroup->firstScan; 44 45 inRO->forceScan = true; … … 69 70 } 70 71 71 if (have Weights && pmReadoutMoreWeight(inRO, file->fits, 0, rows, config)) {72 if (haveVariances && pmReadoutMoreVariance(inRO, file->fits, 0, rows, config)) { 72 73 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", 76 78 numChunk, i); 77 79 *status = false;
Note:
See TracChangeset
for help on using the changeset viewer.
