next up previous 237
Next: NDF_MTYPN - Match the types of the array components of a number of NDFs
Up: FORTRAN ROUTINE DESCRIPTIONS
Previous: NDF_MSG - Assign the name of an NDF to a message token


NDF_MTYPE - Match the types of the array components of a pair of NDFs

Description:
The routine matches the types of the array components of a pair of NDFs, selecting a numeric type which an application may use to process these components. It also returns the type which should be used for storing the result of this processing.

Invocation:
CALL NDF_MTYPE( TYPLST, INDF1, INDF2, COMP, ITYPE, DTYPE, STATUS )

Arguments:

TYPLST = CHARACTER $*$ ( $*$ ) (Given)
A comma-separated list of the numeric types which the application can process explicitly; e.g. '_INTEGER,_REAL'. The first type which has sufficient precision will be selected from this list, so they should normally be given in order of increasing computational cost.
INDF1 = INTEGER (Given)
Identifier for the first NDF whose type is to be matched.
INDF2 = INTEGER (Given)
Identifier for the second NDF.
COMP = CHARACTER $*$ ( $*$ ) (Given)
Name of the NDF array component whose type is to be considered.
ITYPE = CHARACTER $*$ ( $*$ ) (Returned)
Numeric type which the application should use to process the NDF components. This value is returned as an upper case character string of maximum length NDF__SZTYP. Its value is the first entry in the TYPLST list to which the NDF array components may be converted without unnecessary loss of information.
DTYPE = CHARACTER $*$ ( $*$ ) (Returned)
Data type required to hold the result of processing the NDF array components. This result is returned as an upper case character string of maximum length NDF__SZFTP. It is intended to be used as input to the NDF_STYPE routine to set the type of the output NDF component into which the result will be written.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:



next up previous 237
Next: NDF_MTYPN - Match the types of the array components of a number of NDFs
Up: FORTRAN ROUTINE DESCRIPTIONS
Previous: NDF_MSG - Assign the name of an NDF to a message token

NDF [1ex
Starlink User Note 33
R.F. Warren-Smith & D.S. Berry
16th July 2012
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council