hdfh
Gateway to HDF H interface
Syntax
[out1,...,outN] = hdfh(funcstr,input1,...,inputN)
Description
hdfh
is the MATLAB® gateway to the
HDF H interface.
[out1,...,outN] = hdfh(funcstr,input1,...,inputN)
returns
one or more outputs corresponding to the H function in the HDF library
specified by functstr
.
There is a one-to-one correspondence between H functions in
the HDF library and valid values for funcstr
. For
example, hdfh('close',file_id)
corresponds to the
C library call Hclose(file_id)
.
Functions
Value of funcstr | Function Syntax | Description |
---|---|---|
'appendable' |
| Specifies that the element can be appended to. |
'close' |
| Closes the access path to the file. |
'deldd' |
| Deletes a tag and reference number from the data descriptor list. |
'dupdd' |
| |
'endaccess' |
| Terminates access to a data object by disposing of the access identifier. |
'fidinquire' |
| Returns information about specified file. |
'find' |
| Locates the next object to be searched for in an HDF file.
search_type can be 'new' or 'continue' .
The dir input can be 'forward' or 'backward' . |
'getelement' |
| Reads the data element for the specified tag and reference number. |
'getfileversion' |
| Returns version information for an HDF file. |
'getlibversion' |
| Returns version information for the current HDF library. |
'inquire' |
| Returns access information about a data element. |
'ishdf' |
| Determines if a file is an HDF file. |
'length' |
| Returns the length of a data object specified by the tag and reference number. |
'newref' |
| Returns a reference number that can be used with any tag to product a unique tag/reference number pair. |
'nextread' |
| Searches for the next data descriptor that matches the specified
tag and reference number. origin can be 'start' or 'current' . |
'number' |
| Returns the number of instances of a tag in a file. |
'offset' |
| Returns the offset of a data element in the file. |
'open' |
| Provides an access path to an HDF file by reading all the data descriptor blocks into memory. |
'putelement' |
| Writes a data element or replaces an existing data element
in an HDF file. X must be a uint8 array. |
'read' |
| Reads the next segment in a data element. |
'seek' |
| Sets the access pointer to an offset within a data element. origin can
be 'start' or 'current' . |
'startread' |
| |
'startwrite' |
| |
'sync' |
| |
'trunc' |
| Truncates the specified data object to the given length. |
'write' |
| Writes the next data segment to a specified data element. X must
be a uint8 array. |
Output Arguments
A status
or identifier output of -1 indicates
that the operation failed.
Limitations
hdfh
does not support these functions in the NCSA H interface:Hcache
Hendbitaccess
Hexist
Hflushdd
Hgetbit
Hputbit
Hsetlength
Hshutdown
Htagnewref
Version History
Introduced before R2006a