mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
ba14f83846
New version of the function h5tools_dump_simple_subset, to display subsetting. The new algorithm is: Introduced an outer loop for cases where dimensionality is greater than 2D. In each iteration a 2D block is displayed by rows in a inner loop. The remainning slower dimensions above the first 2 are incremented one at a time in the outer loop Note: when blocks are introduced, the display is not correct. This is a bug that requires an improvement of the algorithm.
24 lines
544 B
SQL
24 lines
544 B
SQL
#############################
|
|
Expected output for 'h5dump -d 2d -s 1,3 -c 6,4 taindices.h5'
|
|
#############################
|
|
HDF5 "taindices.h5" {
|
|
DATASET "2d" {
|
|
DATATYPE H5T_STD_I32LE
|
|
DATASPACE SIMPLE { ( 10, 10 ) / ( 10, 10 ) }
|
|
SUBSET {
|
|
START ( 1, 3 );
|
|
STRIDE ( 1, 1 );
|
|
COUNT ( 6, 4 );
|
|
BLOCK ( 1, 1 );
|
|
DATA {
|
|
(1,3): 13, 14, 15, 16,
|
|
(2,3): 23, 24, 25, 26,
|
|
(3,3): 33, 34, 35, 36,
|
|
(4,3): 43, 44, 45, 46,
|
|
(5,3): 53, 54, 55, 56,
|
|
(6,3): 63, 64, 65, 66
|
|
}
|
|
}
|
|
}
|
|
}
|