SUBROUTINE WCI2_SPWRITE( NARG, ARGS, OARG, STATUS )
*+
* Name:
* WCI2_SPWRITE
* Purpose:
* Write WCS info to a FITS spectral file
* Language:
* Starlink Fortran
* Invocation:
* CALL WCI2_SPWRITE( NARG, ARGS, OARG, STATUS )
* Description:
* Writes the WCS information described in the 3rd to 5th arguments to
* the dataset decsribed by the first.
* Arguments:
* NARG = INTEGER (given)
* Number of method arguments
* ARGS(*) = INTEGER (given)
* ADI identifier of method arguments
* OARG = INTEGER (returned)
* Output data
* 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:
* Algorithm:
* {algorithm_description}...
* Accuracy:
* {routine_accuracy}
* Timing:
* {routine_timing}
* External Routines Used:
* SLA:
* SLA_EPJ - MJD to Julian epoch conversion
* Implementation Deficiencies:
* {routine_deficiencies}...
* References:
* WCI Subroutine Guide : http://www.sr.bham.ac.uk/asterix-docs/Programmer/Guides/wci.html
* Keywords:
* package:wci, usage:private
* Copyright:
* Copyright (C) University of Birmingham, 1995
* Authors:
* DJA: David J. Allan (Jet-X, University of Birmingham)
* {enter_new_authors_here}
* History:
* 14 Feb 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
INCLUDE 'ADI_PAR' ! ADI constants
INCLUDE 'WCI_PAR' ! WCI constants
* Arguments Given:
INTEGER NARG, ARGS(*)
* Arguments Returned:
INTEGER OARG
* Status:
INTEGER STATUS ! Global status
*.
* Check inherited global status.
IF ( STATUS .NE. SAI__OK ) RETURN
* Write the keywords
CALL WCI2_WRITE_HDU( ARGS(2), 'SPECTRUM', ARGS(3), ARGS(4),
: ARGS(5), STATUS )
* Result is null
OARG = ADI__NULLID
* Invoke base method
CALL ADI_CALNXT( STATUS )
END