Changeset 18030 for trunk/ppMerge
- Timestamp:
- Jun 9, 2008, 1:00:32 PM (18 years ago)
- Location:
- trunk/ppMerge/src
- Files:
-
- 2 edited
-
ppMergeFiles.c (modified) (3 diffs)
-
ppMergeLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeFiles.c
r17227 r18030 34 34 { 35 35 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT", num); 36 if (!pmReadoutReadChunk(readout, file->fits, 0, rows, 0 )) {36 if (!pmReadoutReadChunk(readout, file->fits, 0, rows, 0, config->database)) { 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 )) {43 if (!pmReadoutReadChunkMask(readout, file->fits, 0, rows, 0, config->database)) { 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 )) {50 if (!pmReadoutReadChunkWeight(readout, file->fits, 0, rows, 0, config->database)) { 51 51 psError(PS_ERR_UNKNOWN, false, "Unable to read readout weight."); 52 52 return false; -
trunk/ppMerge/src/ppMergeLoop.c
r18025 r18030 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 )) { \167 if (!pmReadoutReadChunk##TYPE(inRO, file->fits, 0, rows, 0, config->database)) { \ 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 ); \221 more &= pmReadoutMore##TYPE(inRO, file->fits, 0, rows, config->database); \ 222 222 } 223 223
Note:
See TracChangeset
for help on using the changeset viewer.
