IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18030 for trunk/ppMerge


Ignore:
Timestamp:
Jun 9, 2008, 1:00:32 PM (18 years ago)
Author:
Paul Price
Message:

Read functions for readouts need to take a database handle so they can read the concepts.

Location:
trunk/ppMerge/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeFiles.c

    r17227 r18030  
    3434{
    3535    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)) {
    3737        psError(PS_ERR_UNKNOWN, false, "Unable to read readout.");
    3838        return false;
     
    4141    if (psMetadataLookupBool(&mdok, config->arguments, "INPUTS.MASKS")) {
    4242        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)) {
    4444            psError(PS_ERR_UNKNOWN, false, "Unable to read readout mask.");
    4545            return false;
     
    4848    if (psMetadataLookupBool(&mdok, config->arguments, "INPUTS.WEIGHTS")) {
    4949        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)) {
    5151            psError(PS_ERR_UNKNOWN, false, "Unable to read readout weight.");
    5252            return false;
  • trunk/ppMerge/src/ppMergeLoop.c

    r18025 r18030  
    165165                    #define READ_CHUNK(NAME,TYPE) { \
    166166                        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)) { \
    168168                            psError(PS_ERR_IO, false, "Unable to read chunk %d for file %s %d", \
    169169                                    numChunk, NAME, i); \
     
    219219                    #define MORE_CHUNK(NAME,TYPE) { \
    220220                        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); \
    222222                    }
    223223
Note: See TracChangeset for help on using the changeset viewer.