IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 13, 2008, 4:16:47 PM (18 years ago)
Author:
eugene
Message:

supplying db handle to concept loading functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPARead.c

    r18030 r18137  
    8181// In the process, reads the header and concepts
    8282static bool cellNumReadouts(pmCell *cell,    // Cell of interest
    83                             psFits *fits     // FITS file
     83                            psFits *fits,    // FITS file
     84                            psDB *db
    8485    )
    8586{
     
    9394        return false;
    9495    }
    95     if (!pmCellReadHeader(cell, fits)) {
     96    if (!pmCellReadHeader(cell, fits, db)) {
    9697        psError(PS_ERR_IO, false, "Unable to read header for cell!\n");
    9798        return false;
     
    228229        return false;
    229230    }
    230     int naxis3 = cellNumReadouts(cell, fits); // Number of planes
     231    int naxis3 = cellNumReadouts(cell, fits, db); // Number of planes
    231232    if (z >= naxis3) {
    232233        // No more to read
     
    415416    }
    416417
    417     int naxis3 = cellNumReadouts(cell, fits); // Number of image planes
     418    int naxis3 = cellNumReadouts(cell, fits, db); // Number of image planes
    418419    if (z >= naxis3) {
    419420        psError(PS_ERR_IO, false, "Desired image plane (%d) exceeds available number (%d).",
     
    719720// pmReadoutReadNext is maintained here (for now) to maintain backwards compatibility.
    720721// pmReadoutReadNext has been replaced by pmReadoutRead, pmReadoutReadChunk, pmReadoutMore
    721 bool pmReadoutReadNext(bool *status, pmReadout *readout, psFits *fits, int z, int numScans)
     722bool pmReadoutReadNext(bool *status, pmReadout *readout, psFits *fits, int z, int numScans, psDB *db)
    722723{
    723724    PS_ASSERT_PTR_NON_NULL(readout, false);
     
    740741    }
    741742
    742     if (!pmCellReadHeader(cell, fits)) {
     743    if (!pmCellReadHeader(cell, fits, db)) {
    743744        psError(PS_ERR_IO, false, "Unable to read header for cell!\n");
    744745        return false;
     
    921922}
    922923
    923 int pmCellNumReadouts(pmCell *cell, psFits *fits)
     924int pmCellNumReadouts(pmCell *cell, psFits *fits, psDB *db)
    924925{
    925926    PS_ASSERT_PTR_NON_NULL(cell, false);
    926927    PS_ASSERT_FITS_NON_NULL(fits, false);
    927928
    928     return cellNumReadouts(cell, fits);
     929    return cellNumReadouts(cell, fits, db);
    929930}
    930931
Note: See TracChangeset for help on using the changeset viewer.