C
These examples were created from helping users.
Feature | Example |
---|---|
Create Unicode attribute name and value | unicode.c |
Create a dataset with a variety of H5T_ARRAY datatypes (including variable length string) | H5Tarray_examples.c |
Java
The following examples are used for in-house testing, but may be useful to others, as well. They are included in the hdf-java-examples project code.
HDF5
Feature | Native API Example | Object Example |
---|---|---|
Create file | HDF5FileCreate.java | H5FileCreate.java |
Create a dataset | HDF5DatasetCreate.java | H5DatasetCreate.java |
Read a dataset | HDF5DatasetRead.java | H5DatasetRead.java |
Create an attribute | HDF5AttributeCreate.java | H5AttributeCreate.java |
Create a group | HDF5GroupCreate.java | H5GroupCreate.java |
Create a file with groups and datasets and retrieve the file structure | HDF5FileStructure.java | H5FileStructure.java |
Select a subset | HDF5SubsetSelect.java | H5SubsetSelect.java |
HDF4
Feature | Native API Example | Object Example |
---|---|---|
Create file | HDF4FileCreate.java | H4FileCreate.java |
Create a dataset | HDF4DatasetCreate.java | H4DatasetCreate.java |
Read a dataset | HDF4DatasetRead.java | H4DatasetRead.java |
Create an attribute | HDF4AttributeCreate.java | H4AttributeCreate.java |
Create a group | HDF4GroupCreate.java | H4GroupCreate.java |
Create a file with groups and datasets and retrieve the file structure | HDF4FileStructure.java | H4FileStructure.java |
Select a subset | HDF4SubsetSelect.java | H4SubsetSelect.java |
Python
This page includes additional Python examples which correspond to many of the source code and tutorial examples.
Feature | Example |
---|---|
Compound dataset | h5_compound.py |
Gzip compressed dataset | h5_gzip.py |
Hyperslab selection | h5_hype.py |
Hyperslab selection (modifying block size) | h5_hypeb.py |
Links | h5_links.py (Needs file created by h5_crtdat.py on the Examples from Learning the Basics) |
Object reference | h5_objref.py |
Read integer data into float buffer | h5_readtofloat.py |
Region reference | h5_regref.py |
Select an element (subset) | h5_selecelem.py |
String | h5_string.py |
Unlimited dimension dataset | h5_unlim.py |
Visit | h5_visit.py |
Visit items | h5_visita.py |
Variable length string | h5_vlstring.py |
--- Last Modified: April 09, 2018 | 03:38 PM