!--------------------------------------------------------------------
!
!      	LISTHD RESOURCE FILE
!
!
!      	This file is used to construct the trigger, error, and success 
!	status fields in the observation status file.
!
!	This is an example illustrating the implementation of an 
!	observation status file (OSF) trigger.
!
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER  User      Description
! -------- ------  --------- -------------------------------------
! 08/05/97 33432   MSwam     created
! 06/24/99 38324   WMiller   Set ENV vars
! 12/27/00 40375   Rose      Add required CLASS keyword
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
!
!--------------------------------------------------------------------

PROCESS_NAME = listhd		! Short name for process id
TASK = <xpoll -p $PATH_FILE -r listhd>
COMMAND = listhd.csh		! Name of the command procedure
DESCRIPTION = 'List header values in a FITS file'
SYSTEM = 'SAMPLE PIPELINE'
CLASS = GIF

XPOLL_STATE.00 = OSF_OK
XPOLL_STATE.01 = OSF_ERROR

OSF_RANK = 1			! First Trigger
OSF_TRIGGER1.LH = w		! Need a 'Wait' flag in this column
OSF_TRIGGER1.DATA_ID = gif	! Also need the Data_id set to GIF

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

OSF_OK.LH          = c		! Completed processing
OSF_OK.CZ          = w          ! Wait for next stage

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

XPOLL_ERROR.LH     = x          ! Unexpected Error: exit status != 0,1

POLLING_TIME       = 10		! Wait (seconds) before polling for next 
ENV.INPATH  	   = fits_data	! Directory where the input files are found
ENV.OUTPATH 	   = hdr_data   ! Directory where output files are written
ENV.TRLDIR         = gif_data   ! Location of trailer (.trx) files
MINBLOCKS 	   = 50000	! blocks required on output disk
EXTENSION 	   = .fits	! This input file extension must exist
