HDF(3pm) | User Contributed Perl Documentation | HDF(3pm) |
PDL::IO::HDF - A PDL interface to the HDF4 library.
use PDL; use PDL::IO::HDF; # Open file 'foo.hdf' with all hdf interface: my $HDF = PDL::IO::HDF->new("foo.hdf"); # You can call functions from either the SD or VS interfaces: $HDF->{SD}->SDget("Foo_data"); $HDF->{VS}->VSgetnames(); # To close the file: $HDF->close();
This library provides functions to manipulate HDF files with the SD, VS, and V HDF interfaces.
For more information on HDF, see http://hdf.ncsa.uiuc.edu/
The 'new' function of this package uses the 'new' functions for the individual HDF interfaces. This allows you to use all of the interfaces at one time (if you don't mind the extended syntax).
Actually using the HDF files comes down to using one of the particular interfaces, for that see the docs on those modules.
These constants are now implemented using the perl 'use constant' pragma.
Previously, they were just scalars that were changeable (which is a no-no).
See constant(1) for more info on how to use these in your code.
Judd Taylor, Orbital Systems, Ltd. judd dot t at orbitalsystems dot com
Patrick Leilde patrick.leilde@ifremer.fr contribs of Olivier Archer olivier.archer@ifremer.fr
perl(1), PDL(1), PDL::IO::HDF::SD(1), PDL::IO::HDF::VS(1), constant(1).
2023-04-27 | perl v5.36.0 |