Changeset 18166
- Timestamp:
- Jun 17, 2008, 12:25:38 PM (18 years ago)
- Location:
- trunk/ppMerge/src
- Files:
-
- 3 edited
-
ppMerge.h (modified) (1 diff)
-
ppMergeFiles.c (modified) (3 diffs)
-
ppMergeLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMerge.h
r17227 r18166 45 45 46 46 // Read nominated input file 47 bool ppMergeFileReadInput( constpmConfig *config, // Configuration47 bool ppMergeFileReadInput(pmConfig *config, // Configuration 48 48 pmReadout *readout, // Readout into which to read 49 49 int num, // Number of file in sequence -
trunk/ppMerge/src/ppMergeFiles.c
r18030 r18166 31 31 } 32 32 33 bool ppMergeFileReadInput( constpmConfig *config, pmReadout *readout, int num, int rows)33 bool ppMergeFileReadInput(pmConfig *config, pmReadout *readout, int num, int rows) 34 34 { 35 35 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT", num); 36 if (!pmReadoutReadChunk(readout, file->fits, 0, rows, 0, config ->database)) {36 if (!pmReadoutReadChunk(readout, file->fits, 0, rows, 0, config)) { 37 37 psError(PS_ERR_UNKNOWN, false, "Unable to read readout."); 38 38 return false; … … 41 41 if (psMetadataLookupBool(&mdok, config->arguments, "INPUTS.MASKS")) { 42 42 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT.MASK", num); 43 if (!pmReadoutReadChunkMask(readout, file->fits, 0, rows, 0, config ->database)) {43 if (!pmReadoutReadChunkMask(readout, file->fits, 0, rows, 0, config)) { 44 44 psError(PS_ERR_UNKNOWN, false, "Unable to read readout mask."); 45 45 return false; … … 48 48 if (psMetadataLookupBool(&mdok, config->arguments, "INPUTS.WEIGHTS")) { 49 49 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT.WEIGHT", num); 50 if (!pmReadoutReadChunkWeight(readout, file->fits, 0, rows, 0, config ->database)) {50 if (!pmReadoutReadChunkWeight(readout, file->fits, 0, rows, 0, config)) { 51 51 psError(PS_ERR_UNKNOWN, false, "Unable to read readout weight."); 52 52 return false; -
trunk/ppMerge/src/ppMergeLoop.c
r18030 r18166 165 165 #define READ_CHUNK(NAME,TYPE) { \ 166 166 pmFPAfile *file = pmFPAfileSelectSingle(config->files, NAME, i); \ 167 if (!pmReadoutReadChunk##TYPE(inRO, file->fits, 0, rows, 0, config ->database)) { \167 if (!pmReadoutReadChunk##TYPE(inRO, file->fits, 0, rows, 0, config)) { \ 168 168 psError(PS_ERR_IO, false, "Unable to read chunk %d for file %s %d", \ 169 169 numChunk, NAME, i); \ … … 219 219 #define MORE_CHUNK(NAME,TYPE) { \ 220 220 pmFPAfile *file = pmFPAfileSelectSingle(config->files, NAME, i); \ 221 more &= pmReadoutMore##TYPE(inRO, file->fits, 0, rows, config ->database); \221 more &= pmReadoutMore##TYPE(inRO, file->fits, 0, rows, config); \ 222 222 } 223 223
Note:
See TracChangeset
for help on using the changeset viewer.
