HDF(3pm)
π HDF(3pm) β PDL::IO::HDF π
okay bestie, welcome to the User Contributed Perl Documentation for PDL::IO::HDF β it's giving "your PDL gateway into the HDF4 library" and honestly? iconic. β¨
π NAME
PDL::IO::HDF β a PDL interface to the HDF4 library. π
β¨ SYNOPSIS
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();
see how clean that is?? you open the file once and then you're just vibing with whichever interface you need π«Ά
π DESCRIPTION
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. π
πΈ CONSTANTS
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.
π Access Modes
DFACC_READβ Open the file in read-only mode. (look, don't touch β)DFACC_WRITEβ Open the file in write-only mode. (touch, don't look π)DFACC_CREATEβ Clobber the file (create it if it doesn't exist, and then open with RW mode). clobber is right there in the name bestie, be careful πDFACC_ALLβ Open the file in read-write mode. π₯DFACC_RDONLYβ Same asDFACC_READDFACC_RDWRβ Open the file in read-write mode.
π§΅ VS Interface Interlacing Modes
FULL_INTERLACENO_INTERLACE
𧬠HDF4 Data Type Codes:
DFNT_UCHARβ HDF's unsigned char ~= PDL's byteDFNT_CHARβ HDF's char ~= PDL's byteDFNT_FLOAT32β HDF's 32-bit float ~= PDL's floatDFNT_FLOAT64β HDF's 64-bit float ~= PDL's doubleDFNT_INT8β HDF's 8-bit integer ~= PDL's byteDFNT_UINT8β HDF's 8-bit unsigned integer ~= PDL's byteDFNT_INT16β HDF's 16-bit integer ~= PDL's shortDFNT_UINT16β HDF's 16-bit unsigned integer ~= PDL's ushortDFNT_INT32β HDF's 32-bit integer ~= PDL's longDFNT_INT64β HDF's 32-bit integer ~= PDL's long
π Misc. HDF Library Constants:
MAX_NC_NAMEβ This is the max name length for SDS variables, attribtues, and just about anything else. (yes, "attribtues" β we are quoting the source, not fixing it, no cap π)MAX_VAR_DIMSβ This is the max number of dims a HDF variable can have.VNAMELENMAXβ Max length of V interface names.
π CURRENT AUTHOR & MAINTAINER
Judd Taylor, Orbital Systems, Ltd. β judd dot t at orbitalsystems dot com π
π°οΈ PREVIOUS AUTHORS
Patrick Leilde patrick.leilde@ifremer.fr β contribs of Olivier Archer olivier.archer@ifremer.fr πΈ
π¦ SEE ALSO
perl(1), PDL(1), PDL::IO::HDF::SD(1), PDL::IO::HDF::VS(1), constant(1).
and that's the whole page, bestie π go forth and read your HDF files β¨
signing off β this one's from perl v5.38.2, dated 2024-04-10, and it's called HDF(3pm) in case the vibe check needed a receipt π«Άπ
π¦ where this page comes from
- ubuntu noble: pdl 1:2.085-1ubuntu1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms