SUBROUTINE AUI_PUT0D( ID, NAME, VALUE, STATUS )
*+
*  Name:
*     AUI_PUT0D
*  Purpose:
*     Write scalar auxilliary parameter
*  Language:
*     Starlink Fortran
*  Invocation:
*     CALL AUI_PUT0D( ID, NAME, VALUE, STATUS )
*  Description:
*     Writes a scalar DOUBLE PRECISION 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
*     VALUE = DOUBLE PRECISION (given)
*        The value 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:
*     4 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
      DOUBLE PRECISION			VALUE			! Attribute value
*  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_NEWV0D( VALUE, 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_PUT0D', STATUS )
      END