IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18166


Ignore:
Timestamp:
Jun 17, 2008, 12:25:38 PM (18 years ago)
Author:
Paul Price
Message:

New API for reading images.

Location:
trunk/ppMerge/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMerge.h

    r17227 r18166  
    4545
    4646// Read nominated input file
    47 bool ppMergeFileReadInput(const pmConfig *config, // Configuration
     47bool ppMergeFileReadInput(pmConfig *config, // Configuration
    4848                          pmReadout *readout, // Readout into which to read
    4949                          int num,      // Number of file in sequence
  • trunk/ppMerge/src/ppMergeFiles.c

    r18030 r18166  
    3131}
    3232
    33 bool ppMergeFileReadInput(const pmConfig *config, pmReadout *readout, int num, int rows)
     33bool ppMergeFileReadInput(pmConfig *config, pmReadout *readout, int num, int rows)
    3434{
    3535    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)) {
    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, config->database)) {
     43        if (!pmReadoutReadChunkMask(readout, file->fits, 0, rows, 0, config)) {
    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, config->database)) {
     50        if (!pmReadoutReadChunkWeight(readout, file->fits, 0, rows, 0, config)) {
    5151            psError(PS_ERR_UNKNOWN, false, "Unable to read readout weight.");
    5252            return false;
  • trunk/ppMerge/src/ppMergeLoop.c

    r18030 r18166  
    165165                    #define READ_CHUNK(NAME,TYPE) { \
    166166                        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)) { \
    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, config->database); \
     221                        more &= pmReadoutMore##TYPE(inRO, file->fits, 0, rows, config); \
    222222                    }
    223223
Note: See TracChangeset for help on using the changeset viewer.