mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-09 11:30:43 +02:00
hdf5 for g25um
This commit is contained in:
parent
3e5b8840b4
commit
ca0aa7144c
@ -103,14 +103,13 @@ void HDF5VirtualFile::CreateVirtualFile(
|
|||||||
((numImagesCaught - framesSaved) > maxFramesPerFile)
|
((numImagesCaught - framesSaved) > maxFramesPerFile)
|
||||||
? maxFramesPerFile
|
? maxFramesPerFile
|
||||||
: (numImagesCaught - framesSaved);
|
: (numImagesCaught - framesSaved);
|
||||||
// starting location
|
|
||||||
hsize_t start[3] = {framesSaved, 0, 0};
|
|
||||||
// number of elements separating each block
|
// number of elements separating each block
|
||||||
hsize_t stride[3] = {1, 1, 1};
|
hsize_t stride[3] = {1, 1, 2};
|
||||||
// number of blocks
|
// number of blocks
|
||||||
hsize_t count[3] = {1, 1, 1};
|
hsize_t count[3] = {nDimx, nDimy, nDimz};
|
||||||
// block size
|
// block size
|
||||||
hsize_t block[3] = {nDimx, nDimy, nDimz};
|
hsize_t block[3] = {1, 1, 1};
|
||||||
|
|
||||||
// starting location
|
// starting location
|
||||||
hsize_t startPara[2] = {framesSaved, 0};
|
hsize_t startPara[2] = {framesSaved, 0};
|
||||||
@ -124,6 +123,9 @@ void HDF5VirtualFile::CreateVirtualFile(
|
|||||||
// loop through readouts (image)
|
// loop through readouts (image)
|
||||||
for (unsigned int i = 0; i < numModY * numModZ; ++i) {
|
for (unsigned int i = 0; i < numModY * numModZ; ++i) {
|
||||||
|
|
||||||
|
// starting location
|
||||||
|
hsize_t start[3] = {framesSaved, 0, i};
|
||||||
|
|
||||||
// setect data hyperslabs
|
// setect data hyperslabs
|
||||||
vdsDataSpace.selectHyperslab(H5S_SELECT_SET, count, start,
|
vdsDataSpace.selectHyperslab(H5S_SELECT_SET, count, start,
|
||||||
stride, block);
|
stride, block);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user