HDS2IDL

Convert a Starlink HDS file to an IDL variable.

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

Related Applications

CONVERT: IDL2HDS.