Changeset 21365 for trunk/ppMerge/src/ppMergeReadChunk.c
- Timestamp:
- Feb 5, 2009, 4:47:00 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeReadChunk.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeReadChunk.c
r21244 r21365 6 6 * 7 7 * @author IfA 8 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2009-02-0 1 21:43:05$8 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-06 02:44:31 $ 10 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 11 */ … … 20 20 21 21 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 25 26 26 27 // select an available fileGroup … … 52 53 // override the recorded last scan 53 54 inRO->thisImageScan = fileGroup->firstScan; 54 inRO->this WeightScan = fileGroup->firstScan;55 inRO->thisVarianceScan = fileGroup->firstScan; 55 56 inRO->thisMaskScan = fileGroup->firstScan; 56 57 inRO->forceScan = true; … … 81 82 } 82 83 83 if (have Weights && pmReadoutMoreWeight(inRO, file->fits, 0, rows, config)) {84 if (haveVariances && pmReadoutMoreVariance(inRO, file->fits, 0, rows, config)) { 84 85 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", 88 90 numChunk, i); 89 91 *status = false;
Note:
See TracChangeset
for help on using the changeset viewer.
