### NDF_SCTYP

Obtain the numeric type of a scaled NDF array component

#### Description:

The routine returns the numeric type of a scaled NDF array component as an upper-case character string (e.g. ’_REAL’). The returned type describes the values stored in the array, before they are unscaled using the associated scale and zero values. Use NDF_TYPE if you need the data type of the array after it has been unscaled.

#### Invocation

CALL NDF_SCTYP( INDF, COMP, TYPE, STATUS )

#### Arguments

NDF identifier.
##### COMP = CHARACTER $\ast$ ( $\ast$ ) (Given)
Name of the NDF array component whose type is required: ’DATA’ or ’VARIANCE’.
##### TYPE = CHARACTER $\ast$ ( $\ast$ ) (Returned)
Numeric type of the component.
##### STATUS = INTEGER (Given and Returned)
The global status.

#### Notes:

• If the array is not stored in SCALED form, then this routine returns the same type as the ARY_TYPE routine.

• A comma-separated list of component names may also be supplied to this routine. In this case the result returned will be the lowest precision numeric type to which all the specified components can be converted without unnecessary loss of information.

• The symbolic constant NDF__SZTYP may be used for declaring the length of a character variable which is to hold the numeric type of an NDF array component. This constant is defined in the include file NDF_PAR.