next up previous
Next: CMP_MODC - Ensure that string component exists
Up: ROUTINE DESCRIPTIONS
Previous: CMP_MAPV - Map vectorised component

CMP_MOD - Ensure component exists   

Description:
Ensure that a component with the specified name, type and shape exists. If a component with the required name does not exist, one is created. If a component with that name does exist but has a different type or shape, it is deleted and a new one created with the required attributes.

Invocation:
CALL CMP_MOD( LOC, NAME, TYPE, NDIM, DIM, STATUS )

Arguments:
LOC = CHARACTER * ( DAT__SZLOC ) (Given)
Structure locator.
NAME = CHARACTER * ( DAT__SZNAM ) (Given)
Component name.
TYPE = CHARACTER * ( DAT__SZTYP ) (Given)
Data type.
NDIM = INTEGER (Given)
Number of dimensions.
DIM = INTEGER( NDIM ) (Given)
Object dimensions.
STATUS = INTEGER (Given and Returned)
The global status.



next up previous
Next: CMP_MODC - Ensure that string component exists
Up: ROUTINE DESCRIPTIONS
Previous: CMP_MAPV - Map vectorised component

HDS Hierarchical Data System
Starlink User Note 92
R.F. Warren-Smith & M.D. Lawden
23rd February 1999
E-mail:rfws@star.rl.ac.uk

Copyright (C) 1999 Central Laboratory of the Research Councils