;+
; Project     : SOLAR-B - EIS
;
; Name        : EIS_CPT_OBSTBL_MAP_DESCRIPTION
;
; Purpose     : Updates description and time.
;
; Explanation : Updates description and time.
;
; Use         : < eis_cpt_obstbl_map_description, item, description, time) >
;
; Inputs      : item         : STRUCTURE of EIS_CPT_OBSTBL_MAP_ENTRY
;               description  : STRING new description
;               time         : DOUBLE TAI time
;
; Opt. Inputs : None.
;
; Outputs     : time         : DOUBLE TAI latst time
;               description  : STRING updated description
;
; Opt. Outputs: None.
;
; Keywords    : None.
;
; Calls       : None.
;
; Common      : None.
;
; Restrictions: None.
;
; Side effects: None.
;
; Category    : EIS_CPT.
;
; Prev. Hist. : None.
;
; Written     : Martin Carter RAL 04/10/05
;
; Modified    : Version 0.0, 04/10/05, MKC
;
; Version     : 0.0, 04/10/05
;-
;**********************************************************

PRO eis_cpt_obstbl_map_description, item, description, time

  ; check if description already used

  descriptions = STR_SEP(item.description,'#')

  list = WHERE( descriptions EQ description, count)

  IF count EQ 0 THEN $
    description = item.description + '#' + description $
  ELSE $
    description = item.description

  ; check if latest time

  IF time LT item.time THEN time = item.time

END





