Write a scalar value to a component within a named NDF extension NDF_XPT0x
There is a routine for writing values with each of the standard Fortran data types: integer, real, double
precision, logical and character. Replace the (lower case) "
x"
in the routine name by I, R, D, L or C as
appropriate.
The value given for the CMPT argument may be an HDS path name, consisting of
several fields separated by ’
.’
, so that an object can be accessed in a sub-component (or
a sub-sub-component...) of an NDF extension. Array subscripts may also be included.
Thus a string such as ’
CALIB.FILTER(3).WAVELENGTH’
could be used as a valid CMPT
value.
All HDS structures which lie above the specified component within the extension must already exist, otherwise an error will result.
If the specified extension component does not already exist, then it will be created by this routine. If it already exits, but does not have the correct type or shape, then it will be deleted and a new scalar component with the appropriate type will be created in its place.