!--------------------------------------------------------------------
!
!      	ASN_TABLE RESOURCE FILE
!
!	NICMOS Association table 
!
!      	This file is used to construct the trigger, error, and success 
!	status fields in the observation status file.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER  User      Description
! -------- ------  --------- -------------------------------------
! 12/17/98 37348   Rose      Created 
! 02/23/99 38520   Rose      Correct the datatype
! 07/14/99 38930   Rose	     Copied for the NICMOS from the ACS
! 03/04/03 46981   MSwam     Add RF
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 04/26/05 46323   J.Baum    Create OSF_NO_CAL status
!
!--------------------------------------------------------------------
CLASS = NIC
SYSTEM = OPUS
PROCESS_NAME = asntbl           ! Short name for process id
TASK = <asn_table -p $PATH_FILE -r asnnic>
DESCRIPTION = 'NICMOS Association Tables'
OK_TO_UPDATE_DATABASE = BLANK	! Set by PATH

OSF_RANK = 1                    ! First Trigger
OSF_TRIGGER1.DC    = a          ! Need a wait for ASN_TABLE in CA
OSF_TRIGGER1.DATA_ID = nas      ! Also need the Data_id set to NAS

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

OSF_NORMAL.DC      = c          !
OSF_NORMAL.GC      = n          !
OSF_NORMAL.RF      = n          !
OSF_NORMAL.OM      = n          !
OSF_NORMAL.BC      = w          ! Completed normally: wait for CALNICB

OSF_NO_CAL.DC      = c          !
OSF_NO_CAL.GC      = n          !
OSF_NO_CAL.RF      = n          !
OSF_NO_CAL.OM      = n          !
OSF_NO_CAL.BC      = n          ! 
OSF_NO_CAL.CA      = n          !
OSF_NO_CAL.AC      = w          ! No products: bypass CALNICB

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

POLLING_TIME       = 20         ! Wait (seconds) before polling for next 
INPATH             = NIC_CAL_DIR      ! Directory where the input files are found
OUTPATH            = NIC_CAL_DIR      ! Directory where output files are written
MINBLOCKS          = 100000      ! blocks required on output disk
HEADER		   = NICMOS_ASSOCIATION_TABLE_HEADER
XHEADER		   = NICMOS_ASSOCIATION_TABLE_EXTENSION
EXTENSION          = *.tra	! This input file extension must exist
PRODUCTS       	   = COMPLETE   ! PRESENT/COMPLETE/NONE


ENV.OPUS_DB = OPUS_DB
ENV.SPSS_DB = SPSS_DB
ENV.DSQUERY = DSQUERY
ENV.ASSIST_DB = ASSIST_DB
