hdf images hdf images

This web site is no longer maintained (but will remain online).
Please see The HDF Group's new Support Portal for the latest information.

HDF5 Fortran Examples By API

These examples were tested with HDF5-1.8 and HDF5-1.10. (The examples are the same for both releases.) Please note that examples ending in _F03 require F2003.

Download All (C, Fortran) - Includes examples for 1.10, 1.8, and 1.6.

   Datasets    Groups    Datatypes

Datasets:

Set Space Allocation Time for Dataset h5ex_d_alloc.f90 Output ddl
Read / Write Dataset using Fletcher32 Checksum Filter h5ex_d_checksum.f90   Output ddl
Read / Write Chunked Dataset h5ex_d_chunk.f90 Output ddl
Read / Write Compact Dataset h5ex_d_compact.f90 Output ddl
Read / Write to External Dataset h5ex_d_extern.f90 Output ddl
Read / Write Dataset w/ Fill Value h5ex_d_fillval.f90 Output ddl
Read / Write GZIP Compressed Dataset h5ex_d_gzip.f90 Output ddl
Read / Write Data by Hyperslabs h5ex_d_hyper.f90 Output ddl
Read / Write Dataset with n-bit Filter h5ex_d_nbit.f90    
Read / Write Integer Dataset h5ex_d_rdwr.f90 Output ddl
Read / Write Integer Dataset with precision set   h5ex_d_rdwr_kind_F03.f90      
Read / Write Dataset using Scale-Offset Filter (integer) h5ex_d_soint.f90    
Read / Write Dataset using SZIP Compression h5ex_d_szip.f90    
Read / Write Dataset using Data Transform Expression   h5ex_d_transform.f90 Output ddl
Read / Write / Edit Unlimited Dimension Dataset h5ex_d_unlimmod.f90 Output ddl

Groups:

Create "compact-or-indexed" Format Groups h5ex_g_compact.f90   ddl1
ddl2
Track links in a Group by Creation Order h5ex_g_corder.f90 Output  
Create / Open / Close a Group h5ex_g_create.f90   ddl
Iterate over Groups w/ H5Literate h5ex_g_iterate_F03.f90 Output HDF5 file
Set Conditions to Convert between Compact and Dense Groups   h5ex_g_phase.f90 Output  
Recursively Traverse a File w/ H5Literate h5ex_g_traverse_F03.f90 Output HDF5 File
Recursively Traverse a File w/ H5Ovisit h5ex_g_visit_F03.f90 Output HDF5 File

Datatypes:

Read / Write Array Datatypes (Attribute) h5ex_t_arrayatt_F03.f90 Output ddl
Read / Write Array Datatypes (Dataset) h5ex_t_array_F03.f90 Output ddl
Read / Write Bitfield Datatypes (Attribute) h5ex_t_bitatt_F03.f90 Output ddl
Read / Write Bitfield Datatypes (Dataset) h5ex_t_bit_F03.f90 Output ddl
Read / Write Compound Datatypes (Attribute) h5ex_t_cmpdatt_F03.f90 Output ddl
Read / Write Compound Datatypes (Dataset) h5ex_t_cmpd_F03.f90 Output ddl
Read / Write Enumerated Datatypes (Attribute) h5ex_t_enumatt_F03.f90 Output ddl
Read / Write Enumerated Datatypes (Dataset) h5ex_t_enum_F03.f90 Output ddl
Read / Write Floating Point Datatype (Attribute) h5ex_t_floatatt_F03.f90 Output ddl
Read / Write Floating Point Datatype (Dataset) h5ex_t_float_F03.f90 Output ddl
Read / Write Integer Datatype (Attribute) h5ex_t_intatt_F03.f90 Output ddl
Read / Write Integer Datatype (Dataset) h5ex_t_int_F03.f90 Output ddl
Read / Write Object References (Attribute) h5ex_t_objrefatt_F03.f90 Output ddl
Read / Write Object References (Dataset) h5ex_t_objref_F03.f90 Output ddl
Read / Write Opaque Datatypes (Attribute) h5ex_t_opaqueatt_F03.f90 Output ddl
Read / Write Opaque Datatypes (Dataset) h5ex_t_opaque_F03.f90 Output ddl
Read / Write Region References (Attribute) h5ex_t_regrefatt_F03.f90 Output ddl
Read / Write Region References (Dataset) h5ex_t_regref_F03.f90 Output ddl
Read / Write Fixed C String Datatype (Attribute) h5ex_t_stringCatt_F03.f90 Output ddl
Read / Write Fixed C String Datatype (Dataset) h5ex_t_stringC_F03.f90 Output ddl
Read / Write String Datatype (Dataset) h5ex_t_string_F03.f90 Output ddl
Read / Write Variable Length Datatype (Attribute) h5ex_t_vlenatt_F03.f90 Output ddl
Read / Write Variable Length Datatype (Dataset) h5ex_t_vlen_F03.f90 Output ddl
Read / Write Variable Length String Datatype (Dataset) h5ex_t_vlstring.f90 Output ddl
Read / Write Variable Length String Datatype (Dataset) h5ex_t_vlstring_F03.f90    


- - Last modified: 04 April 2017