mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-27 08:01:04 +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.
19 lines
409 B
SQL
19 lines
409 B
SQL
#############################
|
|
Expected output for 'h5dump -d /g1/g1.1/dset1.1.2[0;2;10;] tall.h5'
|
|
#############################
|
|
HDF5 "tall.h5" {
|
|
DATASET "/g1/g1.1/dset1.1.2" {
|
|
DATATYPE H5T_STD_I32BE
|
|
DATASPACE SIMPLE { ( 20 ) / ( 20 ) }
|
|
SUBSET {
|
|
START ( 0 );
|
|
STRIDE ( 2 );
|
|
COUNT ( 10 );
|
|
BLOCK ( 1 );
|
|
DATA {
|
|
(0): 0, 2, 4, 6, 8, 10, 12, 14, 16, 18
|
|
}
|
|
}
|
|
}
|
|
}
|