Page tree

The license could not be verified: License Certificate has expired!

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
titleC

Bitbucket Server file
repoSlughdf5
branchIdrefs/heads/master
projectKeyHDFFV
hideHeadertrue
filepathexamples/h5_subset.c
showLineNumberstrue
progLangplain
applicationLink5ac7b370-7412-3c8c-ad20-807a68261336

Expand
titleFortran

Bitbucket Server file
repoSlughdf5
branchIdrefs/heads/master
projectKeyHDFFV
hideHeadertrue
filepathfortran/examples/h5_subset.f90
showLineNumberstrue
progLangplain
applicationLink5ac7b370-7412-3c8c-ad20-807a68261336

Expand
titleC++

Bitbucket Server file
repoSlughdf5
branchIdrefs/heads/master
projectKeyHDFFV
hideHeadertrue
filepathc++/examples/h5tutr_subset.cpp
showLineNumberstrue
progLangcpp
applicationLink5ac7b370-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

...