!--------------------------------------------------------------------
!
!      CDBDSK RESOURCE FILE
!
!
!	This file is used to define various values for the calibration
!	update command CDBDSK.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER    User  Description
! ----- -------- ------    ------ -------------------------------------
!  000  10/08/98 36608     MSwam   first version
!  001  06/24/99 38324     WMiller Set ENV vars
!  002  04/06/00 38535_02  MSwam   Change TTAB,MTAB to FITS type
!  003  05/31/00 37784_05  MSwam   Add ACS entries 
!  004  11/15/02 46981     MSwam   Change next stage to FB
!       05/27/03 48141     MSwam   Change data_id for trigger to ref
!       09/16/04 51071     MSwam   Change UTAB to FITS type (IDC and OFF)
!       02/18/05 51570     Sontag  Handle unexpected error statuses
!       04/06/05 51433     MSwam   Change TAB,REF to TABLE,IMAGE to avoid
!                                    confusion
!       12/05/05 42283     Sontag  Some items need not be ENV. vars
!       08/16/06 52625     MSwam   Add COS,WFC3
!       03/16/10 64274     MSwam   adjust TEMP_DIR for Linux
!--------------------------------------------------------------------
!
COMMAND                 = cdbdsk.sh
TASK                    = <xpoll -p $PATH_FILE -r cdbdsk>
!
CLASS = cdb
DESCRIPTION = 'CDBS Install reference files on disk'
SYSTEM = CDBS
!
OSF_RANK           = 1
OSF_TRIGGER1.DK    = w          ! Need a 'Wait' flag to proceed
OSF_TRIGGER1.DATA_ID = ref

OSF_PROCESSING.DK  = p          ! Set the processing flag to 'Processing'

OSF_NORMAL.DK      = c          ! Normal: Completed this process
OSF_NORMAL.FB      = w          ! Normal: Waiting for next process

OSF_ERROR.DK       = e          ! Error:  Set the error flag

POLLING_TIME       = 60         !required
XPOLL_ERROR_COUNT  = 1          !this many XPOLL errors will cause the
                                !process to go ABSENT
!
! Valid exit codes for COMMAND that allow XPOLL to continue.
! (The labels are not used for TIME events)
XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR
XPOLL_ERROR.DK = x              ! handle entirely unexpected failure cases

ENV.CATALOG_FILE_EXT     = .cat  !file extension for catalogs
CDB_CATALOG_IN_DIR       = cdbs_input_dir
CDB_RETRIEVAL_IN_DIR     = cdbs_input_dir
CDB_IRAF_PARM_DIR        = /dev/null !sogs_disk:[iraf.dparm]
CDB_DISK_SPACE_%SLOP     = 3
!
! The following TEMP directory must NOT be a logical, but should be a directory
!   filespec (IRAF is passed this value and cannot deal with a logical).
!   If the value is linked through the path file, the definition there must
!   NOT contain a logical.
!
CDB_TEMP_DIR             = /tmp/  ! Use "/" for UNIX

! format required by pipeline for instrument calibration files

CDB_PIPELINE_CAL_IIMAGE  = FITS
CDB_PIPELINE_CAL_JIMAGE  = FITS
CDB_PIPELINE_CAL_LIMAGE  = FITS
CDB_PIPELINE_CAL_NIMAGE  = FITS  ! Calibaration reference file formats.
CDB_PIPELINE_CAL_OIMAGE  = FITS  
CDB_PIPELINE_CAL_UIMAGE  = GEIS  
CDB_PIPELINE_CAL_VIMAGE  = GEIS  
CDB_PIPELINE_CAL_WIMAGE  = GEIS  
CDB_PIPELINE_CAL_XIMAGE  = GEIS  
CDB_PIPELINE_CAL_YIMAGE  = GEIS
CDB_PIPELINE_CAL_ZIMAGE  = GEIS  

CDB_PIPELINE_CAL_ITABLE  = FITS
CDB_PIPELINE_CAL_JTABLE  = FITS
CDB_PIPELINE_CAL_LTABLE  = FITS
CDB_PIPELINE_CAL_NTABLE  = FITS  ! Calibration table file formats.
CDB_PIPELINE_CAL_OTABLE  = FITS
CDB_PIPELINE_CAL_UTABLE  = FITS
CDB_PIPELINE_CAL_VTABLE  = GEIS
CDB_PIPELINE_CAL_WTABLE  = GEIS
CDB_PIPELINE_CAL_XTABLE  = GEIS
CDB_PIPELINE_CAL_ZTABLE  = GEIS
CDB_PIPELINE_CAL_YTABLE  = GEIS
CDB_PIPELINE_CAL_MTABLE  = FITS
CDB_PIPELINE_CAL_TTABLE  = FITS
