Description:
This
IDL function will
convert a Starlink HDS object into an IDL variable. The object may be a structure or primitive so a
complete NDF structure can be obtained, instead of just the single component produced by function
READ_NDF.
Usage:
Result = HDS2IDL( filename )
Arguments
filename
A string
expression specifying an HDS object. The specification may include slices and cells of arrays.
Returned Value
Result
An IDL variable corresponding to the HDS object. Structures and
primitive types are not necessarily identical (see "
Notes"
).
Notes:
Examples:
IDL> data_struct =
hds2idl(’my_file’)
Assuming my_file.sdf
is an HDS, file this creates an IDL structure corresponding
to it. Deficiencies
- It is not possible to obtain an identical structure in all cases (see
"
Notes"
). - Complex values are not handled.
Related Applications
Copyright © 2015 Science and Technology Research Council