SUBROUTINE AUI_PUTNR( ID, NAME, NDIM, DIMS, VALUES, STATUS )
*+
* Name:
* AUI_PUTNR
* Purpose:
* Write arbitrary array auxilliary parameter
* Language:
* Starlink Fortran
* Invocation:
* CALL AUI_PUTNR( ID, NAME, NDIM, DIMS, VALUES, STATUS )
* Description:
* Writes an array REAL auxilliary value to the specified dataset. Auxilliary
* data is just odd bits of information which don't fit into the dataset
* model which applications need to put somewhere. Generally knowledge of
* the format of this information is very restricted, often to one program.
* Arguments:
* ID = INTEGER (given)
* Dataset to which data is to be written
* NAME = CHARACTER*(*) (given)
* The character name of the attribute being written
* NDIM = INTEGER (given)
* Dimensionality of attribute value array
* DIMS[] = INTEGER (given)
* Dimensions of attribute value array
* VALUES[] = REAL (given)
* The values of the attribute
* STATUS = INTEGER (given and returned)
* The global status.
* Examples:
* {routine_example_text}
* {routine_example_description}
* Pitfalls:
* {pitfall_description}...
* Notes:
* {routine_notes}...
* Prior Requirements:
* {routine_prior_requirements}...
* Side Effects:
* {routine_side_effects}...
* Algorithm:
* {algorithm_description}...
* Accuracy:
* {routine_accuracy}
* Timing:
* {routine_timing}
* External Routines Used:
* {name_of_facility_or_package}:
* {routine_used}...
* Implementation Deficiencies:
* {routine_deficiencies}...
* References:
* AUI Subroutine Guide : http://www.sr.bham.ac.uk/asterix-docs/Programmer/Guides/aui.html
* Keywords:
* package:aui, usage:public, auxilliary data, write
* Copyright:
* Copyright (C) University of Birmingham, 1995
* Authors:
* DJA: David J. Allan (Jet-X, University of Birmingham)
* {enter_new_authors_here}
* History:
* 20 Apr 1995 (DJA):
* Original version.
* {enter_changes_here}
* Bugs:
* {note_any_bugs_here}
*-
* Type Definitions:
IMPLICIT NONE ! No implicit typing
* Global Constants:
INCLUDE 'SAE_PAR' ! SAE constants
* Arguments Given:
INTEGER ID ! Dataset identifier
CHARACTER*(*) NAME ! Attribute name
INTEGER NDIM ! Attribute dimensionality
INTEGER DIMS(*) ! Attribute dimensions
REAL VALUES(*) ! Attribute values
* Status:
INTEGER STATUS ! Global status
* Local Variables:
INTEGER VARG ! Temp object
*.
* Check inherited global status.
IF ( STATUS .NE. SAI__OK ) RETURN
* Create ADI object describing value
CALL ADI_NEWVR( NDIM, DIMS, VALUES, VARG, STATUS )
* Write the value
CALL AUI_PUTID( ID, NAME, VARG, STATUS )
* Destroy temporary object
CALL ADI_ERASE( VARG, STATUS )
* Report any errors
IF ( STATUS .NE. SAI__OK ) CALL AST_REXIT( 'AUI_PUTNR', STATUS )
END