The HDF Group

HDF User’s Guide

Version 4.2.7


[Top]


List of Examples


Chapter 1 - Introduction to HDF
Chapter 2 - HDF Fundamentals
Chapter 3 - Scientific Data Sets (SD API)
EXAMPLE 1. Creating an HDF file and an Empty SDS.
EXAMPLE 2. Writing to an SDS.
EXAMPLE 3. Writing a Slab of Data to an SDS.
EXAMPLE 4. Altering Values within an SDS Array.
EXAMPLE 5. Appending Data to an SDS Array with an Unlimited Dimension.
EXAMPLE 6. Compressing SDS Data.
EXAMPLE 7. Moving Data to the External File.
EXAMPLE 8. Reading from an SDS.
EXAMPLE 9. Reading Subsets of an SDS.
EXAMPLE 10. Getting Information about a File and an SDSs.
EXAMPLE 11. Locating an SDS by Its Name.
EXAMPLE 12. Setting and Retrieving Dimension Information.
EXAMPLE 13. Distinguishing a Dimension Scale from a Data Set in a File.
EXAMPLE 14. Setting Attributes.
EXAMPLE 15. Reading Attributes.
EXAMPLE 16. Calibrating Data.
EXAMPLE 17. Writing and Reading a Chunked SDS.
Chapter 4 - Vdatas (VS API)
EXAMPLE 1. Accessing a Vdata in an HDF File
EXAMPLE 2. Creating and Storing One-field Vdatas Using VHstoredata and VHstoredatam
EXAMPLE 3. Writing a Vdata of Homogeneous Type
EXAMPLE 4. Writing a Multi-field and Mixed-type Vdata with Packing
EXAMPLE 5. Reading a Vdata of Homogeneous Type
EXAMPLE 6. Reading a Multi-field and Mixed-type Vdata with Packing
EXAMPLE 7. Locating a Vdata Containing Specified Field Names
EXAMPLE 8. Operations on Field and Vdata Attributes
EXAMPLE 9. Obtaining Vdata Information
Chapter 5 - Vgroups (V API)
EXAMPLE 1. Creating HDF Files and Vgroups
EXAMPLE 2. Adding an SDS to a New Vgroup
EXAMPLE 3. Adding Three Vdatas into a Vgroup
EXAMPLE 4. Obtaining Information about Lone Vgroups
EXAMPLE 5. Operations on Vgroup Attributes
EXAMPLE 6. Obtaining Information about the Contents of a Vgroup
Chapter 6 - 8-Bit Raster Images (DFR8 API)
EXAMPLE 1. Writing an 8-Bit Raster Image to an HDF File
EXAMPLE 2. Writing a Palette and an Image in RIS8 Format
EXAMPLE 3. Writing a Set of Compressed 8-Bit Raster Images
EXAMPLE 4. Compressing and Writing a 8-Bit Raster Image
EXAMPLE 5. Reading an 8-Bit Raster Image
Chapter 7 - 24-bit Raster Images (DF24 API)
EXAMPLE 1. Writing a 24-Bit Raster Image to an HDF File
EXAMPLE 2. Writing 24-Bit Raster Images Using Scan-plane Interlacing
EXAMPLE 3. Compressing and Writing a 24-Bit Raster Image
EXAMPLE 4. Reading a 24-Bit Raster Image from an HDF File
Chapter 8 - General Raster Images (GR API)
EXAMPLE 1. Creating and Writing a Raster Image
EXAMPLE 2. Modifying an Existing Raster Image
EXAMPLE 3. Reading a Raster Image.
EXAMPLE 4. Obtaining File and Image Information.
EXAMPLE 5. Operations on File and Raster Image Attributes.
EXAMPLE 6. Obtaining File and Image Attribute.
EXAMPLE 7. Writing a Palette.
EXAMPLE 8. Reading a Palette.
EXAMPLE 9. Creating and Writing a Chunked Raster Image
Chapter 9 - Palettes (DFP API)
EXAMPLE 1. Writing a Palette
EXAMPLE 2. Reading a Palette
Chapter 10 - Annotations (AN API)
EXAMPLE 1. Creating File and Data Annotations
EXAMPLE 2. Reading File and Data Annotations
EXAMPLE 3. Obtaining Annotation Information
Chapter 11 - Single-file Annotations (DFAN API)
EXAMPLE 1. Writing a File Label and a File Description
EXAMPLE 2. Writing an Object Label and Description to a Scientific Data Set
EXAMPLE 3. Reading a File Label and a File Description
EXAMPLE 4. Reading an Object Label and Description
EXAMPLE 5. Getting a List of Labels for All Scientific Data Sets
Chapter 12 - Single-File Scientific Data Sets (DFSD API)
EXAMPLE 1. Creating and Writing to a DFSD Scientific Data Set
EXAMPLE 2. Reading from a DFSD Scientific Data Set
EXAMPLE 3. Assigning Predefined String Attributes to a File
EXAMPLE 4. Reading a Data Set and its Attribute Record
Chapter 13 - Error Reporting
EXAMPLE 1. Writing Errors to a Console Window
Chapter 14 - HDF Performance Issues
Chapter 15 - HDF Command-line Utilities

HDF 4.2.7 - February 2012
Copyright
The HDF Group
www.hdfgroup.org
The HDF Group