...
Programming Example
Description
This See HDF5 Introductory Examples for the examples used in the Learning the Basics tutorial.
The example creates an 8 x 10 integer dataset in an HDF5 file. It then selects and writes to a 3 x 4 subset of the dataset created with the dimensions offset by 1 x 2. (If using Fortran, the dimensions will be swapped. The dataset will be 10 x 8, the subset will be 4 x 3, and the offset will be 2 x 1.)
...
stride = {1, 1}
block = {1, 1}
Sample code:
HTML Wrap |
---|
Expand |
---|
| Bitbucket Server file |
---|
repoSlug | hdf5 |
---|
branchId | refs/heads/master |
---|
projectKey | HDFFV |
---|
hideHeader | true |
---|
filepath | examples/h5_subset.c |
---|
showLineNumbers | true |
---|
progLang | plain |
---|
applicationLink | 5ac7b370-7412-3c8c-ad20-807a68261336 |
---|
|
|
| Expand |
---|
| Bitbucket Server file |
---|
repoSlug | hdf5 |
---|
branchId | refs/heads/master |
---|
projectKey | HDFFV |
---|
hideHeader | true |
---|
filepath | fortran/examples/h5_subset.f90 |
---|
showLineNumbers | true |
---|
progLang | plain |
---|
applicationLink | 5ac7b370-7412-3c8c-ad20-807a68261336 |
---|
|
|
| Expand |
---|
| Bitbucket Server file |
---|
repoSlug | hdf5 |
---|
branchId | refs/heads/master |
---|
projectKey | HDFFV |
---|
hideHeader | true |
---|
filepath | c++/examples/h5tutr_subset.cpp |
---|
showLineNumbers | true |
---|
progLang | cpp |
---|
applicationLink | 5ac7b370-7412-3c8c-ad20-807a68261336 |
---|
|
|
|
|
See HDF5 Introductory Examples for the examples used in the Learning the Basics tutorial. There are examples for several other languages.For details on compiling an HDF5 application:
Experiments with Different Selections
...