![]() |
HDF User’s GuideVersion 4.2.7 |
[Top] [Prev][Next] |
List of Examples
Chapter 1 - Introduction to HDFChapter 2 - HDF FundamentalsChapter 3 - Scientific Data Sets (SD API)EXAMPLE 1. Creating an HDF file and an Empty SDS. 29EXAMPLE 2. Writing to an SDS. 33EXAMPLE 3. Writing a Slab of Data to an SDS. 36EXAMPLE 4. Altering Values within an SDS Array. 39EXAMPLE 5. Appending Data to an SDS Array with an Unlimited Dimension. 43EXAMPLE 6. Compressing SDS Data. 49EXAMPLE 7. Moving Data to the External File. 56EXAMPLE 8. Reading from an SDS. 59EXAMPLE 9. Reading Subsets of an SDS. 61EXAMPLE 10. Getting Information about a File and an SDSs. 68EXAMPLE 11. Locating an SDS by Its Name. 74EXAMPLE 12. Setting and Retrieving Dimension Information. 83EXAMPLE 13. Distinguishing a Dimension Scale from a Data Set in a File. 89EXAMPLE 14. Setting Attributes. 93EXAMPLE 15. Reading Attributes. 98EXAMPLE 16. Calibrating Data. 111EXAMPLE 17. Writing and Reading a Chunked SDS. 122Chapter 4 - Vdatas (VS API)EXAMPLE 1. Accessing a Vdata in an HDF File 144EXAMPLE 2. Creating and Storing One-field Vdatas Using VHstoredata and VHstoredatam 152EXAMPLE 3. Writing a Vdata of Homogeneous Type 163EXAMPLE 4. Writing a Multi-field and Mixed-type Vdata with Packing 169EXAMPLE 5. Reading a Vdata of Homogeneous Type 176EXAMPLE 6. Reading a Multi-field and Mixed-type Vdata with Packing 179EXAMPLE 7. Locating a Vdata Containing Specified Field Names 184EXAMPLE 8. Operations on Field and Vdata Attributes 194EXAMPLE 9. Obtaining Vdata Information 200Chapter 5 - Vgroups (V API)EXAMPLE 1. Creating HDF Files and Vgroups 219EXAMPLE 2. Adding an SDS to a New Vgroup 221EXAMPLE 3. Adding Three Vdatas into a Vgroup 225EXAMPLE 4. Obtaining Information about Lone Vgroups 236EXAMPLE 5. Operations on Vgroup Attributes 243EXAMPLE 6. Obtaining Information about the Contents of a Vgroup 253Chapter 6 - 8-Bit Raster Images (DFR8 API)EXAMPLE 1. Writing an 8-Bit Raster Image to an HDF File 263EXAMPLE 2. Writing a Palette and an Image in RIS8 Format 265EXAMPLE 3. Writing a Set of Compressed 8-Bit Raster Images 267EXAMPLE 4. Compressing and Writing a 8-Bit Raster Image 268EXAMPLE 5. Reading an 8-Bit Raster Image 272Chapter 7 - 24-bit Raster Images (DF24 API)EXAMPLE 1. Writing a 24-Bit Raster Image to an HDF File 282EXAMPLE 2. Writing 24-Bit Raster Images Using Scan-plane Interlacing 283EXAMPLE 3. Compressing and Writing a 24-Bit Raster Image 285EXAMPLE 4. Reading a 24-Bit Raster Image from an HDF File 288Chapter 8 - General Raster Images (GR API)EXAMPLE 1. Creating and Writing a Raster Image 302EXAMPLE 2. Modifying an Existing Raster Image 305EXAMPLE 3. Reading a Raster Image. 314EXAMPLE 4. Obtaining File and Image Information. 323EXAMPLE 5. Operations on File and Raster Image Attributes. 327EXAMPLE 6. Obtaining File and Image Attribute. 332EXAMPLE 7. Writing a Palette. 340EXAMPLE 8. Reading a Palette. 344EXAMPLE 9. Creating and Writing a Chunked Raster Image 351Chapter 9 - Palettes (DFP API)EXAMPLE 1. Writing a Palette 361EXAMPLE 2. Reading a Palette 363Chapter 10 - Annotations (AN API)EXAMPLE 1. Creating File and Data Annotations 373EXAMPLE 2. Reading File and Data Annotations 378EXAMPLE 3. Obtaining Annotation Information 386Chapter 11 - Single-file Annotations (DFAN API)EXAMPLE 1. Writing a File Label and a File Description 394EXAMPLE 2. Writing an Object Label and Description to a Scientific Data Set 396EXAMPLE 3. Reading a File Label and a File Description 399EXAMPLE 4. Reading an Object Label and Description 402EXAMPLE 5. Getting a List of Labels for All Scientific Data Sets 406Chapter 12 - Single-File Scientific Data Sets (DFSD API)EXAMPLE 1. Creating and Writing to a DFSD Scientific Data Set 413EXAMPLE 2. Reading from a DFSD Scientific Data Set 417EXAMPLE 3. Assigning Predefined String Attributes to a File 425EXAMPLE 4. Reading a Data Set and its Attribute Record 427Chapter 13 - Error ReportingEXAMPLE 1. Writing Errors to a Console Window 433Chapter 14 - HDF Performance IssuesChapter 15 - HDF Command-line UtilitiesChapter 16 - Raw Data InformationEXAMPLE 1. Getting Data Information of SDS. 504
HDF 4.2.7 - February 2012 Copyright |
The HDF Group www.hdfgroup.org ![]() |