mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-06 14:56:51 +08:00
8005df6417
add a check for block overlap after the command line parsing * Algorithm * * In a inner loop, the parameters from SSET are translated into temporary * variables so that 1 row is printed at a time (getting the coordinate indices * at each row). * We define the stride, count and block to be 1 in the row dimension to achieve * this and advance until all points are printed. * An outer loop for cases where dimensionality is greater than 2D is made. * In each iteration, the 2D block is displayed in the inner loop. The remaining * slower dimensions above the first 2 are incremented one at a time in the outer loop * * The element position is obtained from the matrix according to: * Given an index I(z,y,x) its position from the beginning of an array * of sizes A(size_z, size_y,size_x) is given by * Position of I(z,y,x) = index_z * size_y * size_x * + index_y * size_x * + index_x * tested: windows, linux
19 lines
387 B
SQL
19 lines
387 B
SQL
#############################
|
|
Expected output for 'h5dump -d 1d -s 1 -S 10 -c 2 -k 3 taindices.h5'
|
|
#############################
|
|
HDF5 "taindices.h5" {
|
|
DATASET "1d" {
|
|
DATATYPE H5T_STD_I32LE
|
|
DATASPACE SIMPLE { ( 100 ) / ( 100 ) }
|
|
SUBSET {
|
|
START ( 1 );
|
|
STRIDE ( 10 );
|
|
COUNT ( 2 );
|
|
BLOCK ( 3 );
|
|
DATA {
|
|
(1): 1, 2, 3, 11, 12, 13
|
|
}
|
|
}
|
|
}
|
|
}
|