Changeset 18137 for trunk/psModules/src/camera/pmFPARead.c
- Timestamp:
- Jun 13, 2008, 4:16:47 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPARead.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPARead.c
r18030 r18137 81 81 // In the process, reads the header and concepts 82 82 static bool cellNumReadouts(pmCell *cell, // Cell of interest 83 psFits *fits // FITS file 83 psFits *fits, // FITS file 84 psDB *db 84 85 ) 85 86 { … … 93 94 return false; 94 95 } 95 if (!pmCellReadHeader(cell, fits )) {96 if (!pmCellReadHeader(cell, fits, db)) { 96 97 psError(PS_ERR_IO, false, "Unable to read header for cell!\n"); 97 98 return false; … … 228 229 return false; 229 230 } 230 int naxis3 = cellNumReadouts(cell, fits ); // Number of planes231 int naxis3 = cellNumReadouts(cell, fits, db); // Number of planes 231 232 if (z >= naxis3) { 232 233 // No more to read … … 415 416 } 416 417 417 int naxis3 = cellNumReadouts(cell, fits ); // Number of image planes418 int naxis3 = cellNumReadouts(cell, fits, db); // Number of image planes 418 419 if (z >= naxis3) { 419 420 psError(PS_ERR_IO, false, "Desired image plane (%d) exceeds available number (%d).", … … 719 720 // pmReadoutReadNext is maintained here (for now) to maintain backwards compatibility. 720 721 // pmReadoutReadNext has been replaced by pmReadoutRead, pmReadoutReadChunk, pmReadoutMore 721 bool pmReadoutReadNext(bool *status, pmReadout *readout, psFits *fits, int z, int numScans )722 bool pmReadoutReadNext(bool *status, pmReadout *readout, psFits *fits, int z, int numScans, psDB *db) 722 723 { 723 724 PS_ASSERT_PTR_NON_NULL(readout, false); … … 740 741 } 741 742 742 if (!pmCellReadHeader(cell, fits )) {743 if (!pmCellReadHeader(cell, fits, db)) { 743 744 psError(PS_ERR_IO, false, "Unable to read header for cell!\n"); 744 745 return false; … … 921 922 } 922 923 923 int pmCellNumReadouts(pmCell *cell, psFits *fits )924 int pmCellNumReadouts(pmCell *cell, psFits *fits, psDB *db) 924 925 { 925 926 PS_ASSERT_PTR_NON_NULL(cell, false); 926 927 PS_ASSERT_FITS_NON_NULL(fits, false); 927 928 928 return cellNumReadouts(cell, fits );929 return cellNumReadouts(cell, fits, db); 929 930 } 930 931
Note:
See TracChangeset
for help on using the changeset viewer.
