!--------------------------------------------------------------------
!
!      	G2F RESOURCE FILE
!
!	GIF-to-FITS conversion
!
!      	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
! -------- ------  --------- -------------------------------------
! 06/03/96 28182   Rose      Created 
! 07/08/97 33433   WMiller   Modify case for Unix
! 08/05/97 33432   MSwam     convert to internal poller
! 03/03/00 37799_03 MSwam    add -r to TASK line
! 12/27/00 40375   Rose      add required CLASS keyword
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
!
!--------------------------------------------------------------------

PROCESS_NAME = g2f		! Short name for process id
TASK = <g2f -p $PATH_FILE -r g2f>
DESCRIPTION = '   Convert GIF to FITS'
SYSTEM = 'SAMPLE PIPELINE'
CLASS = GIF

OSF_RANK = 1			! First Trigger
OSF_TRIGGER1.FT = w             ! Need a 'Wait' in FT stage
OSF_TRIGGER1.KW = c		! Need a 'Complete' flag in KW column
OSF_TRIGGER1.HD = c		! Need a 'Complete' flag in HD column 
OSF_TRIGGER1.DATA_ID = gif	! Also need the Data_id set to GIF

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

OSF_NORMAL.FT      = c		! Completed conversion
OSF_NORMAL.LH      = w          ! Wait for listhead 

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

POLLING_TIME       = 10		! Wait (seconds) before polling for next 
INPATH  	   = gif_data	! Directory where the input files are found
OUTPATH 	   = fits_data	! Directory where output files are written
MINBLOCKS 	   = 50000	! blocks required on output disk
EXTENSION 	   = .gif_done	! This input file extension must exist
OPUS_DB_DIR        = sample_db  ! Directory where the database files are
