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.

...

...

 

The C and FORTRAN examples below point to the HDF5-1.10 examples in the hdf5-examples git repository. Examples for HDF5-1.8 and HDF5-1.6 are also included in the repository.

The Java examples are in the HDF5-1.10 source code, and the Java Object package examples are in the HDFView source. Please note that you must comment out the "package" statement at the top when downloading a Java/Java Object example individually.

The MATLAB and Python examples were generously provided by a user and are not tested.

Anchor
datasets
datasets
Datasets:

JavaObj 
FeatureLanguages*HDF5 File (C)DDL (C)
Set Space Allocation Time for Dataset

C   FORTRAN  Java 

JavaObj  MATLAB  PyHigh  PyLow

h5ex_d_alloc.h5ddl

Read / Write Dataset using Fletcher32

   Checksum Filter

C   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_checksum.h5ddl
Read / Write Chunked DatasetC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_chunk.h5ddl
Read / Write Compact DatasetC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_compact.h5ddl
Read / Write to External DatasetC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_extern.h5ddl
Read / Write Dataset w/ Fill ValueC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_fillval.h5ddl
Read / Write GZIP Compressed DatasetC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_gzip.h5ddl
Read / Write Data by HyperslabsC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_hyper.h5ddl
Read / Write Dataset with n-bit FilterC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_nbit.h5ddl
Read / Write Integer DatasetC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_rdwr.h5ddl

Read / Write Dataset w/ Shuffle Filter and

    GZIP Compression

C   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_shuffle.h5ddl

Read / Write Dataset using Scale-Offset

   Filter (float)

C   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh PyLowh5ex_d_sofloat.h5ddl

Read / Write Dataset using Scale-Offset

   Filter (integer)

C   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh PyLowh5ex_d_soint.h5ddl
Read / Write Dataset using SZIP CompressionC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_szip.h5ddl

Read / Write Dataset using Data Transform

   Expression

C   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh PyLowh5ex_d_transform.h5ddl
Read / Write Unlimited Dimension DatasetC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_unlimadd.h5ddl

Read / Write GZIP Compressed Unlimited

   Dimension Dataset  

C   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_unlimgzip.h5ddl

Read / Write / Edit Unlimited Dimension

   Dataset

C   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_unlimmod.h5ddl
Use Dynamic Array to Read DataC   FORTRAN  Java  JavaObj  JavaObj  MATLAB  PyHigh  PyLowh5ex_d_unlimadd.h5ddl

Read / Write Dataset using LZF

   Compression

C   FORTRAN  Java  JavaObj  MATLAB  PyHIgh  PyLow  

*Languages are C, Fortran, Java (JHI5), Java Object Package, Python (High Level), and Python (Low Level APIs). Currently there are no Java Object Package examples provided with HDFView 3.0.See the HDFView 2.x Java Object Package examples. To use those with HDF5-1.10 the object identifiers must be changed from 32-bit to 64-bit.

Anchor
groups
groups
Groups:

w/ w/
FeatureLanguagesHDF5 File (C)Output (C)DDL (C)

Create "compact-or-indexed" Format

Groups

C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_g_compact1.h5
h5ex_g_compact2.h5
Outputddl1 ddl2

Track links in a Group by Creation

Order

C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_g_corder.h5Output 
Create / Open / Close a GroupC  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_g_create.h5 ddl
Create Intermediate GroupsC  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_g_intermediate.h5Output 
Iterate over Groups w/ H5LiterateC  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_g_iterate.h5Output 

Set Conditions to Convert between

Compact

and Dense Groups  

C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_g_phase.h5Output 

Recursively Traverse a File

with

H5Literate

C  FORTRAN Java JavaObj MATLAB PyHigh Pylowh5ex_g_traverse.h5Output 

Recursively Traverse a File

with

H5Ovisit / H5Lvisit

C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_g_visit.h5Output 


Anchor
datatypes
datatypes
Datatypes:

Datatypes Datatypes Bitfield Datatypes Bitfield Datatypes Compound Datatypes Compound Datatypes Compound Datatype Compound Datatype Enumerated Datatypes Enumerated Datatypes Point Datatype Point Datatype Opaque Datatypes Opaque Datatypes String Datatype String Datatype Length Datatype Length Datatype Datatype Datatype
FeatureLanguagesHDF5 File (C)Output (C)DDL (C)
Read / Write Array  (Attribute)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_arrayatt.h5Outputddl
Read / Write Array  (Dataset)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_array.h5Outputddl
Read / Write Bitfield  (Attribute)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_bitatt.h5Outputddl
Read / Write Bitfield  (Dataset)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_bit.h5Outputddl
Read / Write Compound  (Attribute)C  FORTRAN Java  JavaObj MATLAB PyHigh PyLowh5ex_t_cmpdatt.h5Outputddl
Read / Write Compound  (Dataset)C  FORTRAN Java JavaObj JavaObj   MATLAB PyHigh PyLowh5ex_t_cmpd.h5Outputddl
Commit Named Datatype and Read BackC  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_commit.h5Outputddl
Convert Between Datatypes in MemoryC  FORTRAN Java JavaObj MATLAB PyHigh PyLow Output 
Read / Write Complex Compound  (Attribute)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_cpxcmpdatt.h5Outputddl

Read / Write Complex

Compound  (Dataset)

C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_cpxcmpd.h5Outputddl
Read / Write Enumerated  (Attribute)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_enumatt.h5Outputddl
Read / Write Enumerated  (Dataset)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_enum.h5Outputddl
Read / Write Floating Point  (Attribute)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_floatatt.h5Outputddl
Read / Write Floating Point  (Dataset)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_float.h5Outputddl
Read / Write Integer Datatype (Attribute)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_intatt.h5Outputddl
Read / Write Integer Datatype (Dataset)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_int.h5Outputddl
Read / Write Object References (Attribute)C  FORTRAN Java JavaObj MATLAB   PyHigh PyLowh5ex_t_objrefatt.h5Outputddl
Read / Write Object References (Dataset)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_objref.h5Outputddl
Read / Write Opaque  (Attribute)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_opaqueatt.h5Outputddl
Read / Write Opaque  (Dataset)C  FORTRAN Java JavaObj MATLAB PyHigh     PyLowh5ex_t_opaque.h5Outputddl
Read / Write Region References (Attribute)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_regrefatt.h5Outputddl
Read / Write Region References (Dataset)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_regref.h5Outputddl
Read / Write String  (Attribute)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_stringatt.h5Outputddl
Read / Write String  (Dataset)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_string.h5Outputddl
Read / Write Variable Length  (Attribute)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_vlenatt.h5Outputddl
Read / Write Variable Length  (Dataset)C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_vlen.h5Outputddl

Read / Write Variable Length String

(Attribute)  

C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_vlstringatt.h5Outputddl

Read / Write Variable Length String

(Dataset)

C  FORTRAN Java JavaObj MATLAB PyHigh PyLowh5ex_t_vlstring.h5Outputddl

...