Convert a Starlink NDF to an IDL array.

#### Description:

This IDL function will convert a Starlink NDF file of up to seven dimensions to an IDL array of an appropriate type and shape. Bad values in the NDF may be converted to specific values in the IDL array.

If NDF on-the-fly conversion has been activated, the given filename may refer to a file of a different data format which is to be converted.

#### Arguments

##### Ndf_name
A string expression specifying name of the NDF to be read.
Optional - A value to replace in the IDL array any occurrence of the PRIMDAT bad value in the NDF component. The value must be the same type as the array.

#### Keywords:

##### COMPONENT
Set this to a string expression specifying the NDF component to be read. It may be "DATA", "VARIANCE" or "QUALITY" and defaults to "DATA". The case of the string does not matter and it may be abbreviated to one or more characters.

#### Returned Value

• Result An IDL array of a size and type corresponding with the NDF. The type correspondence is as follows:
_REAL –$>$ floating
_DOUBLE –$>$ double-precision
_UBYTE –$>$ byte
_WORD –$>$ integer
_INTEGER –$>$ longword integer
• #### Examples:

Assuming my_ndf.sdf is an NDF of type _REAL,