SUBROUTINE DCI0_INIT( STATUS )
*+
*  Name:
*     DCI0_INIT

*  Purpose:
*     Load ADI definitions required for DCI operation

*  Language:
*     Starlink Fortran

*  Invocation:
*     CALL DCI0_INIT( STATUS )

*  Description:
*     Loads those class definitions required by the DCI subroutine group.
*     Results in the following classes being defined,
*
*       MissionStrings - Describes hardware configuration use for observation
*
*     Methods are defined to read and write DCI information from HDS and
*     FITS files.

*  Arguments:
*     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:
*     ADI:
*        ADI_REQPKG - Load a package from the load path

*  Implementation Deficiencies:
*     {routine_deficiencies}...

*  References:
*     DCI Subroutine Guide : http://www.sr.bham.ac.uk/asterix-docs/Programmer/Guides/dci.html

*  Keywords:
*     package:dci, usage:private

*  Copyright:
*     Copyright (C) University of Birmingham, 1995

*  Authors:
*     DJA: David J. Allan (Jet-X, University of Birmingham)
*     {enter_new_authors_here}

*  History:
*     9 Jan 1995 (DJA):
*        Original version.
*     {enter_changes_here}

*  Bugs:
*     {note_any_bugs_here}

*-
      
*  Type Definitions:
      IMPLICIT NONE              ! No implicit typing

*  Global Constants:
      INCLUDE 'SAE_PAR'          ! Standard SAE constants
      INCLUDE 'AST_PKG'

*  Status:
      INTEGER 			STATUS             	! Global status

*  External References:
      EXTERNAL			AST_QPKGI
        LOGICAL			AST_QPKGI
      EXTERNAL			ADI_REQPKG
      EXTERNAL                  DCI1_READ
      EXTERNAL                  DCI1_WRITE
      EXTERNAL                  DCI2_READ
      EXTERNAL                  DCI2_WRITE

*  Local variables:
      INTEGER			DID			! Ignored identifier
*.

*  Check inherited global status.
      IF ( STATUS .NE. SAI__OK ) RETURN

*  Check not already initialised?
      IF ( .NOT. AST_QPKGI( DCI__PKG ) ) THEN

*    Load the ADI classes
        CALL ADI_REQPKG( 'detcnfg', STATUS )

*    Define the methods
        CALL ADI_DEFMTH( 'ReadDC(_FITSfile)', DCI2_READ, DID, STATUS )
        CALL ADI_DEFMTH( 'ReadDC(_HDSfile)', DCI1_READ, DID, STATUS )
        CALL ADI_DEFMTH( 'WriteDC(_HDSfile,_MissionStrings)',
     :                        DCI1_WRITE, DID, STATUS )
        CALL ADI_DEFMTH( 'WriteDC(_FITSfile,_MissionStrings)', 
     :                        DCI2_WRITE, DID, STATUS )

*    Now initialised
        CALL AST_SPKGI( DCI__PKG )

      END IF

*  Report any errors
      IF ( STATUS .NE. SAI__OK ) CALL AST_REXIT( 'DCI0_INIT', STATUS )

      END