This software provides a PDL interface for the HDF4 SD library, allowing users to manipulate and analyze scientific data sets. The interface simplifies data processing and enables efficient data retrieval from the HDF4 format.
Using this library is easy, as demonstrated by the provided SYNOPSIS. Users can create an HDF file and add data to it using PDL::IO::HDF::SD->new("-test.hdf") and $hdf->SDput("myData", $data , ['dim1','dim2']), respectively. They can also add local and global attributes, such as text and value attributes, using various functions such as $hdf->SDsettextattr() and $hdf->SDsetvalueattr().
To read from an HDF file, users can open an existing file using PDL::IO::HDF::SD->new("test.hdf") and retrieve data and other attributes using functions such as $hdf->SDget() and $hdf->SDgetattribut(). Users can also manipulate data, such as applying a scale factor or filling values using the provided functions.
It's worth noting that since there have been a lot of changes starting with version 2.0 of the library, users are advised to read the 'Changes' file for a detailed description of what has been changed. This is especially important if their code used to work with an older version of the library and no longer works. Additionally, the terms dataset and SDS (Scientific Data Set) are used interchangeably in the library's documentation.
Overall, PDL::IO::HDF::SD is a useful and efficient software library for working with HDF4 files and comes highly recommended for anyone looking for an easy-to-use interface for manipulating HDF files.
Version 2.4.4: N/A