;+
; Project     :	SOLAR-B - EIS
;
; Name        :	EIS_CPT_DECODE_AEC_EXPOSURE_TABLE
;
; Purpose     :	Converts OBSTBL table to MSSL format mnemonics
;
; Explanation : Produces individual ASCII file for AEC exposure table in MSSL command mnemonic form.
;
; Use         :	< result = eis_cpt_decode_aec_exposure_table ( table, text ) >
;
; Inputs      :	table  : BYTARR() table data.
;
; Opt. Inputs : None.
;
; Outputs     : result   : INT flag :
;                            1 : processed science plan OK.
;                            0 : processing failed.
;               text     : STRARR() ASCII output.
;
; Opt. Outputs:	None.
;
; Keywords    : None.
;
; Calls       : None.
;
; Common      :	None.
;
; Restrictions:	None.
;
; Side effects:	May output ASCII files.
;
; Category    :	EIS_CPT.
;
; Prev. Hist. :	None.
;
; Written     :	Martin Carter RAL 27/06/05
;
; Modified    :	Version 0.0, 27/06/05, MKC
;
; Version     :	Version 0.0, 27/06/05
;-
;**********************************************************

FUNCTION eis_cpt_decode_aec_exposure_table, table, text

  ; set up MSSL output

  FOR k = 0, 27 DO eis_cpt_add, text, 'exposure ID '+eis_cpt_strtrim(k)+' '+$
    eis_cpt_strtrim(eis_cpt_bytestoulong(table[4*k:4*k+3]))

  RETURN, 1

error :

  ; issue routine name

  MESSAGE, 'ERROR', /INFORMATIONAL

  ; return error flag

  RETURN, 0

END





