IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

New API for reading images.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.