!*************************************************************************
! WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
! WARNING                                                         WARNING
! WARNING   The syntax of this file has changed (March 1999).     WARNING
! WARNING   Read the comments below before modifying and/or       WARNING
! WARNING   adding entries to this file.                          WARNING
! WARNING                                                         WARNING
! WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
!*************************************************************************
!
!-----------------------------------------------------------------------------
! modification history:
!
!   date    opr     who	    reason
! -------- -----  --------  --------------------------------------	
! 02/28/97 33036  MSwam     added APER_FOV,POSTARG1,POSTARG2,PEAKCENT,PKSEARCH
!				and REPELLER
! 03/14/97 33570  Rose	    Correct the CRCORR logic
! 03/19/97 33550  Rose	    Add EXPSCORR for the STIS
! 05/01/97 33755.1 WMiller  Expand TAR_TYPE keyword to string value
! 05/01/97 33946  WMiller   Modify PKSEARCH rules
! 05/05/97 33875  WMiller   Add MOFFTAB rules
! 05/16/97 34145  WMiller   Add rule for NRPTEXP default case
! 05/21/97 34004.1 MSwam    Set FOMXPOS and FOMYPOS for NICMOS
! 06/18/97 34211  Rose	    FOCUS = APEROBJ
! 06/18/97 34197  Rose	    APERTURE is converted using conv_discrete:oslit
! 07/14/97 34354  WMiller   Translate CONFIG keyword
! 07/15/97 34680  MSwam     Remove STIS MIRROR keyword (use OPTMODE instead)
! 07/18/97 34601  Slow      Remove setting STIS CRCORR to omit when targ=dark
! 07/18/97 34722  Slow      Add GLOBRATE and GLOBLIM for the STIS
! 07/28/97 34197.2 Rose	    Put back aperture for the STIS
! 08/28/97 34871  WMiller   Remove STIS APERTURE keyword
! 08/28/97 35048  WMiller   Remove NICMOS FOMXPOS and FOMYPOS rules
! 08/29/97 35127  MSwam     Set PORIENT for NICMOS from SS_PORNT
! 08/29/97 35127.1 MSwam    Always fill STIS SDSTFILE keyword
! 09/03/97 35160  Rose      NICMOS focus keyword rules
! 09/15/97 34206  MSwam     Set LAMPTAB = "N/A" when SCLAMP = NONE
! 09/18/97 35268  WMiller   Reverse STIS/MA# to CONFIG translation for STIS
! 09/18/97 35216  WMiller   Modify DOPPON rules/simplify DOPPCORR rules
! 09/22/97 34206.2 MSwam    Adjust LAMPTAB rule and add WAVECAL default
! 10/01/97 34206.3 MSwam    Adjust WAVECAL default
! 11/20/97 35686  WMiller   Add rules for PCTAB
! 12/05/97 35817  WMiller   Add REJ_RATE
! 12/05/97 35813  WMiller   Add SKYSUM
! 12/11/97 35866  WMiller   Remove NRPTEXP rule
! 12/12/97 35867  WMiller   Changes to STIS calib. switch rules
! 01/5/98  35987  Slowinski Modify X1DCORR switch rules
! 01/6/98  35987  Slowinski Modify CRCORR,X1DCORR,DISPCORR,HELCORR,FLUXCORR,
!                           BACKCORR,X2DCORR switch rules
! 01/22/98 35987  Slowinski Modify lamptab rules
! 02/09/98 35987  Slowinski Add switch rules for CUNIT1,CUNIT2
! 03/02/98 35987  Slowinski Add switch rules for ZSIGCORR
! 04/08/98 35987  Slowinski Modify wavecorr rules
! 08/03/98 35987  Slowinski Modify lorcorr rules
! 09/01/98 37320  Slowinski Modify Stis calibration setting for ccdamp 
! 09/10/98 36865_03Heller   Correct WF2 SS_ATOD setting
! 09/17/98 37381  Rose      Add NICMOS exposure timing constants
! 11/20/98 37623  Heller    Add FOC rules for GC
! 01/19/99 38059  Slowinski Modify dqicorr,wavecorr,x1dcorr,x2dcorr rules
! 01/26/98 37623_03  Heller Fix layering problem
! 02/08/99 38413  Rose	    Correct CCDOFST for the ACS
! 03/03/99 38615  Rose	    dont DARKCORR a DARK or FLAT a BIAS
! 03/17/99 38530_03 Heller  CDBSDATA should have a default value of FALSE.
! 04/01/99 38124  WMiller   New syntax; equation support; new pattern kw's
! 04/21/99 38906  WMiller   Modify GLOBRATE for STIS
! 04/26/99 38945  ROSE	    Move ACS OBSMODE setting to top of ACS list
! 05/25/99 38945_01 Rose    Set CRSPLIt for ACS
! 06/21/99 39271  WMiller   Set PATTERN2 rules for NIC
! 06/22/99 36235  MSwam     Split out cal switch rule classes, add t_ variables
! 06/30/99 39394  Rose	    Correct the ACS ASN_MTYP keyword
! 07/07/99 39394.1 WMiller  Apply changes in variant gen=94A
! 07/15/99 38930  Rose	    Update PRIMESI for ACS
! 07/29/99 39444  WMiller   Add APERTURE rule for STIS
! 08/06/99 39051  Rose      PR200L is on FILTER2
! 08/06/99 39050  Rose	    Set the SUBARRAY keyword for the ACS
! 08/24/99 36235_06 MSwam   Add STS rules to capture header structure for KWSET
! 09/23/99 39761  Slowinski change STS rules to not process ENGINEERING data 
! 10/05/99 39822  MSwam     change STS rules to process some ENGINEERING data
! 11/29/99 39985  Slowinski Keyword rules for some STIS AVAILABLE modes
! 01/17/00 40338  Slowinski Undo SM3/STIS temporary keyword rules changes
! 02/24/00 39985_01 MSwam   Add WAVECORR test for WAVECAL = N/A
! 03/08/00 40879  Rose	    Remove GEOCORR for the ACS
! 04/10/00 41296  Rose	    CCDCHIP for ACS subarrays
! 04/11/00 41296_01 Rose    CCDOFST for ACS is 1-based, not 0-based
! 05/03/00 41562  Slowinski CRCORR = OMIT  if more than 30 STIS repeats
! 05/05/00 40281  MSwam     Add cal switch rules for NIC SAA DARK
! 07/11/00 38729  Rose	    ACS Globrate rules
! 07/12/00 41470  Rose	    ACS calibration steps when CTE image
! 07/13/00 38226  Rose	    Get the ACS filter name from the telemetry
! 09/08/00 42184  MSwam     Add rules for ACS post-flash keywords
! 10/12/00 42407  MSwam     Add large set of STIS CFSTATUS rules
! 11/17/00 42444  MSwam     Add STIS switch and ref files for 2D scat removal
! 11/28/00 42589  Heller    Correct syntax for ACS CRSPILT
! 01/08/01 42609  Slowinski STIS X1DCORR and X2DCORR omit when no wavecal
! 02/09/01 43246  slowinski Set SC2DCORR to PERFORM for STIS echelle data 
! 02/14/01 43216  Rose      ACS CTE images workaround for NUMROWS=NUMCOLS=0
! 03/05/01 42444_01 MSwam   Change PSFTAB to TELTAB
! 03/06/01 42407_01 MSwam   Use TIME-TAG, not TIMETAG
! 03/07/01 42407_02 MSwam   Move PROPAPER test before CFSTATUS rules
! 05/02/01 43750  Slowinski Add condition for CFSTATUS rule
! 05/02/01 43439  Slowinski ACS IMAGETYP requirements
! 05/07/01 43736  Heller    WF2 FILTROT 
! 05/11/01 43795_01 Rose    Set COMPTYP=None if no compression
! 05/17/01 43911  MSwam     Correct ACS SHUTRPOS for SMGT resolver positions
! 06/04/01 43946  Rose      Additional ACS rules for CCDCHIP
! 07/13/01 43911_02 MSwam   Adjust SHUTRPOS rules
! 08/28/01 43736_01 Heller    WF2 FILTROT 
! 09/10/01 44464  slowinski Perform X1DCORR for stis prism data
! 09/12/01 44465  Slowinski Perform GEOCORR for stis image mode 
! 10/17/01 44327  MSwam     Turn on DITHCORR and PHOTCORR for ACS
! 10/22/01 44565  Slowinski NLINCORR perform for POST-SSA-DARK
! 11/20/01 44683  MSwam     Rule change for setting ACS OBSTYPE from DOORPOS
! 12/17/01 44663  Slowinski Nic BARSCORR settings
! 12/17/01 44736  Slowinski Acs PHOTCORR to perform
! 12/17/01 44855  Slowinski Acs ATODCORR / SHADCORR set to omit
! 12/17/01 44871  Slowinski Acs change POSTFLSH TO FLSHCORR
! 01/09/02 44989  Rose      Remove OVERFLOW rule for the ACS
! 01/14/02 44855  Slowinski Acs change BLEVCORR rules
! 01/31/02 45121  Rose      STIS OCCDHTAV=-1 if before 2001.182
! 02/06/02 45142  Slowinski ACS/SBC ACS/HRC flatcorr for prism observations
! 02/07/02 44949  Slowinski fix syntax for decimal compare - acs darkcorr
! 02/07/02 45142  Slowinski additional flatcorr test
! 02/14/02 44435  Rose      Add rules for the COS
! 02/20/02 45279  MSwam     Make BARSCORR rule for NCS 
! 02/15/02 45181  Sontag    Fix occurances of [0.0+x] syntax for <,> compares
! 03/20/02 45426  Slowinski ACS keyword mods
! 04/11/02 45388  MSwam     Add STIS TDS table rule
! 04/11/02 45571  MSwam     Add STIS TDC table rule
! 03/20/02 45426  Slowinski ACS keyword mods
! 04/11/02 45534  Slowinski ACS CCDCHIP mods
! 10/10/02 46769  Rose      WFC3 keywords
! 04/25/02 45670  Slowinski ACS LTV2 mods
! 06/13/02 45443  Slowinski ACS CCDOFSTA,B,C,D keyword 0 based
! 06/13/02 45611  Slowinski ACS DITHCORR renamed to DRIZCORR
! 06/13/02 45383  Slowinski STIS only AMP D for ccd data supported
! 06/13/02 45827  Slowinski Stis correct OCCDHTAV math compare
! 06/13/02 45836  Slowinski Stis change GRATING to OPT_ELEM
! 07/29/02 46256  Slowinski ACS flatcorr modifications
! 08/07/02 46297  Slowinski ACS OBSTYPE keyword update
! 10/03/02 46581  Slowinski ACS WFC FLATCORR rules for UV filters
! 10/10/02 46769  Rose      WFC3 keywords
! 11/11/02 46769  Rose      WFC3 TV keyword overrides
! 11/12/02 46357  MSwam     Add defaults for ACS SPEC_1,SPEC_2
! 11/21/02 46769  Rose      WFC3 ocr file needs translations
! 12/04/02 47075  Rose      COS keyword updates
! 03/12/03 47458  Slowinski STIS 0.2x0.2 aperture supported CCD & MAMA 1st grt
! 03/12/03 47138  Slowinski ACS EXPSCORR set to PERFORM
! 03/18/03 48019  Rose      WFC3 OSWVFRNT is now C61 not R8 
! 03/19/03 47720  Slowinski ASW	FLATCORR set to PERFORM for G800L filter
! 04/25/03 48332  Rose      Allow keyword group syntax
! 05/29/03 47074  Rose      COS keyword OSMnPOS
! 07/11/03 49086  Rose	    WFC3 keyword rules
! 07/11/03 49046  Rose      COS keyword rule changes
! 07/22/03 48513  Rose	    COS timetag WCS keywords
! 09/15/03 48251  Rose	    WFC2 rules for BANDWID, CENTRWV
! 09/22/03 49046_01 Rose    Remove redundant DISPAXIS rules for COS
! 10/07/03 49568  Rose	    Use lOSM2POS for the OPT_ELEM for COS TACQ
! 10/10/03 49086  Rose	    WFC3 LTV keyword updates
! 10/30/03 49468  MSwam     COS calibration switch rules (CSW)
! 11/10/03 49086  Rose      WFC3 long stimulus keyword checks
! 11/20/03 49086  Rose      WFC3: guard against NUMROWS=NUMCOLS=0
! 12/08/03 49926  MSwam     COS: DOPPON and DOPPCORR adjustments
! 01/12/04 48334  Slowinski WFC3: rules needed for wfc3 stimulus parameters
! 02/09/04 48251_01 MSwam   WF2: Fix BANDWID error for WF2
! 02/11/04 50364  MSwam     STI: Adjust OCSOBSQ to fit into Sybase smallint
! 03/01/04 49181  MSwam     ACS: Adjust INTTIME for short exposures
! 03/17/04 50488  Slowinski Remove all instances of obsolete FILL_ME
! 03/17/04 50513  Slowinski STIS: add CTECORR keyword for CCD spectroscopic
! 03/17/04 50410  Slowinski WFC3: quad filter rules
! 09/07/04 51055  MSwam     WFC3: Remove CCDOFST rules for IR
! 09/07/04 51855  MSwam     WFC3: Fix CCDGAIN, UVGAIN[A,B,C,D], NDFLTCOR
! 09/07/04 51955  MSwam     WFC3: Set SAMP_SEQ from ILASTNRM
! 09/14/04 50683  MSwam     WFC3: Set OSDNCORR from NDFLTCOR
! 09/21/04 51855  MSwam     WFC3: Work around for odd OSLAMBDA value
! 09/29/04 50410  MSwam     WFC3: Use a different filter source keyword
! 11/10/04 49125  Slowinski STIS: FLATCORR perform for slitless spectro data
! 04/20/05 48512  J.Baum    STIS: populate TIME-TAG WCS keywords
! 10/20/05 54041  MSwam     STIS: changes to WAVECORR,X[12]DCORR,CTECORR
! 10/20/05 54596  MSwam     WFC3: adjust QUAD filter rules
! 12/14/05 54633  MSwam     ACS: set CCDCHIP dependent on single amp first
! 01/04/05 54662  MSwam     ACS: turn off DRIZCORR for certain filter combos
! 03/02/06 55038  MSwam     ACS: turn off FLSHCORR
! 04/06/06 55364  MSwam     STIS: new supported grating-aperture combos
! 06/07/06 55364  MSwam     STIS: adjustment to FLUXCORR rules
! 06/14/06 55364  MSwam     STIS: add default for CTECORR
! 09/27/06 54548  MSwam     ACS: adjust OBSTYPE
! 11/21/06 56407  Sherbert  COS: Tagflash
! 11/30/06 56902  MSwam     COS: EXPTYPE rules
! 02/19/07 57218  Sherbert  WFC3: change keyword classes for TV rules
! 03/20/07 57553  Sherbert  Add COS, WF3 to PRIMESI determination and COST, WF3T
! 06/08/07 57553  MSwam     WFC3: remove LFLGCORR (copy/paste error from ACS)
! 07/23/07 58377  MSwam     COS: Add BRSTCORR,TDSCORR, comment out TV rules
! 09/12/07 58620  MSwam     WF2: Skip calibration for proposals 11036,11327
! 09/13/07 55484  MSwam     COS: Fix EXPTYPE for ACQ/SEARCH
! 09/28/07 57539  MSwam     WFC3: Make ZOFFCORR rule for all WFC3s
! 11/13/07 58807  Mary      CSW: omit FLATCORR if DETECTOR=FUV for COS
! 11/21/07 58905  Sherbert  WFC3: capitalize values for SQL query
! 12/18/07 59061  Mary      COS: add FPPOS, APERTURE, APER_FOV, fix LAMPUSED
! 12/21/07 58997  MSwam     WF2: add DRIZCORR
! 02/12/08 58997  MSwam     WF2: change DRIZCORR,FLATCORR settings
! 02/15/08 58997  MSwam     COS: Turn off TDSCORR until ref files are in CDBS
! 04/15/08 57464  MSwam     ALL: REFFRAME adjustment
! 06/24/08 60164  Mary      COS: OMIT BRSTCORR for all, but create test for later
! 07/21/08 60130  Sherbert  WFC3: UVIS shutter determination
! 08/24/08 60349  Mary      COS: SCANSIZE, PEAKNPOS, and PEAKCENT
! 08/25/08 60595  Mary      NIC: set BEPCORR to PERFORM when needed
! 09/03/08 60440  Mary      COS: removed LQXSHID, LQAPMID, LQOSM1ID, LQOSM2ID
!                           and LQOSMLAM as the SPT update removed the keywords
!                           NIC commented out the BEPCORR rule - next build
! 09/23/08 60722  Mary      COS: remove CENTRWV rule -- now populated by WCS
! 09/26/08 60817  Mary      COS: Duplicate DOPPON rule for DOPPONT
! 10/09/08 60595  MSwam     NIC: uncommented the BEPCORR rule
! 10/09/08 60890  Sherbert  ACS: fix post-SM4 WFCGAIN[A-D] in spt file
! 10/12/08 60960  Mary      COS: IF DOPPONT = FALSE then set ORBTPERT, DOPMAGT
!                                   and DOPZEROT to -1
! 10/14/08 48248  Sherbert  WF2: 2-filter cenwave and bandwid rules
! 10/15/08 60960  Mary      COS: change DOPPON and DOPPONT to strings FUV/NUV
! 10/15/08 60960  Mary      COS: IF DOPPONT = F set other DOP..T  values to -1
! 01/14/09 57755  MSwam     ACS: DRIZCORR=OMIT for WFC:F330W or F344N
! 01/15/09 61453  Sherbert  WFC3: Turn FLATCORR on for Grism obs
! 01/30/09 61631  MSwam     ACS: Alter SBC switches for externals w/BLOCK filter
! 01/30/09 61614  Sherbert  COS: new default calib switch settings
! 03/27/09 62053  Mary      COS: populate SEGMENT using DETECTHV
! 03/30/09 62053  Mary      COS: SEGMENT populated in code and then - see PR
! 05/12/09 62405  Sherbert  WFC3: IR DARK images and extra comments
! 05/27/09 62715  MSwam     NIC: Adjust TFBCALC and TFBDONE for some modes
! 06/01/09 62746  Sherbert  WFC3: Have ZSIGCORR follow DARKCORR
! 06/11/09 62834  Mary      COS: populate POSTARG1 and POSTARG2
! 06/12/09 62844  MSwam     WFC3: adjust several CORR switches
! 07/07/09 63007  MSwam     WF2: FLATCORR,DRIZCORR switch changes
! 07/31/09 63218  Sherbert  COS: turn off PHOTCORR for imaging wavecals
! 08/05/09 63218  Sherbert  COS: be certain CALIBRAT is T for imaging wavecals
! 09/19/09 62888  Mary      COS: ACQSLEWX and ACQSLEWY
! 10/05/09 63502  MSwam     WFPC2: FLATCORR,DRIZCORR
! 10/20/09 63748  MSwam     WFPC2: Allow CALIBRAT for proposals 11036,11327
! 10/27/09 63155  MSwam     ACS: CALIBRAT=F for Clamp&Sample,half-speed modes
! 10/27/09 63025  MSwam     ACS: BIASCORR,DARKCORR=OMIT for early exposures
! 11/16/09 63553  Mary      COS: Rework the TTAG IMAGING WCS keywords
! 11/17/09 62975  Mary      COS: Add the D1 or D2 case for LAMPPLAN
! 11/17/09 62975  Mary      COS: Change LAMPSET rules to use the new LAMPPLAN
! 02/18/10 64504  MSwam     WFC3: DRIZCORR switch rule change
! 02/26/10 64361  Mary      COS: Temp change SDQFLAGS from 184 to 188 w/test
! 05/10/10 65105  Sherbert  WFC3: IR NLINCORR change  
! 05/20/10 64819  RBelt     ASW: DARKCORR=OMIT when DETECTOR = SBC
! 05/30/10 64270  Mary      COS: MEVENTS = 10*LMEVENTS
! 06/16/10 65349  Sherbert  WFC3: UVIS INTTIME changes
! 09/20/10 65327  Mary      COS: update TCTYP2, TCTYP3, TCUNI2 and TCUNI3
! 10/18/10 65766  Mary      COS: CENWAVE = CENTRW for COS rawacq files
! 10/27/10 64849  Mary      COS: LAMP* and ACQ* for COS rawacq files
!                            uses the group option to manipulate the source
! 03/10/11 67719  Mary      COS: update SDQFLAGS and FLATCORR new ref files
! 05/09/11 68036  Mary      WFC3: UNITCORR = CRCORR in all cases.
! 05/09/11 67841  Mary      ACS:  change DRIZCORR rule for F330W and F344N
! 05/10/11 68201  Mary      COS: add rule for FPPOS where EXPTYPE=DARK
! 06/20/11 66634  Mary      COS: PLATESC set where EXPTYPE = ACQ/IMAGE
! 06/21/11 64778  Mary      COS: CENWAVE/CENTRWV/SS_CWAVE IMAGING vs SPECTRO.
! 07/12/11 68760  Mary      COS: LIFE_ADJ based on LAPXSTP
! 07/28/11 68298  MSwam     ACS: DQICORR,BLEVCORR adjusted for new CALACS
! 08/05/11 68336  Mary      COS: WALKCORR to OMIT if not FUV TIME-TAG
! 08/18/11 68298  MSwam     ACS: redelivery of BIASCORR,BLEVCORR for EPER/FPR
! 11/21/11 68760  Mary      COS: Fixed a cut and paste error in LIFE_ADJ rule
! 11/21/11 64778  Mary      COS: reinterpreted CENWAVE/CENTRWV/SS_CWAVE rules
! 11/28/11 64778  Mary      COS: Add rule OBSTYPE = IMAGING if TARGNAME=DARK
! 12/07/11 69942  MSwam     WFC3: Turn off RPTCORR for IR 
! 12/15/11 64778  Mary      COS: commented out TARGNAME=DARK changes.
! 12/14/11 69942  MSwam     WFC3: Leave RPTCORR as it was for IR
! 01/31/12 67272  Mary      add rule for PRIMESI when aper = OTA
! 02/17/12 70332  Mary      COS: put back TARGNAME=DARK rules.
! 02/19/12 70565  Mary      COS: new rules for APERTURE and APER_FOV
! 02/20/12 66780  Mary      COS: fix ACQSLEW, TARGEVNT, ACQFLOOR, ACQNPOS
!                         remove LAMPSTAT,LAMPTIME,LAMPMXCR,LAMPMYCR,LAMPEVNT
! 02/20/12 68905  Mary      COS:add USER rotation for ACQ keywords.
! 03/19/12 70895  MSwam     ACS: set PCTECORR
! 03/27/12 68727  Mary      COS: update COS SDQFLAGS to include gain sag
! 03/29/12 70590  Mary      COS: new LIFE_ADJ rules rewrite 1 and add 2
! 04/09/12 71070  Sherbert  WF3: associate IR darks to avoid catalog issues
! 05/31/12 71240  Sherbert  WF3: tweak flshcorr rule just a little
! 07/11/12 71240  MSwam     WF3: added FLASHCUR translations for ref file match
!-----------------------------------------------------------------------------

!-----------------------------------------------------------------------------
!
!  File: KEYWORD_RULES.LIS
!
!  Purpose:  This file provides the inputs to the KR_rules_pkg.
!    This package should be designed around a table which contains, for
!    each instrument, a set of rules for determining the value of a particular
!    keyword.  
!
!  Conventions:
!  ------------------------------------------
!
!    A comment line begins with a '!' character.  These are ignored by
!    the rules package.
!
!    The lines are freely formatted, but white-space is significant
!
!    The fields are:
!
!    CLASS:    	The rule class (e.g. STI, WF2, STS, W2S, etc.)
!    NAME:    	Keyword to be set
!    DEFAULT:	Value to set the keyword to if....
!    KEYWORD:	this keyword..
!    COMPARE:	has this relation..
!    		(The allowable operators in the 'COMPARE' field are:
!        		=, !=, >, <)
!    VALUE:		to this value.
!
!    TEST:    	The order of the individual tests
!    		If you want to join two tests (for the SAME keyword)
!    		with an AND, give them the same test number.  If you
!    		want to join two tests with an OR, do not give
!    		them the same test number.
! 
!  Current CLASSes in use (please update if you add new ones):
!  ------------------------------------------
!
!    ALL  - rules that are always, automatically applied
!    ACS  - ACS keyword rules
!    ASW  - ACS calibration switches or items needed to set those switches
!    COS  - COS keyword rules
!    CSW  - COS calibration switches
!    FC2  - FOC keyword rules
!    FCS  - FOC calibration switches
!    NIC  - NIC keyword rules
!    NCS  - NIC calibration switches
!    STI  - STIS keyword rules
!    STS  - STIS calibration switches
!    WF2  - WFPC2 keyword rules
!    W2S  - WFPC2 calibration switches
!    WF3  - WFC3 keyword rules
!    WF3T - WFC3 Thermal Vac keyword overrides
!    W3C  - WFC3 calibration switches
!    W3CT - WFC3 Thermal vac calibration switch overides
!
!
!  Indirection:
!  ------------------------------------------
!
!    In either the DEFAULT or the VALUE field, if you want to refer
!    to the dynamic value of a keyword rather than a constant, enclose
!    the keyword name in curly brackets {}.  For example:
!    	if (OOPTMODE != OPTVALUE) OPTMODE = OPTTYPE
!     would be entered:
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
!STI 	OPTMODE   {OPTTYPE}	1   OOPTMODE  !=	{OPTVALUE}
!
!
!  Wildcarding:
!  ------------------------------------------
!
!	A constant in the VALUE field may be wildcarded with the '?' symbol,
!       BUT the wildcard can ONLY APPEAR AT THE BEGIN OR END (not embedded).
!
!	For example in the rule below VALUE matches MIR1, MIR2, MIR3, MIRUVL,
!       or for a similar case, ?MIR matches ALPHAMIR, BETAMIR, and GAMMAMIR.
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
!STI	OBSTYPE   IMAGING       1   MIRROR    =        MIR?
!STI    OBSTYPE   SPECTROSCOPIC 2   T         =        T
!
!
!  Forcing a value:
!  ------------------------------------------
!
!	In the last line above, OBSTYPE is given the value SPECTROSCOPIC
!	if no previous test succeeded.  
!
!  Getting and setting group-specific values:
!  ------------------------------------------
!
!       In the NAME, KEYWORD, DEFAULT, or VALUE field, if the latter
!       two refer to a dynamic value of a keyword, you can specify which
!       group of data to get or set:
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
!STI 	OPTMODE(1) {OPTTYPE(1)}	 1   OOPTMODE    =	{OPTVALUE}
!WFPC2  LPKTTIM   {LPKTTIME(3)}  1       T       =      T
!COS    P1_PTM    FIXED          1   P2_AWF(2)   =      UNKNOWN
!
!       The default group number if not specified will be group zero
!       which normally contains the primary header and the header of
!       the first extension.  Group 1 is actually the keyword values
!       in the second extension.
!
!  Setting all the groups of a keyword:
!  ------------------------------------
!
!       Of course this depends on the definition of "all".  In the
!       syntax below keyword TARGCAT stands as a model for the
!       extension of PROGRMID: the number of groups for the keyword
!       PROGRMID will be the same as for TARGCAT.  The action taken
!       in this rule is:
!               for (i=1; i<=number_of_TARGCAT_groups; ++i) {
!                   PROGRMID(i) = PROGRMID(0);
!               }
!
!ACS    PROGRMID(i) {PROGRMID}   1   TARGCAT     =     {TARGCAT}
!
!       Note that the symbol 'i' above can be any non-numeric character,
!       and that the model keyword must appear on both sides of the '='
!
!  Substrings:
!  ------------------------------------------
!
!       The default value can be a substring expression of the form (n:m).
!       For example, if you want to remove the IRAF file preface from a
!       reference file name (eg: OTAB$M9A16591O_APD.FITS), you would specify:
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
!STIS    APDESTAB  {APDESTAB(5:)}  1 APDESTAB   =        OTAB$?
!
!
!  Arithmetic equations:
!  ------------------------------------------
!
!	Both the DEFAULT and VALUE fields may contain an arithmetic
!	equation. Equations must be surrounded by square brackets and
!	may contain a dynamic keyword value (see Indirection above).
!	The equation must not contain spaces unless the whole field,
!	including square brackets, is quoted. Supported operators, in
!	highest to lowest precedence order and followed by examples, are
!	listed below ("a" and "b" below are operands):
!
!	Round up to nearest integer   CEIL(a)   (Ex. CEIL(3.2) = 4)
!	Round down to nearest integer FLOOR(a)  (Ex. FLOOR(-2.4) = -3)
!	Involution (exponentiation)   a^b       (Ex. 3.0^2 = 9)
!	Division                      a/b       (Ex. 10/3 = 3)
!	                                        (Ex. 10.0/3 = 3.333333)
!	Multiplication                a*b       (Ex. 2*3 = 6)
!	Modulo                        a%b       (Ex. 10%3 = 1)
!	Addition                      a+b       (Ex. 23+1= 24)
!	Subtraction                   a-b       (Ex. -4--5 = 1)
!	Bit-wise AND                  a&b       (Ex. 3&1 = 1)
!	Bit-wise exclusive-OR         a~b       (Ex. 2~3 = 1)
!	Bit-wise OR                   a|b       (Ex. 2|3 = 3)
!
!	Parentheses can be used to modify the order of evaluation and
!	care should be taken to ensure proper evaluation order in
!	complicated equations. The equation solver distinguishes between
!	integer and floating-point arithmetic (see the examples above for
!	division) and the usual cautions apply when using = with
!	floating-point results. 
!
!	For example, to express the rule:
!		if (PATTERN == "BOX") P1_PSPAC = 0.559 * BOXSCALE
!	you would write:
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
!STI 	P1_PSPAC [.559*{BOXSCALE}] 1 PATTERN  =		BOX
!
!
!  Temporary Rule Variables (t_)
!  ------------------------------------------
!
!        A rule-writer can ask for the creation of a temporary
!        rule variable by using a keyword named "t_XXXXXX" as the
!        destination of a rule result.  The XXXXXX can be any characters,
!        (all 6 do not need to be filled) but the "t_" must be in lowercase.  
!        Once a variable with such a name is written to once, it can be 
!        used anywhere else in later rules.  These variables are temporary
!        in the sense that a predefined keyword does not need to exist
!        in the instrument header for these variable names.
!        They are created and filled as the rules are evaluated.
!        This capability can be used to conveniently
!        reduce a set of complex tests to a single result, which can
!        be used to make later rules simpler to read and write.
!
!        For example,
!
! slitless = [F25?|50?|F28?|25?|6X6]
!
!STS     t_SLITLS  T             1       APERTURE  = F25?
!STS     t_SLITLS  T             2       APERTURE  = 50?
!STS     t_SLITLS  T             3       APERTURE  = F28?
!STS     t_SLITLS  T             4       APERTURE  = 25?
!STS     t_SLITLS  T             5       APERTURE  = 6X6
!STS     t_SLITLS  F             6       T = T
!
!        can be used to define a subset of apertures, and the temporary
!        rule variable "t_SLITLS" can then be used in later rules:
!STS     FLATCORR  OMIT          10      OBSTYPE   =     SPECT?
!STS     FLATCORR  OMIT          10      t_SLITLS  =     T
!
!
!  Debugging help:
!  ------------------------------------------
! 
!        During rules development the behavior of new rules can be unexpected.
!        The special DEBUG_KW rule can be used to increase the number of
!        debug (level -D-) messages during the KW_apply_rules function. This
!        special rule ignores the test conditions, so it should be written as a
!        T = T test to avoid confusion. The default value of this rule is the
!        value of a rule NAME field for which the special debug messages
!        should be generated. If the default value ALL is used then every 
!        rule gets the extra debug messages.  
!     
!        For example, to check the tests for WFPC2 keyword t_WAVLEN use::
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!WFPC2  DEBUG_KW  t_WAVLEN     1       T        =         T
!     or
!WFPC2  DEBUG_KW  ALL          1       T        =         T
!
!
!  Special Values:
!  ------------------------------------------
!  BLANK is not the literal string, but means an empty string
!  Adding a ? before it may make it literal.  Hearsay.  Untested.
!
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

!===========================================================================
!                   START RULES
! get planned start time in form: YYYYDDD
!---------------------------------------------------------------------------
ALL     t_EXPDATE  [1000.0*{PSTRTIME}]  1       T = T
!
!
! SDN 50364: PATCH for STIS OCSOBSQ problem in archiving
! This will scale an unsigned 16-bit value into a signed 16-bit value
! so that it can be loaded into a Sybase smallint field type.
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
STI     OCSOBSQ [{OCSOBSQ}-32768]       1       T = T
!---------------------------------------------------------------------------
!
!  12/1/1995     H. Garner    STIS Optical Mode Cross-Reference
!
!	if      (OOPTMODE == 0x110) OPTMODE = "G140L"
!	else if (OOPTMODE == 0x120) OPTMODE = "G140M"
!	else if ...
!	else     OPTMODE = "UNKNOWN"
!
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
STI	OPTMODE   G140L         1   OOPTMODE  =         272	!0x110
STI 	OPTMODE   G140M		2   OOPTMODE  =		288	!0x120
STI	OPTMODE	  E140M		3   OOPTMODE  =         304	!0x130
STI     OPTMODE   E140H         4   OOPTMODE  =		320	!0x140
STI	OPTMODE   MIRCUV        5   OOPTMODE  =         352	!0x160
STI 	OPTMODE   MIRFUV	6   OOPTMODE  =		367	!0x16F
STI	OPTMODE	  X140M		7   OOPTMODE  =         371	!0x173
STI     OPTMODE   X140H         8   OOPTMODE  =		372	!0x174
STI	OPTMODE   G230L         9   OOPTMODE  =         528	!0x210
STI 	OPTMODE   G230M	       10   OOPTMODE  =		544	!0x220
STI	OPTMODE	  E230M	       11   OOPTMODE  =         560	!0x230
STI     OPTMODE   E230H        12   OOPTMODE  =		576	!0x240
STI	OPTMODE   PRISM        13   OOPTMODE  =         592	!0x250
STI 	OPTMODE   MIRNUV       14   OOPTMODE  =		608	!0x260
STI	OPTMODE	  X230M	       15   OOPTMODE  =         627	!0x273
STI     OPTMODE   X230H        16   OOPTMODE  =		628	!0x274
STI	OPTMODE   G230LB       17   OOPTMODE  =         539	!0x21B
STI 	OPTMODE   G230MB       18   OOPTMODE  =		555	!0x22B
STI	OPTMODE	  G430L        19   OOPTMODE  =         784	!0x310
STI     OPTMODE   G430M        20   OOPTMODE  =		800	!0x320
STI	OPTMODE   MIRVIS       21   OOPTMODE  =         864	!0x360
STI 	OPTMODE   G750L        22   OOPTMODE  =	       1040	!0x410
STI	OPTMODE	  G750M	       23   OOPTMODE  =        1056	!0x420
STI     OPTMODE   MIRVIS       24   OOPTMODE  =	       1120	!0x460
STI     OPTMODE   UNKNOWN      25   T         =        T
!
STI	OPT_ELEM  {OPTMODE}	1   T	      =        T
!
!	It is assumed that if the mirror was in place, the OBSTYPE
!	is IMAGING, otherwise it's SPECTROSCOPIC
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
STI	OBSTYPE   IMAGING       1   OPTMODE   =        MIR?
STI	OBSTYPE   IMAGING       2   TARGNAME  =        BIAS
STI	OBSTYPE   IMAGING       3   TARGNAME  =        DARK
STI     OBSTYPE   SPECTROSCOPIC 4   T         =        T
!
!
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
STI	LAMPSET   10.0		1   PCN1LAMP  =		0
STI	LAMPSET   10.0		2   PCN2LAMP  =		0
STI	LAMPSET   10.0		3   PCN3LAMP  =		0
STI	LAMPSET   3.8		4   PCN1LAMP  =		1
STI	LAMPSET   3.8		5   PCN2LAMP  =		1
STI	LAMPSET   3.8		6   PCN3LAMP  =		1
STI	LAMPSET   20.0		7   PCN1LAMP  =		2
STI	LAMPSET   20.0		8   PCN2LAMP  =		2
STI	LAMPSET   20.0		9   PCN3LAMP  =		2
STI	LAMPSET	  0.0		10  T	      =         T
!
!	determine the value of DISPAXIS:
!
STI	DISPAXIS  0 		1   OBSTYPE   =	        IMAGING
STI     DISPAXIS  1             2   OPT_ELEM  !=	X?
STI	DISPAXIS  2		3   OPT_ELEM  =         X?
!
! PR 36194
STI     CUNIT1    DEG           1   DISPAXIS  =         2		   
STI     CUNIT2    ANGSTROM      1   DISPAXIS  =         2		   
!
STI     BINAXIS1  1      	1   BINAXIS1  = 	0
STI     BINAXIS2  1      	1   BINAXIS2  = 	0
!
!	set the CCD bias subtraction value for Target Acqs
STI	CCDBIASS  T		1   OBIASUBT  >		0
STI	CCDBIASS  F      	2   T         =         T
!  PR 33642 CCDGAINn rule settings.
STI	CCDGAIN1  1		1   OGAIN1    =		BLANK
STI	CCDGAIN1  1             2   OGAIN1    = 	0
STI	CCDGAIN1  2		3   OGAIN1    = 	1
STI	CCDGAIN1  4          	4   OGAIN1    = 	2
STI	CCDGAIN1  8		5   OGAIN1    = 	3
STI	CCDGAIN2  1		1   OGAIN2    =		BLANK
STI	CCDGAIN2  1             2   OGAIN2    = 	0
STI	CCDGAIN2  2		3   OGAIN2    = 	1
STI	CCDGAIN2  4          	4   OGAIN2    = 	2
STI	CCDGAIN2  8		5   OGAIN2    = 	3
STI	CCDGAIN3  1		1   OGAIN3    =		BLANK
STI	CCDGAIN3  1             2   OGAIN3    = 	0
STI	CCDGAIN3  2		3   OGAIN3    = 	1
STI	CCDGAIN3  4          	4   OGAIN3    = 	2
STI	CCDGAIN3  8		5   OGAIN3    = 	3
STI	CCDGAIN4  1		1   OGAIN4    =		BLANK
STI	CCDGAIN4  1             2   OGAIN4    = 	0
STI	CCDGAIN4  2		3   OGAIN4    = 	1
STI	CCDGAIN4  4          	4   OGAIN4    = 	2
STI	CCDGAIN4  8		5   OGAIN4    = 	3
!  PR 33642 CCDGAIN rule settings.
STI	CCDGAIN	  {CCDGAIN1}	1   CCDAMP    = 	A
STI	CCDGAIN	  {CCDGAIN2}	2   CCDAMP    =		B
STI	CCDGAIN	  {CCDGAIN3}	3   CCDAMP    =	  	C
STI	CCDGAIN   {CCDGAIN4} 	4   CCDAMP    =	 	D
STI	CCDGAIN   0		5   T         = 	T
!
!	CORNERA1, CORNERA2 are incorrect for full images (Kutina 09/10/96)
!	...and full MAMAs
!
STI	CORNERA2  0		1   OSUBNROW  = 	1044
STI	CORNERA2  0		1   DETECTOR  = 	CCD?
STI	CORNERA1  0		1   OSUBNCOL  =		1064
STI	CORNERA1  0		1   DETECTOR  = 	CCD?
STI	CORNERA2  0		1   OSUBNROW  = 	2048
STI	CORNERA2  0		1   DETECTOR  = 	?MAMA
STI	CORNERA1  0		1   OSUBNCOL  =		2048
STI	CORNERA1  0		1   DETECTOR  = 	?MAMA
!
!	The observation is a subimage if the startpix is nonzero:
!
STI	SUBARRAY  T		1   CORNERA1  >		0
STI	SUBARRAY  T		2   CORNERA2  >		0
STI	SUBARRAY  F		3   T	      = 	T
!
!
!	the EXPFLAG is determined by the number of interrupts:
!
STI	EXPFLAG   INDETERMINATE 1   NINTERPT  >         4
STI	EXPFLAG   INTERRUPTED   2   NINTERPT  > 	0
STI	EXPFLAG   NORMAL        3   T         =         T
!
!
!	The MODE_ID is a simple lookup table based on OOPTMODE
!
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
STI	MODE_ID   1.1		1   OOPTMODE  =         272	!0x110
STI 	MODE_ID   1.2		2   OOPTMODE  =		288	!0x120
STI	MODE_ID	  1.3		3   OOPTMODE  =         304	!0x130
STI     MODE_ID   1.4           4   OOPTMODE  =		320	!0x140
STI	MODE_ID   1.6           5   OOPTMODE  =         352	!0x160
STI 	MODE_ID   1.6F	        6   OOPTMODE  =		367	!0x16F
STI	MODE_ID	  1.7x3		7   OOPTMODE  =         371	!0x173
STI     MODE_ID   1.7x4         8   OOPTMODE  =		372	!0x174
STI	MODE_ID   2.1           9   OOPTMODE  =         528	!0x210
STI 	MODE_ID   2.2	       10   OOPTMODE  =		544	!0x220
STI	MODE_ID	  2.3	       11   OOPTMODE  =         560	!0x230
STI     MODE_ID   2.4          12   OOPTMODE  =		576	!0x240
STI	MODE_ID   2.5          13   OOPTMODE  =         592	!0x250
STI 	MODE_ID   2.6          14   OOPTMODE  =		608	!0x260
STI	MODE_ID	  2.7x3	       15   OOPTMODE  =         627	!0x273
STI     MODE_ID   2.7x4        16   OOPTMODE  =		628	!0x274
STI	MODE_ID   2.1B         17   OOPTMODE  =         539	!0x21B
STI 	MODE_ID   2.2B         18   OOPTMODE  =		555	!0x22B
STI	MODE_ID	  3.1          19   OOPTMODE  =         784	!0x310
STI     MODE_ID   3.2          20   OOPTMODE  =		800	!0x320
STI	MODE_ID   3.6          21   OOPTMODE  =         864	!0x360
STI 	MODE_ID   4.1          22   OOPTMODE  =	       1040	!0x410
STI	MODE_ID	  4.2	       23   OOPTMODE  =        1056	!0x420
STI     MODE_ID   4.6          24   OOPTMODE  =	       1120	!0x460
!
!
STI    TFPFNAME  A25		1  SLITNUM = 1
STI    TFPFNAME  F25LYA		2  SLITNUM = 2
STI    TFPFNAME  F25QTZ		3  SLITNUM = 3
STI    TFPFNAME  F25CN182	4  SLITNUM = 4
STI    TFPFNAME  F25C3		5  SLITNUM = 5
STI    TFPFNAME  F25MG2		6  SLITNUM = 6
STI    TFPFNAME  F25SRF2	7  SLITNUM = 7
STI    TFPFNAME  F25NDQ		8  SLITNUM = 8
STI    TFPFNAME  F25CN270	9  SLITNUM = 9
STI    TFPFNAME  A50		10  SLITNUM = 10
STI    TFPFNAME  S2X2		11  SLITNUM = 11
STI    TFPFNAME  S36X050P	12  SLITNUM = 12
STI    TFPFNAME  S36X050N	13  SLITNUM = 13
STI    TFPFNAME  S36X600P	14  SLITNUM = 14
STI    TFPFNAME  S36X600N	15  SLITNUM = 15
STI    TFPFNAME  S100X060	16  SLITNUM = 16
STI    TFPFNAME  S100X090	17  SLITNUM = 17
STI    TFPFNAME  S100X200	18  SLITNUM = 18
STI    TFPFNAME  S200X060	19  SLITNUM = 19
STI    TFPFNAME  S200X090	20  SLITNUM = 20
STI    TFPFNAME  S200X200	21  SLITNUM = 21
STI    TFPFNAME  S330X060	22  SLITNUM = 22
STI    TFPFNAME  S330X090	23  SLITNUM = 23
STI    TFPFNAME  S330X200	24  SLITNUM = 24
STI    TFPFNAME  S1X060		25  SLITNUM = 25
STI    TFPFNAME  S1X200		26  SLITNUM = 26
STI    TFPFNAME  S200X500	27  SLITNUM = 27
STI    TFPFNAME  S6X060		28  SLITNUM = 28
STI    TFPFNAME  S6X200		29  SLITNUM = 29
STI    TFPFNAME  S100X025	30  SLITNUM = 30
STI    TFPFNAME  S500X500	31  SLITNUM = 31
STI    TFPFNAME  S6X500		32  SLITNUM = 32
STI    TFPFNAME  S6X6		33  SLITNUM = 33
STI    TFPFNAME  SL050		34  SLITNUM = 34
STI    TFPFNAME  SL100		35  SLITNUM = 35
STI    TFPFNAME  SL200		36  SLITNUM = 36
STI    TFPFNAME  SL500		37  SLITNUM = 37
STI    TFPFNAME  SL2		38  SLITNUM = 38
STI    TFPFNAME  SLBAR1		39  SLITNUM = 39
STI    TFPFNAME  S200X60A	40  SLITNUM = 40
STI    TFPFNAME  S200X60B	41  SLITNUM = 41
STI    TFPFNAME  S200X60C	42  SLITNUM = 42
STI    TFPFNAME  S200X60D	43  SLITNUM = 43
STI    TFPFNAME  S200X60E	44  SLITNUM = 44
STI    TFPFNAME  S200A		45  SLITNUM = 45
STI    TFPFNAME  S200B		46  SLITNUM = 46
STI    TFPFNAME  S200C		47  SLITNUM = 47
STI    TFPFNAME  S200D		48  SLITNUM = 48
STI    TFPFNAME  S200E		49  SLITNUM = 49
STI    TFPFNAME  A50CORON	50  SLITNUM = 50
STI    TFPFNAME  S050X29	51  SLITNUM = 51
STI    TFPFNAME  S090X29	52  SLITNUM = 52
STI    TFPFNAME  S200X29	53  SLITNUM = 53
STI    TFPFNAME  F28X50LP	54  SLITNUM = 54
STI    TFPFNAME  F28X50O3	55  SLITNUM = 55
STI    TFPFNAME  F28X50O2	56  SLITNUM = 56
STI    TFPFNAME  F25ND6		57  SLITNUM = 57
STI    TFPFNAME  F25ND5		58  SLITNUM = 58
STI    TFPFNAME  S31X050A	59  SLITNUM = 59
STI    TFPFNAME  S31X050B	60  SLITNUM = 60
STI    TFPFNAME  S31X050C	61  SLITNUM = 61
STI    TFPFNAME  S330X050	62  SLITNUM = 62
STI    TFPFNAME  S200X050	63  SLITNUM = 63
STI    TFPFNAME  S050X31B	64  SLITNUM = 64
STI    TFPFNAME  S050X31A	65  SLITNUM = 65
STI    TFPFNAME  SL050R1	66  SLITNUM = 66
STI    TFPFNAME  SL050R2	67  SLITNUM = 67
STI    TFPFNAME  SL100R1	68  SLITNUM = 68
STI    TFPFNAME  SL100R2	69  SLITNUM = 69
STI    TFPFNAME  SL200R1	70  SLITNUM = 70
STI    TFPFNAME  SL200R2	71  SLITNUM = 71
STI    TFPFNAME  SL500R1	72  SLITNUM = 72
STI    TFPFNAME  SL500R2	73  SLITNUM = 73
STI    TFPFNAME  SL2R1		74  SLITNUM = 74
STI    TFPFNAME  Sl2R2		75  SLITNUM = 75
STI    TFPFNAME  SLBAR2		76  SLITNUM = 76
STI    TFPFNAME  SLBAR3		77  SLITNUM = 77
STI    TFPFNAME  UNKNOWN        78  T       = T
!
!
STI     FILTER  Clear    		1  SLITNUM = 1
STI     FILTER  Lyman_Alpha    		2  SLITNUM = 2
STI     FILTER  Crystal_Quartz    	3  SLITNUM = 3
STI     FILTER  182nm_MBP    		4  SLITNUM = 4
STI     FILTER  191nm_NBP_(CIII)    	5  SLITNUM = 5
STI     FILTER  280nm_NBP(MgII)    	6  SLITNUM = 6
STI     FILTER  Strontium_Fluoride    	7  SLITNUM = 7
STI     FILTER  ND_quad_step    	8  SLITNUM = 8
STI     FILTER  270nm_MBP    		9  SLITNUM = 9
STI     FILTER  Clear			10  SLITNUM > 9
STI     FILTER  Clear			10  SLITNUM < 54
STI     FILTER  Long_Pass		11  SLITNUM = 54
STI     FILTER  OIII			12  SLITNUM = 55
STI     FILTER  OII			13  SLITNUM = 56
STI     FILTER  ND_3			14  SLITNUM = 57
STI     FILTER  ND_5			15  SLITNUM = 58
STI     FILTER  ND_0.4			16  SLITNUM = 59
STI     FILTER  ND_0.8			17  SLITNUM = 60
STI     FILTER  ND_1.2			18  SLITNUM = 61
STI     FILTER  ND_3			19  SLITNUM = 62
STI     FILTER  ND_2			20  SLITNUM = 63
STI     FILTER  ND_0.4			21  SLITNUM = 64
STI     FILTER  ND_0.8			22  SLITNUM = 65
STI     FILTER  Clear			23  SLITNUM > 65
!
!
!
STI     SLITSIZE  24.7x24.7   	1  SLITNUM = 1
STI     SLITSIZE  24.7x24.7   	2  SLITNUM = 2
STI     SLITSIZE  24.7x24.7   	3  SLITNUM = 3
STI     SLITSIZE  24.7x24.7   	4  SLITNUM = 4
STI     SLITSIZE  24.7x24.7   	5  SLITNUM = 5
STI     SLITSIZE  24.7x24.7   	6  SLITNUM = 6
STI     SLITSIZE  24.7x24.7   	7  SLITNUM = 7
STI     SLITSIZE  24.7x24.7   	8  SLITNUM = 8
STI     SLITSIZE  24.7x24.7   	9  SLITNUM = 9
STI     SLITSIZE  50x50   	10  SLITNUM = 10
STI     SLITSIZE  2x2   	11  SLITNUM = 11
STI     SLITSIZE  26x.05-0.2   	12  SLITNUM = 12
STI     SLITSIZE  26x.05-0.2   	13  SLITNUM = 13
STI     SLITSIZE  26x0.6-2   	14  SLITNUM = 14
STI     SLITSIZE  26x0.6-2   	15  SLITNUM = 15
STI     SLITSIZE  0.1x0.063   	16  SLITNUM = 16
STI     SLITSIZE  0.1x0.09   	17  SLITNUM = 17
STI     SLITSIZE  0.1x0.2   	18  SLITNUM = 18
STI     SLITSIZE  0.2x0.063   	19  SLITNUM = 19
STI     SLITSIZE  0.2x0.09   	20  SLITNUM = 20
STI     SLITSIZE  0.2x0.2   	21  SLITNUM = 21
STI     SLITSIZE  0.33x0.063   	22  SLITNUM = 22
STI     SLITSIZE  0.33x0.09   	23  SLITNUM = 23
STI     SLITSIZE  0.33x0.2   	24  SLITNUM = 24
STI     SLITSIZE  1x0.063   	25  SLITNUM = 25
STI     SLITSIZE  1x0.2   	26  SLITNUM = 26
STI     SLITSIZE  0.2x0.5   	27  SLITNUM = 27
STI     SLITSIZE  6x0.063   	28  SLITNUM = 28
STI     SLITSIZE  6x0.2   	29  SLITNUM = 29
STI     SLITSIZE  0.1x0.025   	30  SLITNUM = 30
STI     SLITSIZE  0.5x0.5   	31  SLITNUM = 31
STI     SLITSIZE  6x0.2   	32  SLITNUM = 32
STI     SLITSIZE  6x6   	33  SLITNUM = 33
STI     SLITSIZE  52x0.049   	34  SLITNUM = 34
STI     SLITSIZE  52x0.1   	35  SLITNUM = 35
STI     SLITSIZE  52x0.2   	36  SLITNUM = 36
STI     SLITSIZE  52x0.5   	37  SLITNUM = 37
STI     SLITSIZE  52x2  	38  SLITNUM = 38
STI     SLITSIZE  52x0.1   	39  SLITNUM = 39
STI     SLITSIZE  0.2x0.063   	40  SLITNUM = 40
STI     SLITSIZE  0.2x0.063   	41  SLITNUM = 41
STI     SLITSIZE  0.2x0.063   	42  SLITNUM = 42
STI     SLITSIZE  0.2x0.063   	43  SLITNUM = 43
STI     SLITSIZE  0.2x0.063   	44  SLITNUM = 44
STI     SLITSIZE  0.2x0.2   	45  SLITNUM = 45
STI     SLITSIZE  0.2x0.2   	46  SLITNUM = 46
STI     SLITSIZE  0.2x0.2   	47  SLITNUM = 47
STI     SLITSIZE  0.2x0.2   	48  SLITNUM = 48
STI     SLITSIZE  0.2x0.2   	49  SLITNUM = 49
STI     SLITSIZE  50x50   	50  SLITNUM = 50
STI     SLITSIZE  0.054x29   	51  SLITNUM = 51
STI     SLITSIZE  0.09x29   	52  SLITNUM = 52
STI     SLITSIZE  0.2x29   	53  SLITNUM = 53
STI     SLITSIZE  28x50   	54  SLITNUM = 54
STI     SLITSIZE  28x50   	55  SLITNUM = 55
STI     SLITSIZE  28x50   	56  SLITNUM = 56
STI     SLITSIZE  24.7x24.7   	57  SLITNUM = 57
STI     SLITSIZE  24.7x24.7   	58  SLITNUM = 58
STI     SLITSIZE  31x0.05   	59  SLITNUM = 59
STI     SLITSIZE  31x0.05   	60  SLITNUM = 60
STI     SLITSIZE  31x0.05   	61  SLITNUM = 61
STI     SLITSIZE  0.33x0.05   	62  SLITNUM = 62
STI     SLITSIZE  0.2x0.05   	63  SLITNUM = 63
STI     SLITSIZE  0.05x31   	64  SLITNUM = 64
STI     SLITSIZE  0.05x31   	65  SLITNUM = 65
STI     SLITSIZE  52x0.049   	66  SLITNUM = 66
STI     SLITSIZE  52x0.049   	67  SLITNUM = 67
STI     SLITSIZE  52x0.1   	68  SLITNUM = 68
STI     SLITSIZE  52x0.1   	69  SLITNUM = 69
STI     SLITSIZE  52x0.2   	70  SLITNUM = 70
STI     SLITSIZE  52x0.2   	71  SLITNUM = 71
STI     SLITSIZE  52x0.5   	72  SLITNUM = 72
STI     SLITSIZE  52x0.5   	73  SLITNUM = 73
STI     SLITSIZE  52x2.0   	74  SLITNUM = 74
STI     SLITSIZE  52x2.0   	75  SLITNUM = 75
STI     SLITSIZE  52x0.1   	76  SLITNUM = 76
STI     SLITSIZE  52x0.1   	77  SLITNUM = 77
!
STI	SS_FILTR  F28X50LP	1	APEROBJ   =	OV28X50LP
STI	SS_FILTR  F28X50OIII	2	APEROBJ	  = 	OV28X50O3
STI	SS_FILTR  F28X50OII	3	APEROBJ	  = 	OV28X50O2
STI	SS_FILTR  F25ND3	4	APEROBJ	  =	OF25ND3
STI	SS_FILTR  F25ND3	5	APEROBJ	  =	ON25ND3
STI	SS_FILTR  F25ND3	6	APEROBJ	  =	OV25ND3
STI	SS_FILTR  F25ND5	7	APEROBJ	  =	OF25ND5
STI	SS_FILTR  F25ND5	8	APEROBJ	  =	ON25ND5
STI	SS_FILTR  F25ND5	9	APEROBJ	  =	OV25ND5
STI	SS_FILTR  BLANK		10	T	  = 	T
!
!	Determine if this is an ACQ or ACQ/PEAK:
!
STI	ODATATYP  ACQ/PEAK      1       OFLUX02   >    0
STI     ODATATYP  ACQ           2       OTARGX    >    0
STI     ODATATYP  ACQ           3       OTARGY    >    0
!
! 	Which calibration lamp is lit (if any)?
!
STI	SCLAMP	  KRYPTON	1	OCLKLENX  = 	ON
STI	SCLAMP	  DEUTERIUM	2	OCLDLENX  = 	ON
STI	SCLAMP	  HITM1		3	OPCN1LMP  <	3
STI	SCLAMP    HITM2		4	OPCN2LMP  <	3
STI	SCLAMP    LINE		5	OPCN3LMP  <     3
STI	SCLAMP    TUNGSTEN	6	OT1BULB   >	0
STI	SCLAMP    TUNGSTEN	7	OT2BULB   >	0
STI	SCLAMP    TUNGSTEN	8	OT3BULB   >	0
STI	SCLAMP    TUNGSTEN	9	OT4BULB   >	0
STI	SCLAMP	  NONE          10	T	  = 	T
!
!
!	SS_SPLIT is mostly numeric in the database
STI	SS_SPLIT   1		1	SS_SPLIT  = 	NO
!
STI     OBSMODE   {OPMODE}      1       T         =     T
!
STI     DOPPON    T             1       ODOPCOR   =     1
STI     DOPPON    F             2       ODOPCOR   =     0
!
STI	APERTURE	{PROPAPER} 1	APERTURE	=	F25NDQ
!
! OPR 42407
! Set default value in case none of the rules below are selected
STS     CFSTATUS   ENGINEERING   1       T         = T
!
! Supported Apertures for CCD Target Acquisitions
STS     t_APTEST   T             1       APERTURE  = 50CCD
STS     t_APTEST   T             2       APERTURE  = F25ND3
STS     t_APTEST   T             3       APERTURE  = F25ND5
STS     t_APTEST   T             4       APERTURE  = F28X50LP
STS     t_APTEST   T             5       APERTURE  = F28X50OII
STS     t_APTEST   T             6       APERTURE  = F28X50OIII
STS     t_APTEST   F             7       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       OBSMODE   = ACQ
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = CCD
!
! Restricted Apertures for CCD Target Acquisitions
STS     t_APTEST   T             1       APERTURE  = F25NDQ1
STS     t_APTEST   T             2       APERTURE  = F25NDQ2
STS     t_APTEST   T             3       APERTURE  = F25NDQ3
STS     t_APTEST   T             4       APERTURE  = F25NDQ4
STS     t_APTEST   F             7       T         = T
STS     CFSTATUS   ENGINEERING   1       t_APTEST  = T
STS     CFSTATUS   ENGINEERING   1       OBSMODE   = ACQ
STS     CFSTATUS   ENGINEERING   1       DETECTOR  = CCD
!
! Supported Apertures for CCD ACQ/PEAK Acquisitions
STS     t_APTEST   T             1       APERTURE  = 0.1X0.03
STS     t_APTEST   T             3       APERTURE  = 0.2X0.06
STS     t_APTEST   T             4       APERTURE  = 0.2X0.09
STS     t_APTEST   T             5       APERTURE  = 0.2X0.2
STS     t_APTEST   T             6       APERTURE  = 0.2X0.05ND
STS     t_APTEST   T             7       APERTURE  = 0.2X0.06FPA
STS     t_APTEST   T             8       APERTURE  = 0.2X0.06FPB
STS     t_APTEST   T             9       APERTURE  = 0.2X0.06FPC
STS     t_APTEST   T             10      APERTURE  = 0.2X0.06FPD
STS     t_APTEST   T             11      APERTURE  = 0.2X0.06FPE
STS     t_APTEST   T             12      APERTURE  = 0.2X0.2FPA
STS     t_APTEST   T             13      APERTURE  = 0.2X0.2FPB
STS     t_APTEST   T             14      APERTURE  = 0.2X0.2FPC
STS     t_APTEST   T             15      APERTURE  = 0.2X0.2FPD
STS     t_APTEST   T             16      APERTURE  = 0.2X0.2FPE
STS     t_APTEST   T             17      APERTURE  = 0.3X0.05ND
STS     t_APTEST   T             18      APERTURE  = 6X0.2
STS     t_APTEST   T             19      APERTURE  = 52X0.05
STS     t_APTEST   T             20      APERTURE  = 52X0.05E1
STS     t_APTEST   T             21      APERTURE  = 52X0.1
STS     t_APTEST   T             22      APERTURE  = 52X0.1E1
STS     t_APTEST   T             23      APERTURE  = 52X0.2
STS     t_APTEST   T             24      APERTURE  = 52X0.2E1
STS     t_APTEST   T             25      APERTURE  = 52X0.2F1
STS     t_APTEST   T             26      APERTURE  = 52X0.2F1-R
STS     t_APTEST   F             27      T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       OBSMODE   = ACQ/PEAK
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = CCD
!
! Available Apertures for CCD ACQ/PEAK Acqusitions
STS     t_APTEST   T             1       APERTURE  = 0.1X0.06
STS     t_APTEST   T             2       APERTURE  = 0.1X0.09
STS     t_APTEST   T             3       APERTURE  = 0.1X0.2
STS     t_APTEST   T             4       APERTURE  = 0.2X0.5
STS     t_APTEST   T             5       APERTURE  = 0.3X0.06
STS     t_APTEST   T             6       APERTURE  = 0.3X0.09
STS     t_APTEST   T             7       APERTURE  = 0.3X0.2
STS     t_APTEST   T             8       APERTURE  = 1X0.06
STS     t_APTEST   T             9       APERTURE  = 1X0.2
STS     t_APTEST   T             10      APERTURE  = 6X0.06
STS     t_APTEST   T             11      APERTURE  = 31X0.05NDA
STS     t_APTEST   T             12      APERTURE  = 31X0.05NDB
STS     t_APTEST   T             13      APERTURE  = 31X0.05NDC
STS     t_APTEST   T             14      APERTURE  = 52X0.05F1
STS     t_APTEST   T             15      APERTURE  = 52X0.05F1-R
STS     t_APTEST   T             16      APERTURE  = 52X0.05F2
STS     t_APTEST   T             17      APERTURE  = 52X0.05F2-R
STS     t_APTEST   T             18      APERTURE  = 52X0.1B0.5
STS     t_APTEST   T             19      APERTURE  = 52X0.1B0.5-R
STS     t_APTEST   T             20      APERTURE  = 52X0.1B1.0
STS     t_APTEST   T             21      APERTURE  = 52X0.1B1.0-R
STS     t_APTEST   T             22      APERTURE  = 52X0.1B3.0
STS     t_APTEST   T             23      APERTURE  = 52X0.1B3.0-R
STS     t_APTEST   T             24      APERTURE  = 52X0.1F1
STS     t_APTEST   T             25      APERTURE  = 52X0.1F1-R
STS     t_APTEST   T             26      APERTURE  = 52X0.1F2
STS     t_APTEST   T             27      APERTURE  = 52X0.1F2-R
STS     t_APTEST   T             28      APERTURE  = 52X0.2F2
STS     t_APTEST   T             29      APERTURE  = 52X0.2F2-R
STS     t_APTEST   T             30      APERTURE  = 36X0.05N45
STS     t_APTEST   T             31      APERTURE  = 36X0.05P45
STS     t_APTEST   F             32      T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       OBSMODE   = ACQ/PEAK
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = CCD
!
! Restricted Apertures for CCD ACQ/PEAK Acquisitions
STS     t_APTEST   T             1       APERTURE  = 52X0.5
STS     t_APTEST   T             2       APERTURE  = 52X0.5E1
STS     t_APTEST   T             3       APERTURE  = 52X2
STS     t_APTEST   T             4       APERTURE  = 52X2E1
STS     t_APTEST   T             5       APERTURE  = BAR10
STS     t_APTEST   T             6       APERTURE  = WEDGEA1.0
STS     t_APTEST   T             7       APERTURE  = WEDGEA1.8
STS     t_APTEST   T             8       APERTURE  = WEDGEA2.0
STS     t_APTEST   T             9       APERTURE  = WEDGEA2.5
STS     t_APTEST   T             10      APERTURE  = WEDGEA2.8
STS     t_APTEST   T             11      APERTURE  = WEDGEB1.0
STS     t_APTEST   T             12      APERTURE  = WEDGEB1.8
STS     t_APTEST   T             13      APERTURE  = WEDGEB2.0
STS     t_APTEST   T             14      APERTURE  = WEDGEB2.5
STS     t_APTEST   T             15      APERTURE  = WEDGEB2.8
STS     t_APTEST   T             16      APERTURE  = 0.5X0.5
STS     t_APTEST   T             17      APERTURE  = 6X0.5
STS     t_APTEST   T             18      APERTURE  = 2X2
STS     t_APTEST   T             19      APERTURE  = 52X0.5F1
STS     t_APTEST   T             20      APERTURE  = 52X0.5F1-R
STS     t_APTEST   T             21      APERTURE  = 52X0.5F2
STS     t_APTEST   T             22      APERTURE  = 52X0.5F2-R
STS     t_APTEST   T             23      APERTURE  = 52X2F1
STS     t_APTEST   T             24      APERTURE  = 52X2F1-R
STS     t_APTEST   T             25      APERTURE  = 52X2F2
STS     t_APTEST   T             26      APERTURE  = 52X2F2-R
STS     t_APTEST   T             27      APERTURE  = 36X0.6N45
STS     t_APTEST   T             28      APERTURE  = 36X0.6P45
STS     t_APTEST   T             29      APERTURE  = 0.05X29
STS     t_APTEST   T             30      APERTURE  = 0.05X31NDA
STS     t_APTEST   T             31      APERTURE  = 0.05X31NDB
STS     t_APTEST   T             32      APERTURE  = 0.09X29
STS     t_APTEST   T             33      APERTURE  = 0.2X29
STS     t_APTEST   F             34      T         = T
STS     CFSTATUS   ENGINEERING   1       t_APTEST  = T
STS     CFSTATUS   ENGINEERING   1       OBSMODE   = ACQ/PEAK
STS     CFSTATUS   ENGINEERING   1       DETECTOR  = CCD
!
! Supported Apertures for CCD ACCUM exposures with Spectral Element = MIRROR
STS     t_APTEST   T             1       APERTURE  = 50CCD
STS     t_APTEST   T             2       APERTURE  = 50CORON
STS     t_APTEST   T             1       APERTURE  = F25ND3
STS     t_APTEST   T             2       APERTURE  = F25ND5
STS     t_APTEST   T             1       APERTURE  = F25NDQ1
STS     t_APTEST   T             2       APERTURE  = F25NDQ2
STS     t_APTEST   T             1       APERTURE  = F25NDQ3
STS     t_APTEST   T             2       APERTURE  = F25NDQ4
STS     t_APTEST   T             1       APERTURE  = F28X50LP
STS     t_APTEST   T             2       APERTURE  = F28X50OII
STS     t_APTEST   T             1       APERTURE  = F28X50OIII
STS     t_APTEST   T             2       APERTURE  = BAR10
STS     t_APTEST   T             1       APERTURE  = WEDGEA1.0
STS     t_APTEST   T             2       APERTURE  = WEDGEA1.8
STS     t_APTEST   T             1       APERTURE  = WEDGEA2.0
STS     t_APTEST   T             2       APERTURE  = WEDGEA2.5
STS     t_APTEST   T             1       APERTURE  = WEDGEA2.8
STS     t_APTEST   T             2       APERTURE  = WEDGEB1.0
STS     t_APTEST   T             1       APERTURE  = WEDGEB1.8
STS     t_APTEST   T             2       APERTURE  = WEDGEB2.0
STS     t_APTEST   T             1       APERTURE  = WEDGEB2.5
STS     t_APTEST   T             2       APERTURE  = WEDGEB2.8
STS     t_APTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       OBSMODE   = ACCUM
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = CCD
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = MIR?
!
! Available Apertures for CCD ACCUM exposures with Spectral Element = MIRROR
STS     t_APTEST   T             1       APERTURE  = 0.1X0.03
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06
STS     t_APTEST   T             1       APERTURE  = 0.2X0.09
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2
STS     t_APTEST   T             1       APERTURE  = 0.2X0.05ND
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPA
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPB
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPC
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPD
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPE
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPA
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPB
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPC
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPD
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPE
STS     t_APTEST   T             2       APERTURE  = 0.3X0.05ND
STS     t_APTEST   T             1       APERTURE  = 6X0.2
STS     t_APTEST   T             2       APERTURE  = 52X0.05
STS     t_APTEST   T             1       APERTURE  = 52X0.05E1
STS     t_APTEST   T             2       APERTURE  = 52X0.1
STS     t_APTEST   T             1       APERTURE  = 52X0.1E1
STS     t_APTEST   T             2       APERTURE  = 52X0.2
STS     t_APTEST   T             1       APERTURE  = 52X0.2E1
STS     t_APTEST   T             2       APERTURE  = 52X0.2F1
STS     t_APTEST   T             1       APERTURE  = 52X0.5
STS     t_APTEST   T             2       APERTURE  = 52X0.5E1
STS     t_APTEST   T             1       APERTURE  = 52X2
STS     t_APTEST   T             2       APERTURE  = 52X2E1
STS     t_APTEST   T             1       APERTURE  = 0.1X0.06
STS     t_APTEST   T             2       APERTURE  = 0.1X0.09
STS     t_APTEST   T             1       APERTURE  = 0.1X0.2
STS     t_APTEST   T             2       APERTURE  = 0.2X0.5
STS     t_APTEST   T             1       APERTURE  = 0.3X0.06
STS     t_APTEST   T             2       APERTURE  = 0.3X0.09
STS     t_APTEST   T             1       APERTURE  = 0.3X0.2
STS     t_APTEST   T             2       APERTURE  = 0.5X0.5
STS     t_APTEST   T             1       APERTURE  = 1X0.06
STS     t_APTEST   T             2       APERTURE  = 1X0.2
STS     t_APTEST   T             1       APERTURE  = 6X0.06
STS     t_APTEST   T             2       APERTURE  = 6X0.5
STS     t_APTEST   T             1       APERTURE  = 2X2
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDA
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDB
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDC
STS     t_APTEST   T             1       APERTURE  = 52X0.05F1
STS     t_APTEST   T             2       APERTURE  = 52X0.05F2
STS     t_APTEST   T             1       APERTURE  = 52X0.1B0.5
STS     t_APTEST   T             2       APERTURE  = 52X0.1B1.0
STS     t_APTEST   T             1       APERTURE  = 52X0.1B3.0
STS     t_APTEST   T             2       APERTURE  = 52X0.1F1
STS     t_APTEST   T             1       APERTURE  = 52X0.1F2
STS     t_APTEST   T             2       APERTURE  = 52X0.2F2
STS     t_APTEST   T             1       APERTURE  = 52X0.5F1
STS     t_APTEST   T             2       APERTURE  = 52X0.5F2
STS     t_APTEST   T             1       APERTURE  = 52X2F1
STS     t_APTEST   T             2       APERTURE  = 52X2F2
STS     t_APTEST   T             1       APERTURE  = 6X6
STS     t_APTEST   T             2       APERTURE  = 36X0.05N45
STS     t_APTEST   T             1       APERTURE  = 36X0.05P45
STS     t_APTEST   T             2       APERTURE  = 36X0.6N45
STS     t_APTEST   T             1       APERTURE  = 36X0.6P45
STS     t_APTEST   F             2       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       OBSMODE   = ACCUM
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = CCD
STS     CFSTATUS   AVAILABLE     1       OPT_ELEM  = MIR?
!
! Restricted Apertures for CCD ACCUM exposures with Spectral
STS     t_APTEST   T             1       APERTURE  = F25CIII
STS     t_APTEST   T             2       APERTURE  = F25CN182
STS     t_APTEST   T             1       APERTURE  = F25CN270
STS     t_APTEST   T             2       APERTURE  = F25LYA
STS     t_APTEST   T             1       APERTURE  = F25MGII
STS     t_APTEST   T             2       APERTURE  = F25QTZ
STS     t_APTEST   T             1       APERTURE  = F25SRF2
STS     t_APTEST   T             2       APERTURE  = 0.05X29
STS     t_APTEST   T             1       APERTURE  = 0.05X31NDA
STS     t_APTEST   T             2       APERTURE  = 0.05X31NDB
STS     t_APTEST   T             1       APERTURE  = 0.09X29
STS     t_APTEST   T             2       APERTURE  = 0.2X29
STS     t_APTEST   F             1       T         = T
STS     CFSTATUS   ENGINEERING   1       t_APTEST  = T
STS     CFSTATUS   ENGINEERING   1       OBSMODE   = ACCUM
STS     CFSTATUS   ENGINEERING   1       DETECTOR  = CCD
STS     CFSTATUS   ENGINEERING   1       OPT_ELEM  = MIR?
!
! Supported Apertures for CCD ACCUM 1st order gratings with
! Spectral Element = G230LB, G230MB, G430L, G430M, G750L, and G750M
STS     t_APTEST   T             1       APERTURE  = 52X0.05
STS     t_APTEST   T             2       APERTURE  = 52X0.05E1
STS     t_APTEST   T             1       APERTURE  = 52X0.1
STS     t_APTEST   T             2       APERTURE  = 52X0.1E1
STS     t_APTEST   T             1       APERTURE  = 52X0.2
STS     t_APTEST   T             2       APERTURE  = 52X0.2E1
STS     t_APTEST   T             1       APERTURE  = 52X0.2F1
STS     t_APTEST   T             2       APERTURE  = 52X0.5
STS     t_APTEST   T             1       APERTURE  = 52X0.5E1
STS     t_APTEST   T             2       APERTURE  = 52X2
STS     t_APTEST   T             1       APERTURE  = 52X2E1
STS     t_APTEST   T             2       APERTURE  = 50CCD
STS     t_APTEST   T             3       APERTURE  = 0.2X0.2
STS     t_APTEST   F             1       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G230LB
STS     t_GRTEST   T             2       OPT_ELEM  = G230MB
STS     t_GRTEST   T             1       OPT_ELEM  = G430L
STS     t_GRTEST   T             2       OPT_ELEM  = G430M
STS     t_GRTEST   T             1       OPT_ELEM  = G750L
STS     t_GRTEST   T             2       OPT_ELEM  = G750M
STS     t_GRTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_GRTEST  = T
STS     CFSTATUS   SUPPORTED     1       OBSMODE   = ACCUM
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = CCD
!
! Available Apertures for CCD ACCUM 1st order gratings with
! Spectral Element = G230LB, G230MB, G430L, G430M, G750L, and G750M
STS     t_APTEST   T             1       APERTURE  = 0.1X0.03
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06
STS     t_APTEST   T             3       APERTURE  = 0.2X0.09
STS     t_APTEST   T             1       APERTURE  = 0.2X0.05ND
STS     t_APTEST   T             2       APERTURE  = 0.3X0.05ND
STS     t_APTEST   T             1       APERTURE  = 6X0.2
STS     t_APTEST   T             2       APERTURE  = F25ND3
STS     t_APTEST   T             1       APERTURE  = F25ND5
STS     t_APTEST   T             2       APERTURE  = F25NDQ1
STS     t_APTEST   T             1       APERTURE  = F25NDQ2
STS     t_APTEST   T             2       APERTURE  = F25NDQ3
STS     t_APTEST   T             1       APERTURE  = F25NDQ4
STS     t_APTEST   T             2       APERTURE  = F28X50LP
STS     t_APTEST   T             1       APERTURE  = F28X50OII
STS     t_APTEST   T             2       APERTURE  = F28X50OIII
STS     t_APTEST   T             1       APERTURE  = 0.1X0.06
STS     t_APTEST   T             2       APERTURE  = 0.1X0.09
STS     t_APTEST   T             1       APERTURE  = 0.1X0.2
STS     t_APTEST   T             2       APERTURE  = 0.2X0.5
STS     t_APTEST   T             1       APERTURE  = 0.3X0.06
STS     t_APTEST   T             2       APERTURE  = 0.3X0.09
STS     t_APTEST   T             1       APERTURE  = 0.3X0.2
STS     t_APTEST   T             2       APERTURE  = 0.5X0.5
STS     t_APTEST   T             1       APERTURE  = 1X0.06
STS     t_APTEST   T             2       APERTURE  = 1X0.2
STS     t_APTEST   T             1       APERTURE  = 6X0.06
STS     t_APTEST   T             2       APERTURE  = 6X0.5
STS     t_APTEST   T             1       APERTURE  = 2X2
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDA
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDB
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDC
STS     t_APTEST   T             1       APERTURE  = 52X0.05F1
STS     t_APTEST   T             2       APERTURE  = 52X0.05F2
STS     t_APTEST   T             1       APERTURE  = 52X0.1B0.5
STS     t_APTEST   T             2       APERTURE  = 52X0.1B1.0
STS     t_APTEST   T             1       APERTURE  = 52X0.1B3.0
STS     t_APTEST   T             2       APERTURE  = 52X0.1F1
STS     t_APTEST   T             1       APERTURE  = 52X0.1F2
STS     t_APTEST   T             2       APERTURE  = 52X0.2F2
STS     t_APTEST   T             1       APERTURE  = 52X0.5F1
STS     t_APTEST   T             2       APERTURE  = 52X0.5F2
STS     t_APTEST   T             1       APERTURE  = 52X2F1
STS     t_APTEST   T             2       APERTURE  = 52X2F2
STS     t_APTEST   T             1       APERTURE  = 6X6
STS     t_APTEST   T             2       APERTURE  = 36X0.05N45
STS     t_APTEST   T             1       APERTURE  = 36X0.05P45
STS     t_APTEST   T             2       APERTURE  = 36X0.6N45
STS     t_APTEST   T             1       APERTURE  = 36X0.6P45
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G230LB
STS     t_GRTEST   T             2       OPT_ELEM  = G230MB
STS     t_GRTEST   T             1       OPT_ELEM  = G430L
STS     t_GRTEST   T             2       OPT_ELEM  = G430M
STS     t_GRTEST   T             1       OPT_ELEM  = G750L
STS     t_GRTEST   T             2       OPT_ELEM  = G750M
STS     t_GRTEST   F             1       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_GRTEST  = T
STS     CFSTATUS   AVAILABLE     1       OBSMODE   = ACCUM
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = CCD
!
! Restricted Apertures for CCD ACCUM 1st order gratings with
! Spectral Element = G230LB, G230MB, G430L, G430M, G750L, and G750M
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPA
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPB
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPC
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPD
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPE
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPA
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPB
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPC
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPD
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPE
STS     t_APTEST   T             1       APERTURE  = 50CORON
STS     t_APTEST   T             2       APERTURE  = F25CIII
STS     t_APTEST   T             1       APERTURE  = F25CN182
STS     t_APTEST   T             2       APERTURE  = F25CN270
STS     t_APTEST   T             1       APERTURE  = F25LYA
STS     t_APTEST   T             2       APERTURE  = F25MGII
STS     t_APTEST   T             1       APERTURE  = F25QTZ
STS     t_APTEST   T             2       APERTURE  = F25SRF2
STS     t_APTEST   T             1       APERTURE  = BAR10
STS     t_APTEST   T             2       APERTURE  = WEDGEA1.0
STS     t_APTEST   T             1       APERTURE  = WEDGEA1.8
STS     t_APTEST   T             2       APERTURE  = WEDGEA2.0
STS     t_APTEST   T             1       APERTURE  = WEDGEA2.5
STS     t_APTEST   T             2       APERTURE  = WEDGEA2.8
STS     t_APTEST   T             1       APERTURE  = WEDGEB1.0
STS     t_APTEST   T             2       APERTURE  = WEDGEB1.8
STS     t_APTEST   T             1       APERTURE  = WEDGEB2.0
STS     t_APTEST   T             2       APERTURE  = WEDGEB2.5
STS     t_APTEST   T             1       APERTURE  = WEDGEB2.8
STS     t_APTEST   T             2       APERTURE  = 0.05X29
STS     t_APTEST   T             1       APERTURE  = 0.05X31NDA
STS     t_APTEST   T             2       APERTURE  = 0.05X31NDB
STS     t_APTEST   T             1       APERTURE  = 0.09X29
STS     t_APTEST   T             2       APERTURE  = 0.2X29
STS     t_APTEST   F             1       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G230LB
STS     t_GRTEST   T             2       OPT_ELEM  = G230MB
STS     t_GRTEST   T             1       OPT_ELEM  = G430L
STS     t_GRTEST   T             2       OPT_ELEM  = G430M
STS     t_GRTEST   T             1       OPT_ELEM  = G750L
STS     t_GRTEST   T             2       OPT_ELEM  = G750M
STS     t_GRTEST   F             1       T         = T
STS     CFSTATUS   ENGINEERING   1       t_APTEST  = T
STS     CFSTATUS   ENGINEERING   1       t_GRTEST  = T
STS     CFSTATUS   ENGINEERING   1       OBSMODE   = ACCUM
STS     CFSTATUS   ENGINEERING   1       DETECTOR  = CCD
!
! Supported Apertures for both the FUV-MAMA and NUV-MAMA in
! ACCUM and TIME-TAG Modes with Spectral Element = MIRROR
STS     t_APTEST   T             1       APERTURE  = 25MAMA
STS     t_APTEST   T             2       APERTURE  = F25ND3
STS     t_APTEST   T             1       APERTURE  = F25ND5
STS     t_APTEST   T             2       APERTURE  = F25NDQ1
STS     t_APTEST   T             1       APERTURE  = F25NDQ2
STS     t_APTEST   T             2       APERTURE  = F25NDQ3
STS     t_APTEST   T             1       APERTURE  = F25NDQ4
STS     t_APTEST   T             2       APERTURE  = F25QTZ
STS     t_APTEST   T             1       APERTURE  = F25SRF2
STS     t_APTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_MOTEST  = T
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = ?MAMA
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = MIR?
!
! Supported Apertures for the FUV-MAMA only in ACCUM
! and TIME-TAG Modes with Spectral Element = MIRROR
STS     t_APTEST   T             1       APERTURE  = F25LYA
STS     t_APTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_MOTEST  = T
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = FUV-MAMA
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = MIR?
!
! Supported Apertures for the NUV-MAMA only in ACCUM
! and TIME-TAG Modes with Spectral Element = MIRROR
STS     t_APTEST   T             1       APERTURE  = F25CIII
STS     t_APTEST   T             2       APERTURE  = F25CN182
STS     t_APTEST   T             1       APERTURE  = F25CN270
STS     t_APTEST   T             2       APERTURE  = F25MGII
STS     t_APTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_MOTEST  = T
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = NUV-MAMA
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = MIR?
!
! Available Apertures for both the FUV-MAMA and NUV-MAMA in
! ACCUM and TIME-TAG Modes with Spectral Element = MIRROR
STS     t_APTEST   T             1       APERTURE  = 2X2
STS     t_APTEST   T             2       APERTURE  = 6X6
STS     t_APTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_MOTEST  = T
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = ?MAMA
STS     CFSTATUS   AVAILABLE     1       OPT_ELEM  = MIR?
!
! Restricted Apertures for both the FUV-MAMA and NUV-MAMA in
! ACCUM and TIME-TAG Modes with Spectral Element = MIRROR
STS     t_APTEST   T             1       APERTURE  = 0.1X0.03
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06
STS     t_APTEST   T             1       APERTURE  = 0.2X0.09
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2
STS     t_APTEST   T             1       APERTURE  = 0.2X0.05ND
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPA
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPB
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPC
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPD
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPE
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPA
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPB
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPC
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPD
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPE
STS     t_APTEST   T             2       APERTURE  = 0.3X0.05ND
STS     t_APTEST   T             1       APERTURE  = 6X0.2
STS     t_APTEST   T             2       APERTURE  = 52X0.05
STS     t_APTEST   T             1       APERTURE  = 52X0.1
STS     t_APTEST   T             2       APERTURE  = 52X0.2
STS     t_APTEST   T             1       APERTURE  = 52X0.2F1
STS     t_APTEST   T             2       APERTURE  = 52X0.5
STS     t_APTEST   T             1       APERTURE  = 52X2
STS     t_APTEST   T             2       APERTURE  = 50CORON
STS     t_APTEST   T             1       APERTURE  = BAR10
STS     t_APTEST   T             2       APERTURE  = WEDGEA1.0
STS     t_APTEST   T             1       APERTURE  = WEDGEA1.8
STS     t_APTEST   T             2       APERTURE  = WEDGEA2.0
STS     t_APTEST   T             1       APERTURE  = WEDGEA2.5
STS     t_APTEST   T             2       APERTURE  = WEDGEA2.8
STS     t_APTEST   T             1       APERTURE  = WEDGEB1.0
STS     t_APTEST   T             2       APERTURE  = WEDGEB1.8
STS     t_APTEST   T             1       APERTURE  = WEDGEB2.0
STS     t_APTEST   T             2       APERTURE  = WEDGEB2.5
STS     t_APTEST   T             1       APERTURE  = WEDGEB2.8
STS     t_APTEST   T             2       APERTURE  = 0.1X0.06
STS     t_APTEST   T             1       APERTURE  = 0.1X0.09
STS     t_APTEST   T             2       APERTURE  = 0.1X0.2
STS     t_APTEST   T             1       APERTURE  = 0.2X0.5
STS     t_APTEST   T             2       APERTURE  = 0.3X0.06
STS     t_APTEST   T             1       APERTURE  = 0.3X0.09
STS     t_APTEST   T             2       APERTURE  = 0.3X0.2
STS     t_APTEST   T             1       APERTURE  = 0.5X0.5
STS     t_APTEST   T             2       APERTURE  = 1X0.06
STS     t_APTEST   T             1       APERTURE  = 1X0.2
STS     t_APTEST   T             2       APERTURE  = 6X0.06
STS     t_APTEST   T             1       APERTURE  = 6X0.5
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDA
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDB
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDC
STS     t_APTEST   T             1       APERTURE  = 52X0.05F1
STS     t_APTEST   T             2       APERTURE  = 52X0.05F2
STS     t_APTEST   T             1       APERTURE  = 52X0.1B0.5
STS     t_APTEST   T             2       APERTURE  = 52X0.1B1.0
STS     t_APTEST   T             1       APERTURE  = 52X0.1B3.0
STS     t_APTEST   T             2       APERTURE  = 52X0.1F1
STS     t_APTEST   T             1       APERTURE  = 52X0.1F2
STS     t_APTEST   T             2       APERTURE  = 52X0.2F2
STS     t_APTEST   T             1       APERTURE  = 52X0.5F1
STS     t_APTEST   T             2       APERTURE  = 52X0.5F2
STS     t_APTEST   T             1       APERTURE  = 52X2F1
STS     t_APTEST   T             2       APERTURE  = 52X2F2
STS     t_APTEST   T             1       APERTURE  = 36X0.05N45
STS     t_APTEST   T             2       APERTURE  = 36X0.05P45
STS     t_APTEST   T             1       APERTURE  = 36X0.6N45
STS     t_APTEST   T             2       APERTURE  = 36X0.6P45
STS     t_APTEST   T             1       APERTURE  = 0.05X29
STS     t_APTEST   T             2       APERTURE  = 0.05X31NDA
STS     t_APTEST   T             1       APERTURE  = 0.05X31NDB
STS     t_APTEST   T             2       APERTURE  = 0.09X29
STS     t_APTEST   T             1       APERTURE  = 0.2X29
STS     t_APTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   ENGINEERING   1       t_APTEST  = T
STS     CFSTATUS   ENGINEERING   1       t_MOTEST  = T
STS     CFSTATUS   ENGINEERING   1       DETECTOR  = ?MAMA
STS     CFSTATUS   ENGINEERING   1       OPT_ELEM  = MIR?
!
! Supported Apertures for both the FUV-MAMA and NUV-MAMA in
! ACCUM and TIME-TAG Modes with Spectral Element = G140L,
! G140M, G230L, and G230M
STS     t_APTEST   T             1       APERTURE  = 52X0.05
STS     t_APTEST   T             2       APERTURE  = 52X0.1
STS     t_APTEST   T             1       APERTURE  = 52X0.2
STS     t_APTEST   T             2       APERTURE  = 52X0.2F1
STS     t_APTEST   T             1       APERTURE  = 52X0.5
STS     t_APTEST   T             2       APERTURE  = 52X2
STS     t_APTEST   T             3       APERTURE  = 0.2X0.2
STS     t_APTEST   T             1       APERTURE  = 25MAMA
STS     t_APTEST   T             2       APERTURE  = F25ND3
STS     t_APTEST   T             1       APERTURE  = F25ND5
STS     t_APTEST   T             2       APERTURE  = F25NDQ1
STS     t_APTEST   T             1       APERTURE  = F25NDQ2
STS     t_APTEST   T             2       APERTURE  = F25NDQ3
STS     t_APTEST   T             1       APERTURE  = F25NDQ4
STS     t_APTEST   T             2       APERTURE  = F25QTZ
STS     t_APTEST   T             1       APERTURE  = F25SRF2
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G140L
STS     t_GRTEST   T             2       OPT_ELEM  = G140M
STS     t_GRTEST   T             1       OPT_ELEM  = G230L
STS     t_GRTEST   T             2       OPT_ELEM  = G230M
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_GRTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_MOTEST  = T
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = ?MAMA
!
! Available Apertures for both the FUV-MAMA and NUV-MAMA in
! ACCUM and TIME-TAG Modes with Spectral Element = G140L,
! G140M, G230L, and G230M
STS     t_APTEST   T             1       APERTURE  = 0.1X0.03
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06
STS     t_APTEST   T             3       APERTURE  = 0.2X0.09
STS     t_APTEST   T             1       APERTURE  = 0.2X0.05ND
STS     t_APTEST   T             2       APERTURE  = 0.3X0.05ND
STS     t_APTEST   T             1       APERTURE  = 6X0.2
STS     t_APTEST   T             2       APERTURE  = 0.1X0.06
STS     t_APTEST   T             1       APERTURE  = 0.1X0.09
STS     t_APTEST   T             2       APERTURE  = 0.1X0.2
STS     t_APTEST   T             1       APERTURE  = 0.2X0.5
STS     t_APTEST   T             2       APERTURE  = 0.3X0.06
STS     t_APTEST   T             1       APERTURE  = 0.3X0.09
STS     t_APTEST   T             2       APERTURE  = 0.3X0.2
STS     t_APTEST   T             1       APERTURE  = 0.5X0.5
STS     t_APTEST   T             2       APERTURE  = 1X0.06
STS     t_APTEST   T             1       APERTURE  = 1X0.2
STS     t_APTEST   T             2       APERTURE  = 6X0.06
STS     t_APTEST   T             1       APERTURE  = 6X0.5
STS     t_APTEST   T             2       APERTURE  = 2X2
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDA
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDB
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDC
STS     t_APTEST   T             2       APERTURE  = 52X0.05F1
STS     t_APTEST   T             1       APERTURE  = 52X0.05F2
STS     t_APTEST   T             2       APERTURE  = 52X0.1B0.5
STS     t_APTEST   T             1       APERTURE  = 52X0.1B1.0
STS     t_APTEST   T             2       APERTURE  = 52X0.1B3.0
STS     t_APTEST   T             1       APERTURE  = 52X0.1F1
STS     t_APTEST   T             2       APERTURE  = 52X0.1F2
STS     t_APTEST   T             1       APERTURE  = 52X0.2F2
STS     t_APTEST   T             2       APERTURE  = 52X0.5F1
STS     t_APTEST   T             1       APERTURE  = 52X0.5F2
STS     t_APTEST   T             2       APERTURE  = 52X2F1
STS     t_APTEST   T             1       APERTURE  = 52X2F2
STS     t_APTEST   T             2       APERTURE  = 6X6
STS     t_APTEST   T             1       APERTURE  = 36X0.05N45
STS     t_APTEST   T             2       APERTURE  = 36X0.05P45
STS     t_APTEST   T             1       APERTURE  = 36X0.6N45
STS     t_APTEST   T             2       APERTURE  = 36X0.6P45
STS     t_APTEST   F             1       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G140L
STS     t_GRTEST   T             2       OPT_ELEM  = G140M
STS     t_GRTEST   T             1       OPT_ELEM  = G230L
STS     t_GRTEST   T             2       OPT_ELEM  = G230M
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_GRTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_MOTEST  = T
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = ?MAMA
!
! Restricted Apertures for both the FUV-MAMA and NUV-MAMA in
! ACCUM and TIME-TAG Modes with Spectral Element = G140L
! G140M, G230L, and G230M.
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPA
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPB
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPC
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPD
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPE
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPA
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPB
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPC
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPD
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPE
STS     t_APTEST   F             1       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G140L
STS     t_GRTEST   T             2       OPT_ELEM  = G140M
STS     t_GRTEST   T             1       OPT_ELEM  = G230L
STS     t_GRTEST   T             2       OPT_ELEM  = G230M
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   ENGINEERING   1       t_APTEST  = T
STS     CFSTATUS   ENGINEERING   1       t_GRTEST  = T
STS     CFSTATUS   ENGINEERING   1       t_MOTEST  = T
STS     CFSTATUS   ENGINEERING   1       DETECTOR  = ?MAMA
!
! Available Apertures for the FUV-MAMA only in ACCUM
! and TIME-TAG Modes with Spectral Element = G140L,
! G140M, E140H, and E140M.
STS     t_APTEST   T             1       APERTURE  = F25LYA
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G140L
STS     t_GRTEST   T             2       OPT_ELEM  = G140M
STS     t_GRTEST   T             1       OPT_ELEM  = E140H
STS     t_GRTEST   T             2       OPT_ELEM  = E140M
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_GRTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_MOTEST  = T
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = FUV-MAMA
!
! Supported Apertures for the NUV-MAMA only in ACCUM
! and TIME-TAG Modes with Spectral Element = G230L,
! G230M, E230H, and E230M
STS     t_APTEST   T             1       APERTURE  = F25MGII
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G230L
STS     t_GRTEST   T             2       OPT_ELEM  = G230M
STS     t_GRTEST   T             1       OPT_ELEM  = E230H
STS     t_GRTEST   T             2       OPT_ELEM  = E230M
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_GRTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_MOTEST  = T
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = NUV-MAMA
!
! Available Apertures for the NUV-MAMA only in ACCUM
! and TIME-TAG Modes with Spectral Element = G230L,
! G230M, E230H, E230M, and PRISM.
STS     t_APTEST   T             1       APERTURE  = F25CIII
STS     t_APTEST   T             2       APERTURE  = F25CN182
STS     t_APTEST   T             1       APERTURE  = F25CN270
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G230L
STS     t_GRTEST   T             2       OPT_ELEM  = G230M
STS     t_GRTEST   T             1       OPT_ELEM  = E230H
STS     t_GRTEST   T             2       OPT_ELEM  = E230M
STS     t_GRTEST   T             1       OPT_ELEM  = PRISM
STS     t_GRTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_GRTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_MOTEST  = T
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = NUV-MAMA
!
! Restricted Apertures for both the FUV-MAMA and NUV-MAMA
! in ACCUM and TIME-TAG Modes with Spectral Element = G140L,
! G140M, E140H, E140M, G230L, G230M, E230H, E230M, and PRISM.
STS     t_APTEST   T             1       APERTURE  = 50CORON
STS     t_APTEST   T             2       APERTURE  = BAR10
STS     t_APTEST   T             1       APERTURE  = WEDGEA1.0
STS     t_APTEST   T             2       APERTURE  = WEDGEA1.8
STS     t_APTEST   T             1       APERTURE  = WEDGEA2.0
STS     t_APTEST   T             2       APERTURE  = WEDGEA2.5
STS     t_APTEST   T             1       APERTURE  = WEDGEA2.8
STS     t_APTEST   T             2       APERTURE  = WEDGEB1.0
STS     t_APTEST   T             1       APERTURE  = WEDGEB1.8
STS     t_APTEST   T             2       APERTURE  = WEDGEB2.0
STS     t_APTEST   T             1       APERTURE  = WEDGEB2.5
STS     t_APTEST   T             2       APERTURE  = WEDGEB2.8
STS     t_APTEST   T             1       APERTURE  = 0.05X29
STS     t_APTEST   T             2       APERTURE  = 0.05X31NDA
STS     t_APTEST   T             1       APERTURE  = 0.05X31NDB
STS     t_APTEST   T             2       APERTURE  = 0.09X29
STS     t_APTEST   T             1       APERTURE  = 0.2X29
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G140L
STS     t_GRTEST   T             2       OPT_ELEM  = G140M
STS     t_GRTEST   T             1       OPT_ELEM  = E140H
STS     t_GRTEST   T             2       OPT_ELEM  = E140M
STS     t_GRTEST   T             1       OPT_ELEM  = G230L
STS     t_GRTEST   T             2       OPT_ELEM  = G230M
STS     t_GRTEST   T             1       OPT_ELEM  = E230H
STS     t_GRTEST   T             2       OPT_ELEM  = E230M
STS     t_GRTEST   T             1       OPT_ELEM  = PRISM
STS     t_GRTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   ENGINEERING   1       t_APTEST  = T
STS     CFSTATUS   ENGINEERING   1       t_GRTEST  = T
STS     CFSTATUS   ENGINEERING   1       t_MOTEST  = T
STS     CFSTATUS   ENGINEERING   1       DETECTOR  = ?MAMA
!
! Supported Apertures for both the FUV-MAMA and NUV-MAMA
! in ACCUM and TIME-TAG Modes with Spectral Element = E140H,
! E140M, E230H, and E230M.
STS     t_APTEST   T             1       APERTURE  = 0.1X0.03
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2
STS     t_APTEST   T             1       APERTURE  = 0.2X0.05ND
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPA
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPB
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPC
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPD
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPE
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPA
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPB
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPC
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPD
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPE
STS     t_APTEST   T             2       APERTURE  = 0.3X0.05ND
STS     t_APTEST   T             1       APERTURE  = 6X0.2
STS     t_APTEST   T             2       APERTURE  = 52X0.05
STS     t_APTEST   T             1       APERTURE  = 25MAMA
STS     t_APTEST   T             2       APERTURE  = F25ND3
STS     t_APTEST   T             1       APERTURE  = F25ND5
STS     t_APTEST   T             2       APERTURE  = F25NDQ1
STS     t_APTEST   T             1       APERTURE  = F25NDQ2
STS     t_APTEST   T             2       APERTURE  = F25NDQ3
STS     t_APTEST   T             1       APERTURE  = F25NDQ4
STS     t_APTEST   T             2       APERTURE  = F25QTZ
STS     t_APTEST   T             1       APERTURE  = F25SRF2
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = E140H
STS     t_GRTEST   T             2       OPT_ELEM  = E140M
STS     t_GRTEST   T             1       OPT_ELEM  = E230H
STS     t_GRTEST   T             2       OPT_ELEM  = E230M
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_GRTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_MOTEST  = T
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = ?MAMA
!
! Available Apertures for both the FUV-MAMA and NUV-MAMA
! in ACCUM and TIME-TAG Modes with Spectral Element = E140H,
! E140M, E230H, and E230M.
STS     t_APTEST   T             1       APERTURE  = 52X0.1
STS     t_APTEST   T             2       APERTURE  = 52X0.2
STS     t_APTEST   T             1       APERTURE  = 52X0.2F1
STS     t_APTEST   T             2       APERTURE  = 52X0.5
STS     t_APTEST   T             1       APERTURE  = 52X2
STS     t_APTEST   T             2       APERTURE  = 0.1X0.06
STS     t_APTEST   T             1       APERTURE  = 0.2X0.5
STS     t_APTEST   T             2       APERTURE  = 0.3X0.06
STS     t_APTEST   T             1       APERTURE  = 0.3X0.09
STS     t_APTEST   T             2       APERTURE  = 0.3X0.2
STS     t_APTEST   T             1       APERTURE  = 0.5X0.5
STS     t_APTEST   T             2       APERTURE  = 1X0.06
STS     t_APTEST   T             1       APERTURE  = 1X0.2
STS     t_APTEST   T             2       APERTURE  = 6X0.06
STS     t_APTEST   T             1       APERTURE  = 6X0.5
STS     t_APTEST   T             2       APERTURE  = 2X2
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDA
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDB
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDC
STS     t_APTEST   T             2       APERTURE  = 52X0.05F1
STS     t_APTEST   T             1       APERTURE  = 52X0.05F2
STS     t_APTEST   T             2       APERTURE  = 52X0.1B0.5
STS     t_APTEST   T             1       APERTURE  = 52X0.1B1.0
STS     t_APTEST   T             2       APERTURE  = 52X0.1B3.0
STS     t_APTEST   T             1       APERTURE  = 52X0.1F1
STS     t_APTEST   T             2       APERTURE  = 52X0.1F2
STS     t_APTEST   T             1       APERTURE  = 52X0.2F2
STS     t_APTEST   T             2       APERTURE  = 52X0.5F1
STS     t_APTEST   T             1       APERTURE  = 52X0.5F2
STS     t_APTEST   T             2       APERTURE  = 52X2F1
STS     t_APTEST   T             1       APERTURE  = 52X2F2
STS     t_APTEST   T             2       APERTURE  = 6X6
STS     t_APTEST   T             1       APERTURE  = 36X0.05N45
STS     t_APTEST   T             2       APERTURE  = 36X0.05P45
STS     t_APTEST   T             1       APERTURE  = 36X0.6N45
STS     t_APTEST   T             2       APERTURE  = 36X0.6P45
STS     t_APTEST   F             1       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = E140H
STS     t_GRTEST   T             2       OPT_ELEM  = E140M
STS     t_GRTEST   T             1       OPT_ELEM  = E230H
STS     t_GRTEST   T             2       OPT_ELEM  = E230M
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_GRTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_MOTEST  = T
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = ?MAMA
!
! Supported Apertures for both the FUV-MAMA and NUV-MAMA
! in ACCUM and TIME-TAG Modes with Spectral Element =
! E140H and E230H
STS     t_APTEST   T             1       APERTURE  = 0.2X0.09
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = E140H
STS     t_GRTEST   T             2       OPT_ELEM  = E230H
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_GRTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_MOTEST  = T
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = ?MAMA
!
! Supported Apertures for the NUV-MAMA only in ACCUM
! and TIME-TAG Modes with Spectral Element = E230H.
STS     t_APTEST   T             1       APERTURE  = 0.1X0.09
STS     t_APTEST   T             2       APERTURE  = 0.1X0.2
STS     t_APTEST   F             1       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = E230H
STS     t_GRTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_GRTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_MOTEST  = T
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = NUV-MAMA
!
! Available Apertures for both the FUV-MAMA and NUV-MAMA
! in ACCUM and TIME-TAG Modes with Spectral Element = E140H and E230H
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = E140H
STS     t_GRTEST   T             2       OPT_ELEM  = E230H
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_GRTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_MOTEST  = T
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = ?MAMA
!
! Available Apertures for the FUV-MAMA only in ACCUM
! and TIME-TAG Modes with Spectral Element = E140H
STS     t_APTEST   T             1       APERTURE  = 0.1X0.09
STS     t_APTEST   T             2       APERTURE  = 0.1X0.2
STS     t_APTEST   F             1       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = E140H
STS     t_GRTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_GRTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_MOTEST  = T
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = FUV-MAMA
!
! Supported Apertures for both the FUV-MAMA and NUV-MAMA
! in ACCUM and TIME-TAG Modes with Spectral Element =
! E140M and E230M
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = E140M
STS     t_GRTEST   T             2       OPT_ELEM  = E230M
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_GRTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_MOTEST  = T
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = ?MAMA
!
! Available Apertures for both the FUV-MAMA and NUV-MAMA
! in ACCUM and TIME-TAG Modes with Spectral Element =
! E140M and E230M
STS     t_APTEST   T             1       APERTURE  = 0.2X0.09
STS     t_APTEST   T             2       APERTURE  = 0.1X0.09
STS     t_APTEST   T             1       APERTURE  = 0.1X0.2
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = E140M
STS     t_GRTEST   T             2       OPT_ELEM  = E230M
STS     t_GRTEST   F             1       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_GRTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_MOTEST  = T
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = ?MAMA
!
! Supported Apertures for the NUV-MAMA only in ACCUM and
! TIME-TAG Modes with Spectral Element = PRISM
STS     t_APTEST   T             1       APERTURE  = 52X0.05
STS     t_APTEST   T             2       APERTURE  = 52X0.2
STS     t_APTEST   T             1       APERTURE  = 52X0.5
STS     t_APTEST   T             2       APERTURE  = 52X2
STS     t_APTEST   T             1       APERTURE  = 25MAMA
STS     t_APTEST   T             2       APERTURE  = F25MGII
STS     t_APTEST   T             1       APERTURE  = F25QTZ
STS     t_APTEST   T             2       APERTURE  = F25SRF2
STS     t_APTEST   T             1       APERTURE  = F25ND3
STS     t_APTEST   T             2       APERTURE  = F25ND5
STS     t_APTEST   T             1       APERTURE  = F25NDQ1
STS     t_APTEST   T             2       APERTURE  = F25NDQ2
STS     t_APTEST   T             1       APERTURE  = F25NDQ3
STS     t_APTEST   T             2       APERTURE  = F25NDQ4
STS     t_APTEST   F             1       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = PRISM
STS     t_GRTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_GRTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_MOTEST  = T
STS     CFSTATUS   SUPPORTED     1       DETECTOR  = NUV-MAMA
!
! Available Apertures for the NUV-MAMA only in ACCUM and
! TIME-TAG Modes with Spectral Element = PRISM
STS     t_APTEST   T             1       APERTURE  = 0.1X0.03
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06
STS     t_APTEST   T             1       APERTURE  = 0.2X0.09
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2
STS     t_APTEST   T             1       APERTURE  = 0.2X0.05ND
STS     t_APTEST   T             2       APERTURE  = 0.3X0.05ND
STS     t_APTEST   T             1       APERTURE  = 6X0.2
STS     t_APTEST   T             2       APERTURE  = 52X0.1
STS     t_APTEST   T             1       APERTURE  = 52X0.2F1
STS     t_APTEST   T             2       APERTURE  = 0.1X0.06
STS     t_APTEST   T             1       APERTURE  = 0.1X0.09
STS     t_APTEST   T             2       APERTURE  = 0.1X0.2
STS     t_APTEST   T             1       APERTURE  = 0.2X0.5
STS     t_APTEST   T             2       APERTURE  = 0.3X0.06
STS     t_APTEST   T             1       APERTURE  = 0.3X0.09
STS     t_APTEST   T             2       APERTURE  = 0.3X0.2
STS     t_APTEST   T             1       APERTURE  = 0.5X0.5
STS     t_APTEST   T             2       APERTURE  = 1X0.06
STS     t_APTEST   T             1       APERTURE  = 1X0.2
STS     t_APTEST   T             2       APERTURE  = 6X0.06
STS     t_APTEST   T             1       APERTURE  = 6X0.5
STS     t_APTEST   T             2       APERTURE  = 2X2
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDA
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDB
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDC
STS     t_APTEST   T             2       APERTURE  = 52X0.05F1
STS     t_APTEST   T             1       APERTURE  = 52X0.05F2
STS     t_APTEST   T             2       APERTURE  = 52X0.1B0.5
STS     t_APTEST   T             1       APERTURE  = 52X0.1B1.0
STS     t_APTEST   T             2       APERTURE  = 52X0.1B3.0
STS     t_APTEST   T             1       APERTURE  = 52X0.1F1
STS     t_APTEST   T             2       APERTURE  = 52X0.1F2
STS     t_APTEST   T             1       APERTURE  = 52X0.2F2
STS     t_APTEST   T             2       APERTURE  = 52X0.5F1
STS     t_APTEST   T             1       APERTURE  = 52X0.5F2
STS     t_APTEST   T             2       APERTURE  = 52X2F1
STS     t_APTEST   T             1       APERTURE  = 52X2F2
STS     t_APTEST   T             2       APERTURE  = 6X6
STS     t_APTEST   T             1       APERTURE  = 36X0.05N45
STS     t_APTEST   T             2       APERTURE  = 36X0.05P45
STS     t_APTEST   T             1       APERTURE  = 36X0.6N45
STS     t_APTEST   T             2       APERTURE  = 36X0.6P45
STS     t_APTEST   F             1       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = PRISM
STS     t_GRTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   AVAILABLE     1       t_APTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_GRTEST  = T
STS     CFSTATUS   AVAILABLE     1       t_MOTEST  = T
STS     CFSTATUS   AVAILABLE     1       DETECTOR  = NUV-MAMA
!
! Restricted Apertures for the NUV-MAMA only in ACCUM and
! TIME-TAG Modes with Spectral Element = PRISM
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPA
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPB
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPC
STS     t_APTEST   T             2       APERTURE  = 0.2X0.06FPD
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06FPE
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPA
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPB
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPC
STS     t_APTEST   T             1       APERTURE  = 0.2X0.2FPD
STS     t_APTEST   T             2       APERTURE  = 0.2X0.2FPE
STS     t_APTEST   F             1       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = PRISM
STS     t_GRTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   ENGINEERING   1       t_APTEST  = T
STS     CFSTATUS   ENGINEERING   1       t_GRTEST  = T
STS     CFSTATUS   ENGINEERING   1       t_MOTEST  = T
STS     CFSTATUS   ENGINEERING   1       DETECTOR  = NUV-MAMA
!
! X_ACCUMTIME_MAMA_RES
STS     t_APTEST   T             1       APERTURE  = 0.05X29
STS     t_APTEST   T             2       APERTURE  = 0.09X29
STS     t_APTEST   T             1       APERTURE  = 0.2X29
STS     t_APTEST   T             2       APERTURE  = 0.05X31NDA
STS     t_APTEST   T             1       APERTURE  = 0.05X31NDB
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = X?
STS     t_GRTEST   F             2       T         = T
STS     t_MOTEST   T             1       OBSMODE   = ACCUM
STS     t_MOTEST   T             2       OBSMODE   = TIME-TAG
STS     t_MOTEST   F             1       T         = T
STS     CFSTATUS   ENGINEERING   1       t_APTEST  = T
STS     CFSTATUS   ENGINEERING   1       t_GRTEST  = T
STS     CFSTATUS   ENGINEERING   1       t_MOTEST  = T
STS     CFSTATUS   ENGINEERING   1       DETECTOR  = ?MAMA
!
! previously supported, but now available (9/29/00, hodge)
!
STS     CFSTATUS   AVAILABLE     1       OBSTYPE   = SPECTROSCOPIC
STS     CFSTATUS   AVAILABLE     1       OPT_ELEM  = G750M
STS     CFSTATUS   AVAILABLE     1       CENWAVE   = 10363
STS     CFSTATUS   AVAILABLE     2       OBSTYPE   = SPECTROSCOPIC
STS     CFSTATUS   AVAILABLE     2       OPT_ELEM  = G750L
STS     CFSTATUS   AVAILABLE     2       CENWAVE   = 8975
! PR 43750  add test 3
STS     CFSTATUS   AVAILABLE     3       OBSTYPE   = SPECTROSCOPIC
STS     CFSTATUS   AVAILABLE     3       OPT_ELEM  = G140L
STS     CFSTATUS   AVAILABLE     3       CENWAVE   = 1575
!
! new supported grating/aperture combos (55364)
STS     t_APTEST   T             1       APERTURE  = 0.2X0.09
STS     t_APTEST   T             2       APERTURE  = 0.3X0.2
STS     t_APTEST   T             1       APERTURE  = 0.5X0.5
STS     t_APTEST   F             2       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = E140M
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDA
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDB
STS     t_APTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = E140H
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 0.1X0.09
STS     t_APTEST   T             2       APERTURE  = 0.3X0.2
STS     t_APTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = E230M
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 0.2X0.06
STS     t_APTEST   T             2       APERTURE  = 0.3X0.2
STS     t_APTEST   T             1       APERTURE  = 1X0.06
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDA
STS     t_APTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = E230H
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 0.3X0.2
STS     t_APTEST   T             2       APERTURE  = 1X0.2
STS     t_APTEST   T             1       APERTURE  = 2X2
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDA
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDB
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDC
STS     t_APTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = G140L
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 36X0.05P45
STS     t_APTEST   F             2       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = G140M
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 0.3X0.2
STS     t_APTEST   T             2       APERTURE  = 1X0.2
STS     t_APTEST   T             1       APERTURE  = 2X2
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDA
STS     t_APTEST   T             1       APERTURE  = 31X0.05NDB
STS     t_APTEST   T             2       APERTURE  = 31X0.05NDC
STS     t_APTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = G230L
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 0.1X0.09
STS     t_APTEST   F             2       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = G230LB
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 1X0.06
STS     t_APTEST   F             2       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = G230MB
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 2X2
STS     t_APTEST   F             2       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = G430L
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 36X0.6P45
STS     t_APTEST   F             2       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = G750L
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 2X2
STS     t_APTEST   T             2       APERTURE  = 36X0.6P45
STS     t_APTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = G750M
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 52X0.2F2
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G230LB
STS     t_GRTEST   T             2       OPT_ELEM  = G430L
STS     t_GRTEST   T             1       OPT_ELEM  = G430M
STS     t_GRTEST   T             2       OPT_ELEM  = G750L
STS     t_GRTEST   T             1       OPT_ELEM  = G750M
STS     t_GRTEST   F             2       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_GRTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 52X0.1F2
STS     t_APTEST   F             2       T         = T
STS     t_GRTEST   T             1       OPT_ELEM  = G430M
STS     t_GRTEST   T             2       OPT_ELEM  = G750M
STS     t_GRTEST   F             1       T         = T
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
STS     CFSTATUS   SUPPORTED     1       t_GRTEST  = T
!
STS     t_APTEST   T             1       APERTURE  = 52X0.1F1
STS     t_APTEST   F             2       T         = T
STS     CFSTATUS   SUPPORTED     1       OPT_ELEM  = G750M
STS     CFSTATUS   SUPPORTED     1       t_APTEST  = T
!

! PR 39985
! t_SUPP is a local variable with value T or F that indicates whether
! an observing mode is to be considered "supported".  The purpose is to
! extend the supported modes to include certain available modes.
STS     t_SUPP    T             1       CFSTATUS  =     SUPPORTED
STS     t_SUPP    T             2       CFSTATUS  =     AVAILABLE
STS     t_SUPP    T             2       DETECTOR  =     ?MAMA
STS     t_SUPP    T             2       OPT_ELEM  =     G?
STS     t_SUPP    T             2       APERTURE  =     0.2X0.2
STS     t_SUPP    F             3       T         =     T

! PR 54041
!
! slitless = [50CCD|25MAMA|25?|28?|6X6]
!
STS     t_SLITLS  T             1       APERTURE  = 50CCD
STS     t_SLITLS  T             2       APERTURE  = 25MAMA
STS     t_SLITLS  T             3       APERTURE  = F25?
STS     t_SLITLS  T             4       APERTURE  = F28?
STS     t_SLITLS  T             5       APERTURE  = 6X6
STS     t_SLITLS  F             6       T = T

! fiducial apertures (occulting bars)
! note that this ignores the -R apertures, which may be used for acq/peak
STS     t_FIDUCL  T             1       APERTURE  = 52X0.05F1
STS     t_FIDUCL  T             2       APERTURE  = 52X0.1F1
STS     t_FIDUCL  T             1       APERTURE  = 52X0.2F1
STS     t_FIDUCL  T             2       APERTURE  = 52X0.5F1
STS     t_FIDUCL  T             1       APERTURE  = 52X2F1
STS     t_FIDUCL  T             2       APERTURE  = 52X0.05F2
STS     t_FIDUCL  T             1       APERTURE  = 52X0.1F2
STS     t_FIDUCL  T             2       APERTURE  = 52X0.2F2
STS     t_FIDUCL  T             1       APERTURE  = 52X0.5F2
STS     t_FIDUCL  T             2       APERTURE  = 52X2F2
STS     t_FIDUCL  F             1       T = T

!
! STIS calibration switch settings
! Melissa McGrath: 4-Feb-1997
!
STS     STATFLAG  F             1       OBSMODE   =     ACQ
STS     STATFLAG  F             2       OBSMODE   =     ACQ/PEAK
STS     STATFLAG  T             3       T         =     T
!pr 45383
STS     CFSTATUS   ENGINEERING   1       DETECTOR  =     CCD
STS     CFSTATUS   ENGINEERING   1       CCDAMP   !=     D
! opr 39822 45383
STS     DQICORR   OMIT          1       CFSTATUS  =     ENGINEERING
STS     DQICORR   OMIT          2       OBSMODE   =     ACQ
STS     DQICORR   OMIT          3       OBSMODE   =     ACQ/PEAK
STS     DQICORR   PERFORM       4       DETECTOR  =     CCD
STS     DQICORR   PERFORM       4       SIZAXIS1  =     1062
STS     DQICORR   PERFORM       5       DETECTOR  =     CCD
STS     DQICORR   PERFORM       5       SIZAXIS1  =     1060
STS     DQICORR   PERFORM       6       DETECTOR  =     ?MAMA
STS     DQICORR   OMIT          7       T         =     T
!
STS     ATODCORR  OMIT          1       T         =     T
STS	BLEVCORR  {DQICORR}	1	T	  = 	T
!
STS	BIASCORR  OMIT		1	TARGNAME  =     BIAS
STS	BIASCORR  {BLEVCORR}	2	T	  = 	T
!
STS	DARKCORR  OMIT		1	TARGNAME  = 	BIAS
STS	DARKCORR  OMIT		2	TARGNAME  =     DARK
STS	DARKCORR  {DQICORR}	3	T	  = 	T
!
STS	SHADCORR  OMIT		1	T	  =	T
! PR 39985
STS     RPTCORR   PERFORM       1       DETECTOR  =     ?MAMA
STS     RPTCORR   PERFORM       1       t_SUPP    =     T
STS     RPTCORR   PERFORM       1       SS_RPT    >     1
STS     RPTCORR   OMIT          2       T         =     T
!
STS     FLATCORR  OMIT          1       OBSTYPE   =     IMAGING
STS     FLATCORR  OMIT          1       SCLAMP    !=    NONE
STS     FLATCORR  OMIT          2       SCLAMP    =     TUNGSTEN
STS     FLATCORR  OMIT          3       SCLAMP    =     DEUTERIUM
STS     FLATCORR  OMIT          4       SCLAMP    =     KRYPTON
STS     FLATCORR  {DARKCORR}    17      T         =     T
!
! PR 41562 
STS     CRCORR    OMIT          1       SS_SPLIT  =     1
STS     CRCORR    OMIT          1       SS_RPT    =     1
STS     CRCORR    OMIT          2       SS_RPT    >     30
STS     CRCORR    OMIT          3       TARGNAME  =     BIAS
! PR 34601
!STI     CRCORR    OMIT          4       TARGNAME  =     DARK
! PR 35987
STS     CRCORR    OMIT          5       SCLAMP    !=    NONE
STS     CRCORR    {BLEVCORR}    6       T         =     T
!
! PR 44465
STS     GEOCORR   OMIT          1       OBSTYPE   !=    IMAGING
STS     GEOCORR   {FLATCORR}    2       T         =     T
STS	EXPSCORR  {CRCORR}	1	T	  = 	T
!
STS     PHOTCORR   {FLATCORR}   1       T         =     T
!
! PR 33894
! pr 36662 comment out wavecorr test one
! pr 38059
! PR 39985
! PR 54041 
STS     WAVECORR  COMPLETE      1       WAVECORR  =     COMPLETE
STS     WAVECORR  OMIT          2       t_SUPP    !=    T
STS     WAVECORR  OMIT          3       WAVECAL   =     BLANK
STS     WAVECORR  OMIT          4       WAVECAL   =     N/A
STS     WAVECORR  {FLATCORR}    5       T         =     T
! PR 35987
! pr 38059
! PR 39985
! PR 42609
! PR 54041
STS     X1DCORR   OMIT          1       SCLAMP    !=    NONE
STS     X1DCORR   OMIT          2       OBSTYPE   =     IMAGING
STS     X1DCORR   OMIT          3       t_SUPP    !=    T
STS     X1DCORR   OMIT          4       t_SLITLS  =     T
STS     X1DCORR   OMIT          5       t_FIDUCL  =     T
STS     X1DCORR   PERFORM       6       WAVECORR  =     PERFORM
STS     X1DCORR   PERFORM       7       WAVECORR  =     COMPLETE
STS     X1DCORR   OMIT          8       T         =     T
!
! PR 43246
STS     SC2DCORR  PERFORM       1       X1DCORR   =     PERFORM
STS     SC2DCORR  PERFORM       1       OPT_ELEM  =     E?
STS     SC2DCORR  OMIT          2       T         =     T
! PR 35987
! pr 38059
! PR 39985
! PR 42609
! PR 54041
STS     X2DCORR   OMIT          1       OBSTYPE   =     IMAGING
STS     X2DCORR   OMIT          2       OPT_ELEM  =     E?
STS     X2DCORR   OMIT          3       OPT_ELEM  =     PRISM
STS     X2DCORR   OMIT          4       t_SUPP    !=    T
STS     X2DCORR   OMIT          5       t_SLITLS  =     T
STS     X2DCORR   PERFORM       6       WAVECORR  =     PERFORM
STS     X2DCORR   PERFORM       7       WAVECORR  =     COMPLETE
STS     X2DCORR   OMIT          8       T         =     T
!
! PR 35987
! PR 50513
! PR 54041
! PR 55364, pt2
STS     DISPCORR  PERFORM       1       X1DCORR   =     PERFORM
STS     DISPCORR  PERFORM       2       X2DCORR   =     PERFORM
STS     DISPCORR  OMIT          3       T         =     T
!
STS     HELCORR   OMIT          1       SCLAMP    !=    NONE
STS     HELCORR   {DISPCORR}    2       T         =     T
!
STS     FLUXCORR  OMIT          1       SCLAMP    !=    NONE
STS     FLUXCORR  {DISPCORR}    2       T         =     T 
!
STS     CTECORR   OMIT          1       DETECTOR  !=    CCD
STS     CTECORR   OMIT          2       SIZAXIS2  <     1044
STS     CTECORR   PERFORM       3       X1DCORR   =     PERFORM
STS     CTECORR   PERFORM       3       FLUXCORR  =     PERFORM
STS     CTECORR   OMIT          4       T         =     T
!
! PR 35987
STS     BACKCORR  {X1DCORR}    1       T         =     T
STS	SGEOCORR   OMIT		1	T	  = 	T
!
STS     DOPPCORR   PERFORM      1       DOPPON    =     T
STS     DOPPCORR   OMIT         2       T         =     T
!
! PR 37183 and 39761
STS     LORSCORR  OMIT          1       CFSTATUS  =     ENGINEERING
STS     LORSCORR  PERFORM       2       BINAXIS1  =     1
STS     LORSCORR  PERFORM       3       BINAXIS2  =     1
STS     LORSCORR  OMIT          4       T         =     T
!
STS     GLINCORR  {DQICORR}     1       T         =     T
STS     LFLGCORR  {DQICORR}     1       T         =     T
!
!
! PR 36235_06
! These rules set STIS calibration switches to OMIT where the switches
! should not even appear in the STIS header (needed for KWSET, since all
! switches are always present in the database).  These rules should be
! the last SWITCH rules run, since they override all other switch rules.
!
STS     ATODCORR  OMIT          1       DETECTOR  =     ?MAMA
STS     BIASCORR  OMIT          1       DETECTOR  =     ?MAMA
STS     BLEVCORR  OMIT          1       DETECTOR  =     ?MAMA
STS     CRCORR    OMIT          1       DETECTOR  =     ?MAMA
STS     EXPSCORR  OMIT          1       DETECTOR  =     ?MAMA
STS     SHADCORR  OMIT          1       DETECTOR  =     ?MAMA
!
STS     BACKCORR  OMIT          1       OBSTYPE   =     IMAGING
STS     DISPCORR  OMIT          1       OBSTYPE   =     IMAGING
STS     FLUXCORR  OMIT          1       OBSTYPE   =     IMAGING
STS     HELCORR   OMIT          1       OBSTYPE   =     IMAGING
STS     WAVECORR  OMIT          1       OBSTYPE   =     IMAGING
STS     X1DCORR   OMIT          1       OBSTYPE   =     IMAGING
STS     X2DCORR   OMIT          1       OBSTYPE   =     IMAGING
!
STS     DOPPCORR  OMIT          1       DETECTOR  =     CCD
STS     DOPPCORR  OMIT          2       OBSTYPE   =     IMAGING
!
STS     GLINCORR  OMIT          1       DETECTOR  =     CCD
STS     LFLGCORR  OMIT          1       DETECTOR  =     CCD
STS     LORSCORR  OMIT          1       DETECTOR  =     CCD
STS     SGEOCORR  OMIT          1       DETECTOR  =     CCD
!
STS     GEOCORR   OMIT          1       OBSTYPE   =     SPECT?
STS     PHOTCORR  OMIT          1       OBSTYPE   =     SPECT?
!
! PR 48512 - populate WCS bintable keywords using WCS image keywords
STS     TCTYP2    {CTYPE1}      1       OBSMODE   =     TIME-TAG
STS     TCTYP3    {CTYPE2}      1       OBSMODE   =     TIME-TAG
STS     TCRVL2    {CRVAL1}      1       OBSMODE   =     TIME-TAG
STS     TCRVL3    {CRVAL2}      1       OBSMODE   =     TIME-TAG
STS     TCRPX2    {CRPIX1}      1       OBSMODE   =     TIME-TAG
STS     TCRPX3    {CRPIX2}      1       OBSMODE   =     TIME-TAG
STS     TC2_2     {CD1_1}       1       OBSMODE   =     TIME-TAG
STS     TC2_3     {CD1_2}       1       OBSMODE   =     TIME-TAG
STS     TC3_2     {CD2_1}       1       OBSMODE   =     TIME-TAG
STS     TC3_3     {CD2_2}       1       OBSMODE   =     TIME-TAG
! the TCUNI2 default is "angstrom" so we only need to reset for images
STS     TCUNI2    deg           1       OBSMODE   =     TIME-TAG
STS     TCUNI2    deg           1       OBSTYPE   =     IMAGING
!
! PR 33765
STI	SPEC_2    BLANK 	1	T	  = 	T
STI	SPEC_3    BLANK 	1	T	  = 	T
STI	SPEC_4    BLANK 	1	T	  = 	T
STI	APER_2    BLANK 	1	T	  = 	T
STI	APER_3    BLANK 	1	T	  = 	T
STI	APER_4    BLANK 	1	T	  = 	T
!
! PR 45121
! pr 45827  (2001182 = Jun 30 2001)
STI     OCCDHTAV  -1            1   t_EXPDATE < 2001182.0
!
! PR 34722
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
! protect against divide-by-zero
STI     GLOBRATE  -1            1   DETECTOR = FUV-MAMA
STI     GLOBRATE  -1            1   OM1GEVIP <  0.000001
STI     GLOBRATE  -1            1   OM1GEVIP > -0.000001
STI     GLOBRATE  -1            2   DETECTOR = NUV-MAMA
STI     GLOBRATE  -1            2   OM2GEVIP <  0.000001
STI     GLOBRATE  -1            2   OM2GEVIP > -0.000001
STI     GLOBRATE  [{OM1EVQ}/({OM1GEVIP}/1000.0)] 3 DETECTOR  = FUV-MAMA
STI     GLOBRATE  [{OM2EVQ}/({OM2GEVIP}/1000.0)] 4 DETECTOR  = NUV-MAMA
STI     GLOBRATE  -1            5   T         =         T
!
STI     GLOBLIM   UNDETERMINED  1   T         =         T
!
NIC	OPMODE	  MULTIACCUM    1  	NOPMODE   =     MULTIACC
NIC     OPMODE    BRIGHTOBJ     2       NOPMODE   =     BRIGHTOB
NIC     OPMODE    AUTO_RESET    3       NOPMODE   =     AUTO_RES
!
NIC	OBSMODE	  {OPMODE}      1       T         =     T
!
NIC	SS_MODE	  {OPMODE}	1	T	  = 	T
NIC	SS_CAMRA  1		1	CONFIG	  = 	NIC1
NIC	SS_CAMRA  2		2	CONFIG	  =     NIC2
NIC	SS_CAMRA  3		3	CONFIG    = 	NIC3
NIC	SS_CAMRA  0		4	T	  = 	T
NIC	SS_FILT   {SPEC_1}	1	T	  = 	T
! PR 33611
NIC	FILTER	  {NFILTER1}	1	CAMERA	  = 	1
NIC	FILTER	  {NFILTER2}	2	CAMERA	  = 	2
NIC	FILTER	  {NFILTER3}	3	CAMERA	  = 	3
! PR 33765
NIC	SPEC_2    BLANK 	1	T	  = 	T
NIC	SPEC_3    BLANK 	1	T	  = 	T
NIC	SPEC_4    BLANK 	1	T	  = 	T
NIC	APER_2    BLANK 	1	T	  = 	T
NIC	APER_3    BLANK 	1	T	  = 	T
NIC	APER_4    BLANK 	1	T	  = 	T
!
NIC	FOCUS	  UNKNOWN	1	APEROBJ   = 	BLANK
NIC	FOCUS	  CAMERA1	2	APEROBJ	  =     NIC1
NIC     FOCUS     CAMERA1       3       APEROBJ   =     NIC1FIX
NIC	FOCUS	  CAMERA1	4	APEROBJ	  =     NIC2P1
NIC     FOCUS     CAMERA1       5       APEROBJ   =     NIC3P1
NIC	FOCUS	  CAMERA1	6	APEROBJ	  =     NIC1Q1
NIC     FOCUS     CAMERA1       7       APEROBJ   =     NIC1Q2
NIC	FOCUS	  CAMERA1	8	APEROBJ	  =     NIC1Q3
NIC     FOCUS     CAMERA1       9       APEROBJ   =     NIC1Q4
NIC	FOCUS	  CAMERA1	10	APEROBJ	  =     NIC1MAC
NIC     FOCUS     CAMERA1       11      APEROBJ   =     NIC1FOM
!
NIC	FOCUS	  CAMERA2	12	APEROBJ	  =     NIC2
NIC     FOCUS     CAMERA2       13      APEROBJ   =     NIC2FIX
NIC	FOCUS	  CAMERA2	14	APEROBJ	  =     NIC1P2
NIC     FOCUS     CAMERA2       15      APEROBJ   =     NIC3P2
NIC	FOCUS	  CAMERA2	16	APEROBJ	  =     NIC2Q1
NIC     FOCUS     CAMERA2       17      APEROBJ   =     NIC2Q2
NIC	FOCUS	  CAMERA2	18	APEROBJ	  =     NIC2Q3
NIC     FOCUS     CAMERA2       19      APEROBJ   =     NIC2Q4
NIC	FOCUS	  CAMERA2	20	APEROBJ	  =     NIC2MAC
NIC     FOCUS     CAMERA2       21      APEROBJ   =     NIC2FOM
!
NIC	FOCUS	  CAMERA3	22	APEROBJ	  =     NIC3
NIC     FOCUS     CAMERA3       23      APEROBJ   =     NIC3FIX
NIC	FOCUS	  CAMERA3	24	APEROBJ	  =     NIC1P3
NIC     FOCUS     CAMERA3       25      APEROBJ   =     NIC2P3
NIC	FOCUS	  CAMERA3	26	APEROBJ	  =     NIC3Q1
NIC     FOCUS     CAMERA3       27      APEROBJ   =     NIC3Q2
NIC	FOCUS	  CAMERA3	28	APEROBJ	  =     NIC3Q3
NIC     FOCUS     CAMERA3       29      APEROBJ   =     NIC3Q4
NIC	FOCUS	  CAMERA3	30	APEROBJ	  =     NIC3MAC
NIC     FOCUS     CAMERA3       31      APEROBJ   =     NIC3FOM
!
NIC	FOCUS	  CAMERA1_2	32	APEROBJ	  =     NIC1FP12
NIC     FOCUS     CAMERA1_2     33      APEROBJ   =     NIC1P12
NIC	FOCUS	  CAMERA1_2	34	APEROBJ	  =     NIC2FP12
NIC     FOCUS     CAMERA1_2     35      APEROBJ   =     NIC2P12
NIC	FOCUS	  CAMERA1_2	36	APEROBJ	  =     NIC3P12
NIC     FOCUS     CAMERA2_3     37      APEROBJ   =     NIC1FP23
NIC	FOCUS	  CAMERA2_3	38	APEROBJ	  =     NIC1P23
NIC     FOCUS     CAMERA2_3     39      APEROBJ   =     NIC2FP23
NIC	FOCUS	  CAMERA2_3	40	APEROBJ	  =     NIC2P23
NIC     FOCUS     CAMERA2_3     41      APEROBJ   =     NIC3P23
!
NIC	FOCUS	  CORON		42	APEROBJ	  =     NIC2ACQ
NIC     FOCUS     CORON		43      APEROBJ   =     NIC2COR
NIC	FOCUS	  {APEROBJ}	44	T	  = 	T
!
NIC	NREAD     1		1	OPMODE	  != 	ACCUM
NIC	NSAMP     1		1	OPMODE	  = 	ACCUM
NIC	SS_NREAD  1		1	OPMODE	  != 	ACCUM
NIC	SS_NSAMP  1		1	OPMODE	  = 	ACCUM
!
NIC  	APERTURE  {APER_1}      1       T	  = 	T
NIC	SS_RDOUT  FAST		1	SS_RDOUT  =     BLANK
NIC	SS_CRELM  CONTINUE	1	SS_MODE   =	RAMP
NIC	SS_CRELM  CONTINUE	1	SS_CRELM  =     BLANK
!
NIC	IMAGETYP  DARK		1	FILTER    =     ?BLANK
NIC     IMAGETYP  DARK          2       TARGNAME  =     POST-SAA-DARK
NIC     IMAGETYP  FLAT          3       NLMPSTAT  !=    AllOff
NIC     IMAGETYP  EXT           4       T         =     T
!
!       NICMOS exposure time constants  (OPR.37381)
!
NIC	DET_WARM  0.0280	1	T	  =	T
NIC	RO_RATIO  16		1	T	  =     T
NIC	FAST_RO   0.1750	1	T	  =     T
NIC	ACC_RDLY  0.025		1	TIMEPATT  = 	9
NIC	ACC_RDLY  0.025		2	TIMEPATT  = 	19
NIC	ACC_RDLY  0.025		3	TIMEPATT  = 	29
NIC	ACC_RDLY  0.3950	4	T	  =     T
!
!	Set the zero offset correlation step
!
! NICMOS Calibration switch settings
!
NCS	ZOFFCORR  PERFORM	1	OPMODE    =	MULTIACCUM
NCS	ZOFFCORR  OMIT		2	T  	  = 	T
!
NCS	ZSIGCORR  {ZOFFCORR}  	1	T  	  = 	T
!
NCS	UNITCORR  OMIT		1	TARGNAME  =     DARK
NCS     UNITCORR  OMIT          2       FILTER    =     ?BLANK
NCS     UNITCORR  OMIT          3       TARGNAME  =     EARTH?
NCS     UNITCORR  OMIT          4       TARGNAME  =     NONE
NCS     UNITCORR  OMIT          5       NLMPSTAT  !=    AllOff
NCS     UNITCORR  PERFORM       6       T         =     T
!
NCS     ILLMCORR  {UNITCORR}    1       T         =     T
NCS     BACKCALC  {UNITCORR}    1       T         =     T
NCS     PHOTCALC  {UNITCORR}    1       T         =     T
!
! PR 33629 
NCS     WARNCALC  PERFORM       1       T         =     T
NCS     NLINCORR  OMIT          1       FILTER    =     ?BLANK
!
!  new FLATCORR rules from ICD-47
!
NCS     FLATCORR  OMIT          1       FILTER    =     G096
NCS     FLATCORR  OMIT          2       FILTER    =     G141
NCS     FLATCORR  OMIT          3       FILTER    =     G206
NCS     FLATCORR  OMIT          4       TARGNAME  =     DARK
NCS     FLATCORR  OMIT          5       FILTER    =     ?BLANK
NCS     FLATCORR  {UNITCORR}    6       T         =     T
!
NCS     DARKCORR  OMIT          1       TARGNAME  =     DARK
NCS     DARKCORR  OMIT          2       FILTER    =     ?BLANK
NCS     DARKCORR  OMIT          3       OPMODE    =     BRIGHTOBJ
NCS     DARKCORR  PERFORM       4       T         =     T
!
NCS	BIASCORR  PERFORM	1	T	  = 	T
!
!   Switch settings for NIC SAA Darks (OPR40281)
!
NCS     ZSIGCORR  PERFORM       1       TARGNAME  =     POST-SAA-DARK
NCS     ZOFFCORR  PERFORM       1       TARGNAME  =     POST-SAA-DARK
NCS     MASKCORR  PERFORM       1       TARGNAME  =     POST-SAA-DARK
NCS     BIASCORR  PERFORM       1       TARGNAME  =     POST-SAA-DARK
NCS     NOISCALC  PERFORM       1       TARGNAME  =     POST-SAA-DARK
NCS     DARKCORR  PERFORM       1       TARGNAME  =     POST-SAA-DARK
NCS     UNITCORR  OMIT          1       TARGNAME  =     POST-SAA-DARK
NCS     ILLMCORR  OMIT          1       TARGNAME  =     POST-SAA-DARK
NCS     BACKCALC  OMIT          1       TARGNAME  =     POST-SAA-DARK
NCS     PHOTCALC  OMIT          1       TARGNAME  =     POST-SAA-DARK
NCS     WARNCALC  OMIT          1       TARGNAME  =     POST-SAA-DARK
! PR 44565 
NCS     NLINCORR  PERFORM       1       TARGNAME  =     POST-SAA-DARK
NCS     FLATCORR  OMIT          1       TARGNAME  =     POST-SAA-DARK
!
! PR 44663 
NCS   BARSCORR  {ZOFFCORR}     1      T         =      T
!
! try this to see if it can do what NIC team wants
NCS     TFBCALC   OMIT          1       OPMODE    =     ACQ
NCS     TFBCALC   OMIT          2       OPMODE    =     ACCUM
NCS     TFBCALC   OMIT          3       OPMODE    =     BRIGHTOBJ
NCS     TFBCALC   PERFORM       4       T         =     T
NCS     TFBDONE   N/A           1       TFBCALC   =     OMIT
!
ALL	TAR_TYPE  "POINT TARGET"    1	TAR_TYPE  =	P
ALL	TAR_TYPE  "MOVING TARGET"   2	TAR_TYPE  =	M
ALL	TAR_TYPE  "AREA TARGET"	    3	TAR_TYPE  =	A
ALL	TAR_TYPE  "GENERIC TARGET"  4	TAR_TYPE  =	G
!
!	The following replaces the code: GC_FGS_lock.c
!
ALL	FGSLOCK   FINE		1	FGSLOCK	  =	FINE
ALL	FGSLOCK	  FINE		2	FGSLOCK   =     BASE?
ALL	FGSLOCK   COARSE     	3	FGSLOCK   = 	COAR?
ALL	FGSLOCK   COARSE	4	FGSLOCK   =     BOTH
ALL	FGSLOCK   COARSE	5	FGSLOCK	  = 	CRSE
ALL	FGSLOCK	  GYROS		6	FGSLOCK	  = 	GYRO?
ALL	FGSLOCK	  GYROS		7	FGSLOCK	  = 	FHST
ALL	FGSLOCK	  UNKNOWN	8	T	  =	T
!
ALL	CALIBRAT  T		1	CALIBRAT  = 	Y
ALL	CALIBRAT  F		2	CALIBRAT  =	N
ALL	CDBSDATA  FALSE		1	CDBSDATA  = 	BLANK
!
!...new rules for the CCDOFFST keyword
STI	CCDOFFST  {OCCAAOF}	1	CCDAMP	  = 	A
STI	CCDOFFST  {OCCABOF}	2	CCDAMP    =     B
STI	CCDOFFST  {OCCACOF}     3       CCDAMP    =     C
STI     CCDOFFST  {OCCADOF}     4       CCDAMP    =     D
!
!...rules for PRIMESI keyword
! PR 67273 Add rule at the front to catch the case where
!  qoobservation.prime_aper = OTA 
!  OTA is Optical Telescope Assembly, but the old rules
!   set the value of PRIMESI to STIS
!
ALL	PRIMESI   HST   	1	PRIMESI   =	OTA
ALL	PRIMESI   STIS  	2	PRIMESI   =     O?
ALL	PRIMESI   NICMOS	3	PRIMESI   =	N?
ALL	PRIMESI   WFPC2		4	PRIMESI   =	U?
ALL	PRIMESI   WFPC		5	PRIMESI   =	W?
ALL	PRIMESI   HSP		6	PRIMESI   =	V?
ALL	PRIMESI   HRS		7	PRIMESI   =	Z?
ALL	PRIMESI   FOS		8	PRIMESI   =	Y?
ALL	PRIMESI   FOC		9	PRIMESI   =	X?
ALL	PRIMESI   FGS		10	PRIMESI   =	F?
ALL	PRIMESI   ACS		11	PRIMESI   =	J?
ALL	PRIMESI   WFC3		12	PRIMESI   =	I?
ALL	PRIMESI   COS		13	PRIMESI   =	L?
!
! GSC1 guidestars start with zero,
! ICRS start with N or S (but not NONE)
! Any other values for DGESTAR and SGESTAR will result in the REFFRAME value
! assigned by SPSS being used (i.e. only the cases below will overwrite the
! SPSS-provided value).
!
ALL     REFFRAME  GSC1          1       DGESTAR   =     0?
ALL     REFFRAME  GSC1          1       SGESTAR   =     0?
ALL     REFFRAME  ICRS          2       DGESTAR   =     S?
ALL     REFFRAME  ICRS          2       SGESTAR   =     S?
ALL     REFFRAME  ICRS          3       DGESTAR   !=    NONE
ALL     REFFRAME  ICRS          3       SGESTAR   !=    NONE
ALL     REFFRAME  ICRS          3       DGESTAR   =     N?
ALL     REFFRAME  ICRS          3       SGESTAR   =     N?
!
!
STI	WAVECAL		N/A	1	WAVECAL		=	BLANK
!
STI	APER_FOV	{SLITSIZE} 1	T		=	T
STI	POSTARG1	{APEROFFX} 1	T		=	T
STI	POSTARG2	{APEROFFY} 1	T		=	T
!
STI	PEAKCENT	MAX-FLUX-CENTROID 	1	OCENTCMD	= 1 
STI	PEAKCENT	MIN-FLUX-CENTROID 	2	OCENTCMD	= 2 
STI	PEAKCENT	RETURN-TO-BRIGHTEST	3	OCENTCMD	= 3 
STI	PEAKCENT	RETURN-TO-FAINTEST 	4	OCENTCMD	= 4 
STI	PEAKCENT	NONE			5	T		= T 
!
STI	PKSEARCH	LINEARAXIS1		1	OSCANTYP	= 2
STI	PKSEARCH	LINEARAXIS2		2	OSCANTYP	= 1
STI	PKSEARCH	SPIRAL			3	OSCANTYP	= 3
STI	PKSEARCH	NONE			4	T		= T
!
STI	REPELLER	ON	1	OM1FLDV	<	0
STI	REPELLER	OFF	2	T	=	T
!
STI	CONFIG	STIS/FUV-MAMA	1	CONFIG		=	STIS/MA1
STI	CONFIG	STIS/NUV-MAMA	2	CONFIG		=	STIS/MA2
!
STI	REJ_RATE	0.0	1	DETECTOR	=	CCD
!
STI	SKYSUM		0.0	1	DETECTOR	=	CCD
STI	SKYSUM		0.0	1	OBSTYPE		=	IMAGING
!
!
! *******************************************************************
!	Flags and Indicators for WFPC2
! *******************************************************************
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
WF2	T_ATOD     ROBAY3	1   UCSELECT	=	1
WF2	T_ATOD     " "		2   UCSELECT	=	0
WF2	T_ATOD     -1		3   T		=	T
!
!
WF2	T_MODE	   AREA		1   UPKTLEN 	= 	92	
WF2	T_MODE	   FULL		2   UPKTLEN	=	108
WF2	T_MODE	   ERROR	3   T		=	T
!
!
! *******************************************************************
!	Flags and Indicators for FOC
! *******************************************************************
!
! 
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
!
FC2	T_DRIVE	  MDE1		1   XNMDE1ST	=	1
FC2	T_DRIVE	  MDE1		1   XNMDE2ST	=	0
FC2	T_DRIVE	  MDE2		2   XNMDE1ST	=	0
FC2	T_DRIVE	  MDE2		2   XNMDE2ST	=	1
FC2	T_DRIVE	  ERROR		3   T		=	T
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
FC2	T_OPRLY	  F48		1   XNDHU1ST	=	1
FC2	T_OPRLY   F48		1   XNDHU2ST	=	0
FC2	T_OPRLY   F96		2   XNDHU1ST	=	0
FC2	T_OPRLY   F96		2   XNDHU2ST	=	1
FC2	T_OPRLY   ERROR		3   T	=	T
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
FC2	T_SMMMO  INBEAM		1    XNMDE1ST	=	1
FC2	T_SMMMO  INBEAM		1    XXDE1SMI	=	1
FC2	T_SMMMO  INBEAM		1    XXDE1SMO	=	0
FC2	T_SMMMO  NOTUSED	2    XNMDE1ST	=	1
FC2	T_SMMMO  NOTUSED	2    XXDE1SMI	=	0
FC2	T_SMMMO  NOTUSED	2    XXDE1SMO	=	1
FC2	T_SMMMO  INBEAM		3    XNMDE2ST	=	1
FC2	T_SMMMO  INBEAM		3    XXDE2SMI	=	1
FC2	T_SMMMO  INBEAM		3    XXDE2SMO	=	0
FC2	T_SMMMO  NOTUSED	4    XNMDE2ST	=	1
FC2	T_SMMMO  NOTUSED	4    XXDE2SMI	=	0
FC2	T_SMMMO  NOTUSED	4    XXDE2SMO	=	1
FC2	T_SMMMO  ERROR	 	5    T		=	T
!
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
!
FC2     T_PXFMT  NORMAL         1   T_OPRLY     =       "F96"
FC2     T_PXFMT  NORMAL         1   X96ZOMST    =       0
FC2     T_PXFMT  ZOOM           2   T_OPRLY     =       "F96"
FC2     T_PXFMT  ZOOM           2   X96ZOMST    =       1
FC2     T_PXFMT  NORMAL         3   T_OPRLY     =       "F48"
FC2     T_PXFMT  NORMAL         3   X48ZOMST    =       0
FC2     T_PXFMT  ZOOM           4   T_OPRLY     =       "F48"
FC2     T_PXFMT  ZOOM           4   X48ZOMST    =       1
FC2     T_PXFMT  ERROR		5	T	=       T
! *******************************************************************
!	Make generic keyword load packages work
! *******************************************************************
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
FC2	DUMPTYPE  Science	1      T		=	T
! Transfer keyword values from D.V. step
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
WF2     MODE     {T_MODE}       1   T           =       T
WF2     FILTER1  {T_FILT1}      1   T           =       T
WF2     FILTER2  {T_FILT2}      1   T           =       T
WF2     PKTFMT    {UPKTFMT} 	1   T		=       T
! 43736 set FILTROT value
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
WF2     FILTROT   15           1     FILTER1    >       67
WF2     FILTROT   15           1     FILTER1    <       72
WF2     FILTROT   15           2     FILTER2    >       67
WF2     FILTROT   15           2     FILTER2    <       72
WF2     FILTROT   15           3     FILTER1    =       52
WF2     FILTROT   15           4     FILTER2    =       52
WF2     FILTROT   15           5     FILTER1    =       55
WF2     FILTROT   15           6     FILTER2    =       55
!
WF2     FILTROT   -15          7     FILTER1    =       51
WF2     FILTROT   -15          8     FILTER2    =       51
WF2     FILTROT   -15          9     FILTER1    =       58
WF2     FILTROT   -15          10    FILTER2    =       58
!
WF2     FILTROT   -33          11    FILTER1    =       53
WF2     FILTROT   -33          12    FILTER2    =       53
WF2     FILTROT   -33          13    FILTER1    =       56
WF2     FILTROT   -33          14    FILTER2    =       56
WF2     FILTROT   -33          15    FILTER1    =       57
WF2     FILTROT   -33          16    FILTER2    =       57
WF2     FILTROT   -33          17    FILTER1    =       60
WF2     FILTROT   -33          18    FILTER2    =       60
WF2     FILTROT   -33          19    FILTER1    =       62
WF2     FILTROT   -33          20    FILTER2    =       62
WF2     FILTROT   -33          21    FILTER1    =       64
WF2     FILTROT   -33          22    FILTER2    =       64
WF2     FILTROT   -33          23    FILTER1    =       66
WF2     FILTROT   -33          24    FILTER2    =       66
!
WF2     FILTROT   -18          25    FILTER1    =       54
WF2     FILTROT   -18          26    FILTER2    =       54
WF2     FILTROT   -18          27    FILTER1    =       61
WF2     FILTROT   -18          28    FILTER2    =       61
WF2     FILTROT   -18          29    FILTER1    =       63
WF2     FILTROT   -18          30    FILTER2    =       63
WF2     FILTROT   -18          31    FILTER1    =       65
WF2     FILTROT   -18          32    FILTER2    =       65
WF2     FILTROT   -18          33    FILTER1    =       67
WF2     FILTROT   -18          34    FILTER2    =       67
!
WF2     FILTROT   15           35     FILTER1    =       59
WF2     FILTROT   15           36     FILTER2    =       59
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
WF2     SERIALS   ON            1   UPKTFMT     =       104 ! 68x
WF2     SERIALS   ON            2   UPKTFMT     =       105 ! 69x
WF2     SERIALS   ON            3   UPKTFMT     =       48  ! 30x
WF2     SERIALS   ON            4   UPKTFMT     =       49  ! 31x
WF2     SERIALS   ON            5   UPKTFMT     =       56  ! 38x
WF2     SERIALS   ON            6   UPKTFMT     =       57  ! 39x
WF2     SERIALS   ON            7   UPKTFMT     =       33  ! 21x
WF2     SERIALS   ON            8   UPKTFMT     =       41  ! 29x
WF2     SERIALS   OFF           9   T		=	T
!
WF2     KSPOTS    ON            1   UPKTFMT     =       35  ! 23x
WF2     KSPOTS    ON            2   UPKTFMT     =       43  !
WF2     KSPOTS    OFF           3   T           =       T
!
WF2     DOSATMAP  OMIT          1   T           =       T
WF2     DOHISTOS  OMIT          1   T           =       T
WF2     OUTDTYPE  REAL          1   T           =       T
WF2     SATURATE  4095          1   T           =       T
WF2     USCALE    1.0           1   T           =       T
WF2     UZERO     0.0           1   T           =       T
WF2     RSDPFILL  -100          1   T           =       T
WF2     EQUINOX   2000.0        1   T           =       T
WF2     DATAMIN   0             1   T           =       T
WF2     DATAMAX   -1            1   T           =       T
WF2     FILLCNT   0             1   T           =       T
WF2     ERRCNT    0             1   T           =       T
!
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
WF2     UUVCAL    ON            1    UCALMPWR =       ON
WF2     UUVCAL    ON            1    UUVINSEL =       UV
WF2     UUVCAL    OFF           2    T          =       T
!
WF2     UVISCAL   ON            1    UCALMPWR =       ON
WF2     UVISCAL   ON            1    UUVINSEL =       VIS
WF2     UVISCAL   ON            2    UCALMPWR =       ON
WF2     UVISCAL   ON            2    UUVINSEL =       INCAN
WF2     UVISCAL   OFF           3    T          =       T
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
WF2     PKTINDEX  8             1    TARGNAME =       "EARTH-CALIB"
WF2     PKTINDEX  2             2    UPKTFMT  =       32
WF2     PKTINDEX  2             3    UPKTFMT  =       40
WF2     PKTINDEX  1             4    UPKTFMT  =       33
WF2     PKTINDEX  1             5    UPKTFMT  =       41
WF2     PKTINDEX  1             6    UPKTFMT  =       34
WF2     PKTINDEX  1             7    UPKTFMT  =       42
WF2     PKTINDEX  6             8    UPKTFMT  =       35
WF2     PKTINDEX  6             9    UPKTFMT  =       43
WF2     PKTINDEX  3             10    UPKTFMT  =       36
WF2     PKTINDEX  3             11   UPKTFMT  =       44
WF2     PKTINDEX  5             12   UPKTFMT  =       37
WF2     PKTINDEX  5             13   UPKTFMT  =       45
WF2     PKTINDEX  5             14   UPKTFMT  =       48
WF2     PKTINDEX  5             15    UPKTFMT  =       56
WF2     PKTINDEX  4             16   UPKTFMT  =       38
WF2     PKTINDEX  4             17   UPKTFMT  =       46
WF2     PKTINDEX  4             18   UPKTFMT  =       49
WF2     PKTINDEX  4             19   UPKTFMT  =       57
WF2     PKTINDEX  8             20   UPKTFMT  =       39
WF2     PKTINDEX  8             21   UPKTFMT  =       47
WF2     PKTINDEX  7             22   T          =       T
!
WF2     IMAGETYP  DARK          1    PKTINDEX =       1
WF2     IMAGETYP  BIAS          2    PKTINDEX =       2
WF2     IMAGETYP  IFLAT         3    PKTINDEX =       3
WF2     IMAGETYP  UFLAT         4    PKTINDEX =       4
WF2     IMAGETYP  VFLAT         5    PKTINDEX =       5
WF2     IMAGETYP  KSPOT         6    PKTINDEX =       6
WF2     IMAGETYP  EXT           7    PKTINDEX =       7
WF2     IMAGETYP  ECAL          8    PKTINDEX =       8
!
! Note: -1 used in place of NULL to indicate no good value availalble.
!        Otherwise NULL causes 0.0 to be the value.
WF2	CENTRWV	1322	1	FILTER1  =	 1 !FILTNAM1 =	F122M
WF2	CENTRWV	5815	2	FILTER1  =	 2 !FILTNAM1 =	F130LP
WF2	CENTRWV	1523	3	FILTER1  =	 3 !FILTNAM1 =	F160AW
WF2	CENTRWV	1523	4	FILTER1  =	49 !FILTNAM1 =	F160AN15
WF2	CENTRWV	1523	5	FILTER1  =	50 !FILTNAM1 =	F160AP15
WF2	CENTRWV	1523	6	FILTER1  =	51 !FILTNAM1 =	F160BN15
WF2	CENTRWV	1523	7	FILTER1  =	52 !FILTNAM1 =	F160BP15
WF2	CENTRWV	1522	8	FILTER1  =	 4 !FILTNAM1 =	F160BW
WF2	CENTRWV	5853	9	FILTER1  =	 5 !FILTNAM1 =	F165LP
WF2	CENTRWV	1770 	10	FILTER1  =	 6 !FILTNAM1 =	F170W
WF2	CENTRWV	1962 	11	FILTER1  =	 7 !FILTNAM1 =	F185W
WF2	CENTRWV	2203 	12	FILTER1  =	 8 !FILTNAM1 =	F218W
WF2	CENTRWV	2599 	13	FILTER1  =	 9 !FILTNAM1 =	F255W
WF2	CENTRWV	2987 	14	FILTER1  =	10 !FILTNAM1 =	F300W
WF2	CENTRWV	3344 	15	FILTER1  =	11 !FILTNAM1 =	F336W
WF2	CENTRWV	3427 	16	FILTER1  =	12 !FILTNAM1 =	F343N
WF2	CENTRWV	3732 	17	FILTER1  =	13 !FILTNAM1 =	F375N
WF2	CENTRWV	3983 	18	FILTER1  =	14 !FILTNAM1 =	F380W
WF2	CENTRWV	3888 	19	FILTER1  =	15 !FILTNAM1 =	F390N
WF2	CENTRWV	4088 	20	FILTER1  =	16 !FILTNAM1 =	F410M
WF2	CENTRWV	4369 	21	FILTER1  =	17 !FILTNAM1 =	F437N
WF2	CENTRWV	4311 	22	FILTER1  =	18 !FILTNAM1 =	F439W
WF2	CENTRWV	4556 	23	FILTER1  =	19 !FILTNAM1 =	F450W
WF2	CENTRWV	4670 	24	FILTER1  =	20 !FILTNAM1 =	F467M
WF2	CENTRWV	4694 	25	FILTER1  =	21 !FILTNAM1 =	F469N
WF2	CENTRWV	4865 	26	FILTER1  =	22 !FILTNAM1 =	F487N
WF2	CENTRWV	5012 	27	FILTER1  =	23 !FILTNAM1 =	F502N
WF2	CENTRWV	5483 	28	FILTER1  =	24 !FILTNAM1 =	F547M
WF2	CENTRWV	5439 	29	FILTER1  =	25 !FILTNAM1 =	F555W
WF2	CENTRWV	5642 	30	FILTER1  =	26 !FILTNAM1 =	F569W
WF2	CENTRWV	5894 	31	FILTER1  =	27 !FILTNAM1 =	F588N
WF2	CENTRWV	5997 	32	FILTER1  =	28 !FILTNAM1 =	F606W
WF2	CENTRWV	6186 	33	FILTER1  =	29 !FILTNAM1 =	F622W
WF2	CENTRWV	6306 	34	FILTER1  =	30 !FILTNAM1 =	F631N
WF2	CENTRWV	6564 	35	FILTER1  =	31 !FILTNAM1 =	F656N
WF2	CENTRWV	6591 	36	FILTER1  =	32 !FILTNAM1 =	F658N
WF2	CENTRWV	6732 	37	FILTER1  =	33 !FILTNAM1 =	F673N
WF2	CENTRWV	6717 	38	FILTER1  =	34 !FILTNAM1 =	F675W
WF2	CENTRWV	6919 	39	FILTER1  =	35 !FILTNAM1 =	F702W
WF2	CENTRWV	8707 	40	FILTER1  =	36 !FILTNAM1 =	F785LP
WF2	CENTRWV	7881 	41	FILTER1  =	37 !FILTNAM1 =	F791W
WF2	CENTRWV	8012 	42	FILTER1  =	38 !FILTNAM1 =	F814W
WF2	CENTRWV	9129 	43	FILTER1  =	39 !FILTNAM1 =	F850LP
WF2	CENTRWV	9545 	44	FILTER1  =	40 !FILTNAM1 =	F953N
WF2	CENTRWV	10228 	45 	FILTER1  =	41 !FILTNAM1 =	F1042M
WF2	CENTRWV	3913 	46	FILTER1  = 	42 !FILTNAM1 =	FQUVN
WF2	CENTRWV	3765 	47	FILTER1  = 	56 !FILTNAM1 =	FQUVN33
WF2	CENTRWV	7279 	48	FILTER1  = 	43 !FILTNAM1 =	FQCH4N
WF2	CENTRWV	6199 	49	FILTER1  = 	57 !FILTNAM1 =	FQCH4N33
WF2	CENTRWV	6199 	50	FILTER1  = 	58 !FILTNAM1 =	FQCH4N15
WF2	CENTRWV	8930 	51	FILTER1  = 	59 !FILTNAM1 =	FQCH4P15
WF2	CENTRWV	-1 	52	FILTER1  = 	48 !FILTNAM1 =	POLQ
WF2	CENTRWV	-1 	53	FILTER1  = 	53 !FILTNAM1 =	POLQN33
WF2	CENTRWV	-1 	54	FILTER1  = 	41 !FILTNAM1 =	LRF
WF2	CENTRWV	4200 	55	FILTER1  = 	44 !FILTNAM1 =	FR418N
WF2	CENTRWV	4200 	56	FILTER1  = 	60 !FILTNAM1 =	FR418N33
WF2	CENTRWV	4200 	57	FILTER1  = 	61 !FILTNAM1 =	FR418N18
WF2	CENTRWV	5400 	58	FILTER1  = 	45 !FILTNAM1 =	FR533N
WF2	CENTRWV	5400 	59	FILTER1  = 	62 !FILTNAM1 =	FR533N33
WF2	CENTRWV	5400 	60	FILTER1  = 	63 !FILTNAM1 =	FR533N18
WF2	CENTRWV	6800 	61	FILTER1  = 	46 !FILTNAM1 =	FR680N
WF2	CENTRWV	6800 	62	FILTER1  = 	64 !FILTNAM1 =	FR680N33
WF2	CENTRWV	6800 	63	FILTER1  = 	65 !FILTNAM1 =	FR680N18
WF2	CENTRWV	8700 	64	FILTER1  = 	47 !FILTNAM1 =	FR868N
WF2	CENTRWV	8700 	65	FILTER1  = 	66 !FILTNAM1 =	FR868N33
WF2	CENTRWV	8700 	66	FILTER1  = 	67 !FILTNAM1 =	FR868N18
WF2	CENTRWV	4200 	67	FILTER1  = 	68 !FILTNAM1 =	FR418P15
WF2	CENTRWV	5400 	68	FILTER1  = 	69 !FILTNAM1 =	FR533P15
WF2	CENTRWV	6800 	69	FILTER1  = 	70 !FILTNAM1 =	FR680P15
WF2	CENTRWV	8700 	71	FILTER1  = 	71 !FILTNAM1 =	FR868P15
!
WF2	BANDWID	239	1	FILTER1  =	 1 !FILTNAM1 =	F122M
WF2	BANDWID	4755	2	FILTER1  =	 2 !FILTNAM1 =	F130LP
WF2	BANDWID	483	3	FILTER1  =	 3 !FILTNAM1 =	F160AW
WF2	BANDWID	483	4	FILTER1  =	49 !FILTNAM1 =	F160AN15
WF2	BANDWID	483	5	FILTER1  =	50 !FILTNAM1 =	F160AP15
WF2	BANDWID	483	6	FILTER1  =	51 !FILTNAM1 =	F160BN15
WF2	BANDWID	483	7	FILTER1  =	52 !FILTNAM1 =	F160BP15
WF2	BANDWID	449	8	FILTER1  =	 4 !FILTNAM1 =	F160BW
WF2	BANDWID	4529	9	FILTER1  =	 5 !FILTNAM1 =	F165LP
WF2	BANDWID	545 	10	FILTER1  =	 6 !FILTNAM1 =	F170W
WF2	BANDWID	334 	11	FILTER1  =	 7 !FILTNAM1 =	F185W
WF2	BANDWID	395 	12	FILTER1  =	 8 !FILTNAM1 =	F218W
WF2	BANDWID	395 	13	FILTER1  =	 9 !FILTNAM1 =	F255W
WF2	BANDWID	740 	14	FILTER1  =	10 !FILTNAM1 =	F300W
WF2	BANDWID	374 	15	FILTER1  =	11 !FILTNAM1 =	F336W
WF2	BANDWID	24 	16	FILTER1  =	12 !FILTNAM1 =	F343N
WF2	BANDWID	24 	17	FILTER1  =	13 !FILTNAM1 =	F375N
WF2	BANDWID	682 	18	FILTER1  =	14 !FILTNAM1 =	F380W
WF2	BANDWID	45 	19	FILTER1  =	15 !FILTNAM1 =	F390N
WF2	BANDWID	147 	20	FILTER1  =	16 !FILTNAM1 =	F410M
WF2	BANDWID	25 	21	FILTER1  =	17 !FILTNAM1 =	F437N
WF2	BANDWID	473 	22	FILTER1  =	18 !FILTNAM1 =	F439W
WF2	BANDWID	951 	23	FILTER1  =	19 !FILTNAM1 =	F450W
WF2	BANDWID	167 	24	FILTER1  =	20 !FILTNAM1 =	F467M
WF2	BANDWID	25 	25	FILTER1  =	21 !FILTNAM1 =	F469N
WF2	BANDWID	26 	26	FILTER1  =	22 !FILTNAM1 =	F487N
WF2	BANDWID	27 	27	FILTER1  =	23 !FILTNAM1 =	F502N
WF2	BANDWID	483 	28	FILTER1  =	24 !FILTNAM1 =	F547M
WF2	BANDWID	1228 	29	FILTER1  =	25 !FILTNAM1 =	F555W
WF2	BANDWID	966 	30	FILTER1  =	26 !FILTNAM1 =	F569W
WF2	BANDWID	49 	31	FILTER1  =	27 !FILTNAM1 =	F588N
WF2	BANDWID	1502 	32	FILTER1  =	28 !FILTNAM1 =	F606W
WF2	BANDWID	917 	33	FILTER1  =	29 !FILTNAM1 =	F622W
WF2	BANDWID	31 	34	FILTER1  =	30 !FILTNAM1 =	F631N
WF2	BANDWID	22 	35	FILTER1  =	31 !FILTNAM1 =	F656N
WF2	BANDWID	29 	36	FILTER1  =	32 !FILTNAM1 =	F658N
WF2	BANDWID	47 	37	FILTER1  =	33 !FILTNAM1 =	F673N
WF2	BANDWID	867 	38	FILTER1  =	34 !FILTNAM1 =	F675W
WF2	BANDWID	1385 	39	FILTER1  =	35 !FILTNAM1 =	F702W
WF2	BANDWID	1381 	40	FILTER1  =	36 !FILTNAM1 =	F785LP
WF2	BANDWID	1231 	41	FILTER1  =	37 !FILTNAM1 =	F791W
WF2	BANDWID	1539 	42	FILTER1  =	38 !FILTNAM1 =	F814W
WF2	BANDWID	1038 	43	FILTER1  =	39 !FILTNAM1 =	F850LP
WF2	BANDWID	53 	44	FILTER1  =	40 !FILTNAM1 =	F953N
WF2	BANDWID	449 	45 	FILTER1  =	41 !FILTNAM1 =	F1042M
WF2	BANDWID	60 	46	FILTER1  = 	42 !FILTNAM1 =	FQUVN
WF2	BANDWID	73 	47	FILTER1  = 	56 !FILTNAM1 =	FQUVN33
WF2	BANDWID	38 	48	FILTER1  = 	43 !FILTNAM1 =	FQCH4N
WF2	BANDWID	34 	49	FILTER1  = 	57 !FILTNAM1 =	FQCH4N33
WF2	BANDWID	34 	50	FILTER1  = 	58 !FILTNAM1 =	FQCH4N15
WF2	BANDWID	55 	51	FILTER1  = 	59 !FILTNAM1 =	FQCH4P15
WF2	BANDWID	-1 	52	FILTER1  = 	48 !FILTNAM1 =	POLQ
WF2	BANDWID	-1 	53	FILTER1  = 	53 !FILTNAM1 =	POLQN33
WF2	BANDWID	-1 	54	FILTER1  = 	41 !FILTNAM1 =	LRF
WF2	BANDWID	40 	55	FILTER1  = 	44 !FILTNAM1 =	FR418N
WF2	BANDWID	40 	56	FILTER1  = 	60 !FILTNAM1 =	FR418N33
WF2	BANDWID	40 	57	FILTER1  = 	61 !FILTNAM1 =	FR418N18
WF2	BANDWID	55 	58	FILTER1  = 	45 !FILTNAM1 =	FR533N
WF2	BANDWID	55 	59	FILTER1  = 	62 !FILTNAM1 =	FR533N33
WF2	BANDWID	55 	60	FILTER1  = 	63 !FILTNAM1 =	FR533N18
WF2	BANDWID	70 	61	FILTER1  = 	46 !FILTNAM1 =	FR680N
WF2	BANDWID	70 	62	FILTER1  = 	64 !FILTNAM1 =	FR680N33
WF2	BANDWID	70 	63	FILTER1  = 	65 !FILTNAM1 =	FR680N18
WF2	BANDWID	90 	64	FILTER1  = 	47 !FILTNAM1 =	FR868N
WF2	BANDWID	90 	65	FILTER1  = 	66 !FILTNAM1 =	FR868N33
WF2	BANDWID	90 	66	FILTER1  = 	67 !FILTNAM1 =	FR868N18
WF2	BANDWID	40 	67	FILTER1  = 	68 !FILTNAM1 =	FR418P15
WF2	BANDWID	55 	68	FILTER1  = 	69 !FILTNAM1 =	FR533P15
WF2	BANDWID	70 	69	FILTER1  = 	70 !FILTNAM1 =	FR680P15
WF2	BANDWID	90 	71	FILTER1  = 	71 !FILTNAM1 =	FR868P15
!
!
! WFPC-2 Calibration switch settings
!
W2S     MASKCORR  PERFORM       1    T          =       T
W2S     ATODCORR  PERFORM       1    T          =       T
!
! PR 63007,63502
W2S     FLATCORR  PERFORM       1    IMAGETYP   =       EXT
W2S     FLATCORR  OMIT          2    T          =       T
!
W2S     DOPHOTOM  PERFORM       1    IMAGETYP   =       EXT
W2S     DOPHOTOM  OMIT          2    T          =       T
!
W2S     BLEVCORR  OMIT          1    IMAGETYP   =       BIAS
W2S     BLEVCORR  PERFORM       2    T          =       T
!
W2S     BIASCORR  OMIT          1    IMAGETYP   =       BIAS
W2S     BIASCORR  PERFORM       2    T          =       T
!
W2S     SHADCORR  OMIT		1    IMAGETYP   =       DARK
W2S     SHADCORR  OMIT		2    IMAGETYP   = 	BIAS
W2S     SHADCORR  OMIT		3    IMAGETYP   =	IFLAT
W2S     SHADCORR  OMIT		4    IMAGETYP   = 	KSPOT
W2S     SHADCORR  OMIT          5    EXPTIME    >       10.0
W2S     SHADCORR  PERFORM	6    T		= 	T
!
W2S     DARKCORR  OMIT		1    IMAGETYP   =       DARK
W2S     DARKCORR  OMIT		2    IMAGETYP   =       BIAS
W2S     DARKCORR  PERFORM       3    DARKTIME   >       10.0
W2S     DARKCORR  OMIT   	4    T	        =	T
!
! PR 63007,63502
W2S     DRIZCORR  PERFORM       1    IMAGETYP   =       EXT
W2S     DRIZCORR  OMIT          2    T          =       T
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
WF2     UTCO1     {UUTCO1}	1    T	        =	T
WF2     UTCO2     {UUTCO2}	1    T	        =	T
WF2     SPCLINCN  {USPCLINC}	1    T	        =	T
WF2     DCFOBSN   {UDCFOBSN}	1    T	        =	T
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE

!----   --------  ----------  ----  --------  -------   -------
!
WF2     SS_MODE   {S_MODE}	1    T	        =	T
WF2     TARGTYPE  {S_TARG}	1    T	        =	T
WF2     SS_FILT1  {S_FILT1}	1    T	        =	T
WF2     SS_FILT2  {S_FILT2}	1    T	        =	T
WF2     SS_ATOD   15.00	        1    T_ATOD	=	ROBAY3
WF2     SS_ATOD   7.00		2    T		=	T
!
! turn off calibration for WF2 filter-test proposals (pr 58620),
! and turned back ON (by commenting out) under PR 63748
!WF2	CALIBRAT  F		1    PROPOSID   =       11036
!WF2	CALIBRAT  F		2    PROPOSID   =       11327
!
! PR 48248 New 2 Filter keyword rules
! Note: -1 used in place of NULL to indicate no good value availalble.
!        Otherwise NULL causes 0.0 to be the value.
WF2   CENTRWV     -1     1  FILTER1  = 41 ! F1042M
WF2   CENTRWV     -1     1  FILTER2  = 17 ! F437N
WF2   CENTRWV     -1     2  FILTER1  = 17 ! F437N
WF2   CENTRWV     -1     2  FILTER2  = 41 ! F1042M
WF2   CENTRWV   1434     3  FILTER1  =  1 ! F122M
WF2   CENTRWV   1434     3  FILTER2  =  2 ! F130LP
WF2   CENTRWV   1434     4  FILTER1  =  2 ! F130LP
WF2   CENTRWV   1434     4  FILTER2  =  1 ! F122M
WF2   CENTRWV   4369     5  FILTER1  =  1 ! F122M
WF2   CENTRWV   4369     5  FILTER2  = 17 ! F437N
WF2   CENTRWV   4369     6  FILTER1  = 17 ! F437N
WF2   CENTRWV   4369     6  FILTER2  =  1 ! F122M
WF2   CENTRWV   4285     7  FILTER1  =  1 ! F122M
WF2   CENTRWV   4285     7  FILTER2  = 18 ! F439W
WF2   CENTRWV   4285     8  FILTER1  = 18 ! F439W
WF2   CENTRWV   4285     8  FILTER2  =  1 ! F122M
WF2   CENTRWV   4458     9  FILTER1  =  1 ! F122M
WF2   CENTRWV   4458     9  FILTER2  = 19 ! F450W
WF2   CENTRWV   4458    10  FILTER1  = 19 ! F450W
WF2   CENTRWV   4458    10  FILTER2  =  1 ! F122M
WF2   CENTRWV   4865    11  FILTER1  =  1 ! F122M
WF2   CENTRWV   4865    11  FILTER2  = 22 ! F487N
WF2   CENTRWV   4865    12  FILTER1  = 22 ! F487N
WF2   CENTRWV   4865    12  FILTER2  =  1 ! F122M
WF2   CENTRWV   5361    13  FILTER1  =  1 ! F122M
WF2   CENTRWV   5361    13  FILTER2  = 25 ! F555W
WF2   CENTRWV   5361    14  FILTER1  = 25 ! F555W
WF2   CENTRWV   5361    14  FILTER2  =  1 ! F122M
WF2   CENTRWV   5940    15  FILTER1  =  1 ! F122M
WF2   CENTRWV   5940    15  FILTER2  = 28 ! F606W
WF2   CENTRWV   5940    16  FILTER1  = 28 ! F606W
WF2   CENTRWV   5940    16  FILTER2  =  1 ! F122M
WF2   CENTRWV   6174    17  FILTER1  =  1 ! F122M
WF2   CENTRWV   6174    17  FILTER2  = 29 ! F622W
WF2   CENTRWV   6174    18  FILTER1  = 29 ! F622W
WF2   CENTRWV   6174    18  FILTER2  =  1 ! F122M
WF2   CENTRWV   6591    19  FILTER1  =  1 ! F122M
WF2   CENTRWV   6591    19  FILTER2  = 32 ! F658N
WF2   CENTRWV   6591    20  FILTER1  = 32 ! F658N
WF2   CENTRWV   6591    20  FILTER2  =  1 ! F122M
WF2   CENTRWV   6736    21  FILTER1  =  1 ! F122M
WF2   CENTRWV   6736    21  FILTER2  = 34 ! F675W
WF2   CENTRWV   6736    22  FILTER1  = 34 ! F675W
WF2   CENTRWV   6736    22  FILTER2  =  1 ! F122M
WF2   CENTRWV   8335    23  FILTER1  =  1 ! F122M
WF2   CENTRWV   8335    23  FILTER2  = 38 ! F814W
WF2   CENTRWV   8335    24  FILTER1  = 38 ! F814W
WF2   CENTRWV   8335    24  FILTER2  =  1 ! F122M
WF2   CENTRWV   1550    25  FILTER1  =  2 ! F130LP
WF2   CENTRWV   1550    25  FILTER2  =  4 ! F160BW
WF2   CENTRWV   1550    26  FILTER1  =  4 ! F160BW
WF2   CENTRWV   1550    26  FILTER2  =  2 ! F130LP
WF2   CENTRWV     -1    27  FILTER1  =  3 ! F160AW
WF2   CENTRWV     -1    27  FILTER2  =  1 ! F122M
WF2   CENTRWV     -1    28  FILTER1  =  1 ! F122M
WF2   CENTRWV     -1    28  FILTER2  =  3 ! F160AW
WF2   CENTRWV   1817    29  FILTER1  =  4 ! F160BW
WF2   CENTRWV   1817    29  FILTER2  =  5 ! F165LP
WF2   CENTRWV   1817    30  FILTER1  =  5 ! F165LP
WF2   CENTRWV   1817    30  FILTER2  =  4 ! F160BW
WF2   CENTRWV   1817    31  FILTER1  = 51 ! F160BN15
WF2   CENTRWV   1817    31  FILTER2  =  5 ! F165LP
WF2   CENTRWV   1817    32  FILTER1  =  5 ! F165LP
WF2   CENTRWV   1817    32  FILTER2  = 51 ! F160BN15
WF2   CENTRWV   1841    33  FILTER1  =  4 ! F160BW
WF2   CENTRWV   1841    33  FILTER2  =  7 ! F185W
WF2   CENTRWV   1841    34  FILTER1  =  7 ! F185W
WF2   CENTRWV   1841    34  FILTER2  =  4 ! F160BW
WF2   CENTRWV     -1    35  FILTER1  =  4 ! F160BW
WF2   CENTRWV     -1    35  FILTER2  = 19 ! F450W
WF2   CENTRWV     -1    36  FILTER1  = 19 ! F450W
WF2   CENTRWV     -1    36  FILTER2  =  4 ! F160BW
WF2   CENTRWV     -1    37  FILTER1  =  4 ! F160BW
WF2   CENTRWV     -1    37  FILTER2  = 28 ! F606W
WF2   CENTRWV     -1    38  FILTER1  = 28 ! F606W
WF2   CENTRWV     -1    38  FILTER2  =  4 ! F160BW
WF2   CENTRWV     -1    39  FILTER1  =  4 ! F160BW
WF2   CENTRWV     -1    39  FILTER2  = 38 ! F814W
WF2   CENTRWV     -1    40  FILTER1  = 38 ! F814W
WF2   CENTRWV     -1    40  FILTER2  =  4 ! F160BW
WF2   CENTRWV     -1    41  FILTER1  =  6 ! F170W
WF2   CENTRWV     -1    41  FILTER2  = 19 ! F450W
WF2   CENTRWV     -1    42  FILTER1  = 19 ! F450W
WF2   CENTRWV     -1    42  FILTER2  =  6 ! F170W
WF2   CENTRWV     -1    43  FILTER1  =  6 ! F170W
WF2   CENTRWV     -1    43  FILTER2  = 28 ! F606W
WF2   CENTRWV     -1    44  FILTER1  = 28 ! F606W
WF2   CENTRWV     -1    44  FILTER2  =  6 ! F170W
WF2   CENTRWV     -1    45  FILTER1  =  6 ! F170W
WF2   CENTRWV     -1    45  FILTER2  = 38 ! F814W
WF2   CENTRWV     -1    46  FILTER1  = 38 ! F814W
WF2   CENTRWV     -1    46  FILTER2  =  6 ! F170W
WF2   CENTRWV     -1    47  FILTER1  =  7 ! F185W
WF2   CENTRWV     -1    47  FILTER2  = 19 ! F450W
WF2   CENTRWV     -1    48  FILTER1  = 19 ! F450W
WF2   CENTRWV     -1    48  FILTER2  =  7 ! F185W
WF2   CENTRWV     -1    49  FILTER1  =  7 ! F185W
WF2   CENTRWV     -1    49  FILTER2  = 28 ! F606W
WF2   CENTRWV     -1    50  FILTER1  = 28 ! F606W
WF2   CENTRWV     -1    50  FILTER2  =  7 ! F185W
WF2   CENTRWV     -1    51  FILTER1  =  7 ! F185W
WF2   CENTRWV     -1    51  FILTER2  = 38 ! F814W
WF2   CENTRWV     -1    52  FILTER1  = 38 ! F814W
WF2   CENTRWV     -1    52  FILTER2  =  7 ! F185W
WF2   CENTRWV     -1    53  FILTER1  =  8 ! F218W
WF2   CENTRWV     -1    53  FILTER2  = 19 ! F450W
WF2   CENTRWV     -1    54  FILTER1  = 19 ! F450W
WF2   CENTRWV     -1    54  FILTER2  =  8 ! F218W
WF2   CENTRWV     -1    55  FILTER1  =  8 ! F218W
WF2   CENTRWV     -1    55  FILTER2  = 28 ! F606W
WF2   CENTRWV     -1    56  FILTER1  = 28 ! F606W
WF2   CENTRWV     -1    56  FILTER2  =  8 ! F218W
WF2   CENTRWV     -1    57  FILTER1  =  8 ! F218W
WF2   CENTRWV     -1    57  FILTER2  = 38 ! F814W
WF2   CENTRWV     -1    58  FILTER1  = 38 ! F814W
WF2   CENTRWV     -1    58  FILTER2  =  8 ! F218W
WF2   CENTRWV     -1    59  FILTER1  =  9 ! F255W
WF2   CENTRWV     -1    59  FILTER2  = 19 ! F450W
WF2   CENTRWV     -1    60  FILTER1  = 19 ! F450W
WF2   CENTRWV     -1    60  FILTER2  =  9 ! F255W
WF2   CENTRWV     -1    61  FILTER1  =  9 ! F255W
WF2   CENTRWV     -1    61  FILTER2  = 28 ! F606W
WF2   CENTRWV     -1    62  FILTER1  = 28 ! F606W
WF2   CENTRWV     -1    62  FILTER2  =  9 ! F255W
WF2   CENTRWV     -1    63  FILTER1  =  9 ! F255W
WF2   CENTRWV     -1    63  FILTER2  = 38 ! F814W
WF2   CENTRWV     -1    64  FILTER1  = 38 ! F814W
WF2   CENTRWV     -1    64  FILTER2  =  9 ! F255W
WF2   CENTRWV   3284    65  FILTER1  = 10 ! F300W
WF2   CENTRWV   3284    65  FILTER2  = 11 ! F336W
WF2   CENTRWV   3284    66  FILTER1  = 11 ! F336W
WF2   CENTRWV   3284    66  FILTER2  = 10 ! F300W
WF2   CENTRWV     -1    67  FILTER1  = 10 ! F300W
WF2   CENTRWV     -1    67  FILTER2  = 19 ! F450W
WF2   CENTRWV     -1    68  FILTER1  = 19 ! F450W
WF2   CENTRWV     -1    68  FILTER2  = 10 ! F300W
WF2   CENTRWV     -1    69  FILTER1  = 10 ! F300W
WF2   CENTRWV     -1    69  FILTER2  = 28 ! F606W
WF2   CENTRWV     -1    70  FILTER1  = 28 ! F606W
WF2   CENTRWV     -1    70  FILTER2  = 10 ! F300W
WF2   CENTRWV     -1    71  FILTER1  = 10 ! F300W
WF2   CENTRWV     -1    71  FILTER2  = 38 ! F814W
WF2   CENTRWV     -1    72  FILTER1  = 38 ! F814W
WF2   CENTRWV     -1    72  FILTER2  = 10 ! F300W
WF2   CENTRWV   3684    73  FILTER1  = 11 ! F336W
WF2   CENTRWV   3684    73  FILTER2  = 19 ! F450W
WF2   CENTRWV   3684    74  FILTER1  = 19 ! F450W
WF2   CENTRWV   3684    74  FILTER2  = 11 ! F336W
WF2   CENTRWV     -1    75  FILTER1  = 11 ! F336W
WF2   CENTRWV     -1    75  FILTER2  = 28 ! F606W
WF2   CENTRWV     -1    76  FILTER1  = 28 ! F606W
WF2   CENTRWV     -1    76  FILTER2  = 11 ! F336W
WF2   CENTRWV     -1    77  FILTER1  = 11 ! F336W
WF2   CENTRWV     -1    77  FILTER2  = 38 ! F814W
WF2   CENTRWV     -1    78  FILTER1  = 38 ! F814W
WF2   CENTRWV     -1    78  FILTER2  = 11 ! F336W
WF2   CENTRWV   5562    79  FILTER1  = 25 ! F555W
WF2   CENTRWV   5562    79  FILTER2  = 28 ! F606W
WF2   CENTRWV   5562    80  FILTER1  = 28 ! F606W
WF2   CENTRWV   5562    80  FILTER2  = 25 ! F555W
WF2   CENTRWV   7901    81  FILTER1  = 37 ! F791W
WF2   CENTRWV   7901    81  FILTER2  = 38 ! F814W
WF2   CENTRWV   7901    82  FILTER1  = 38 ! F814W
WF2   CENTRWV   7901    82  FILTER2  = 37 ! F791W
WF2   CENTRWV   3042    83  FILTER1  = 10 ! F300W
WF2   CENTRWV   3042    83  FILTER2  = 48 ! POLQ
WF2   CENTRWV   3042    84  FILTER1  = 48 ! POLQ
WF2   CENTRWV   3042    84  FILTER2  = 10 ! F300W
WF2   CENTRWV   3042    85  FILTER1  = 10 ! F300W
WF2   CENTRWV   3042    85  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   3042    86  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   3042    86  FILTER2  = 10 ! F300W
WF2   CENTRWV   3042    87  FILTER1  = 10 ! F300W
WF2   CENTRWV   3042    87  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   3042    88  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   3042    88  FILTER2  = 10 ! F300W
WF2   CENTRWV   3042    89  FILTER1  = 10 ! F300W
WF2   CENTRWV   3042    89  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   3042    90  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   3042    90  FILTER2  = 10 ! F300W
WF2   CENTRWV   3355    91  FILTER1  = 11 ! F336W
WF2   CENTRWV   3355    91  FILTER2  = 48 ! POLQ
WF2   CENTRWV   3355    92  FILTER1  = 48 ! POLQ
WF2   CENTRWV   3355    92  FILTER2  = 11 ! F336W
WF2   CENTRWV   3355    93  FILTER1  = 11 ! F336W
WF2   CENTRWV   3355    93  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   3355    94  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   3355    94  FILTER2  = 11 ! F336W
WF2   CENTRWV   3355    95  FILTER1  = 11 ! F336W
WF2   CENTRWV   3355    95  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   3355    96  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   3355    96  FILTER2  = 11 ! F336W
WF2   CENTRWV   3355    97  FILTER1  = 11 ! F336W
WF2   CENTRWV   3355    97  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   3355    98  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   3355    98  FILTER2  = 11 ! F336W
WF2   CENTRWV   3732    99  FILTER1  = 13 ! F375N
WF2   CENTRWV   3732    99  FILTER2  = 48 ! POLQ
WF2   CENTRWV   3732   100  FILTER1  = 48 ! POLQ
WF2   CENTRWV   3732   100  FILTER2  = 13 ! F375N
WF2   CENTRWV   3732   101  FILTER1  = 13 ! F375N
WF2   CENTRWV   3732   101  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   3732   102  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   3732   102  FILTER2  = 13 ! F375N
WF2   CENTRWV   3732   103  FILTER1  = 13 ! F375N
WF2   CENTRWV   3732   103  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   3732   104  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   3732   104  FILTER2  = 13 ! F375N
WF2   CENTRWV   3732   105  FILTER1  = 13 ! F375N
WF2   CENTRWV   3732   105  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   3732   106  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   3732   106  FILTER2  = 13 ! F375N
WF2   CENTRWV   3888   107  FILTER1  = 15 ! F390N
WF2   CENTRWV   3888   107  FILTER2  = 48 ! POLQ
WF2   CENTRWV   3888   108  FILTER1  = 48 ! POLQ
WF2   CENTRWV   3888   108  FILTER2  = 15 ! F390N
WF2   CENTRWV   3888   109  FILTER1  = 15 ! F390N
WF2   CENTRWV   3888   109  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   3888   110  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   3888   110  FILTER2  = 15 ! F390N
WF2   CENTRWV   3888   111  FILTER1  = 15 ! F390N
WF2   CENTRWV   3888   111  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   3888   112  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   3888   112  FILTER2  = 15 ! F390N
WF2   CENTRWV   3888   113  FILTER1  = 15 ! F390N
WF2   CENTRWV   3888   113  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   3888   114  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   3888   114  FILTER2  = 15 ! F390N
WF2   CENTRWV   4087   115  FILTER1  = 16 ! F410M
WF2   CENTRWV   4087   115  FILTER2  = 48 ! POLQ
WF2   CENTRWV   4087   116  FILTER1  = 48 ! POLQ
WF2   CENTRWV   4087   116  FILTER2  = 16 ! F410M
WF2   CENTRWV   4087   117  FILTER1  = 16 ! F410M
WF2   CENTRWV   4087   117  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   4087   118  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   4087   118  FILTER2  = 16 ! F410M
WF2   CENTRWV   4087   119  FILTER1  = 16 ! F410M
WF2   CENTRWV   4087   119  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   4087   120  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   4087   120  FILTER2  = 16 ! F410M
WF2   CENTRWV   4087   121  FILTER1  = 16 ! F410M
WF2   CENTRWV   4087   121  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   4087   122  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   4087   122  FILTER2  = 16 ! F410M
WF2   CENTRWV   4308   123  FILTER1  = 18 ! F439W
WF2   CENTRWV   4308   123  FILTER2  = 48 ! POLQ
WF2   CENTRWV   4308   124  FILTER1  = 48 ! POLQ
WF2   CENTRWV   4308   124  FILTER2  = 18 ! F439W
WF2   CENTRWV   4308   125  FILTER1  = 18 ! F439W
WF2   CENTRWV   4308   125  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   4308   126  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   4308   126  FILTER2  = 18 ! F439W
WF2   CENTRWV   4308   127  FILTER1  = 18 ! F439W
WF2   CENTRWV   4308   127  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   4308   128  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   4308   128  FILTER2  = 18 ! F439W
WF2   CENTRWV   4308   129  FILTER1  = 18 ! F439W
WF2   CENTRWV   4308   129  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   4308   130  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   4308   130  FILTER2  = 18 ! F439W
WF2   CENTRWV   4694   131  FILTER1  = 21 ! F469N
WF2   CENTRWV   4694   131  FILTER2  = 48 ! POLQ
WF2   CENTRWV   4694   132  FILTER1  = 48 ! POLQ
WF2   CENTRWV   4694   132  FILTER2  = 21 ! F469N
WF2   CENTRWV   4694   133  FILTER1  = 21 ! F469N
WF2   CENTRWV   4694   133  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   4694   134  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   4694   134  FILTER2  = 21 ! F469N
WF2   CENTRWV   4694   135  FILTER1  = 21 ! F469N
WF2   CENTRWV   4694   135  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   4694   136  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   4694   136  FILTER2  = 21 ! F469N
WF2   CENTRWV   4694   137  FILTER1  = 21 ! F469N
WF2   CENTRWV   4694   137  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   4694   138  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   4694   138  FILTER2  = 21 ! F469N
WF2   CENTRWV   4865   139  FILTER1  = 22 ! F487N
WF2   CENTRWV   4865   139  FILTER2  = 48 ! POLQ
WF2   CENTRWV   4865   140  FILTER1  = 48 ! POLQ
WF2   CENTRWV   4865   140  FILTER2  = 22 ! F487N
WF2   CENTRWV   4865   141  FILTER1  = 22 ! F487N
WF2   CENTRWV   4865   141  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   4865   142  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   4865   142  FILTER2  = 22 ! F487N
WF2   CENTRWV   4865   143  FILTER1  = 22 ! F487N
WF2   CENTRWV   4865   143  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   4865   144  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   4865   144  FILTER2  = 22 ! F487N
WF2   CENTRWV   4865   145  FILTER1  = 22 ! F487N
WF2   CENTRWV   4865   145  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   4865   146  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   4865   146  FILTER2  = 22 ! F487N
WF2   CENTRWV   5012   147  FILTER1  = 23 ! F502N
WF2   CENTRWV   5012   147  FILTER2  = 48 ! POLQ
WF2   CENTRWV   5012   148  FILTER1  = 48 ! POLQ
WF2   CENTRWV   5012   148  FILTER2  = 23 ! F502N
WF2   CENTRWV   5012   149  FILTER1  = 23 ! F502N
WF2   CENTRWV   5012   149  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   5012   150  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   5012   150  FILTER2  = 23 ! F502N
WF2   CENTRWV   5012   151  FILTER1  = 23 ! F502N
WF2   CENTRWV   5012   151  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   5012   152  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   5012   152  FILTER2  = 23 ! F502N
WF2   CENTRWV   5012   153  FILTER1  = 23 ! F502N
WF2   CENTRWV   5012   153  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   5012   154  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   5012   154  FILTER2  = 23 ! F502N
WF2   CENTRWV   5481   155  FILTER1  = 24 ! F547M
WF2   CENTRWV   5481   155  FILTER2  = 48 ! POLQ
WF2   CENTRWV   5481   156  FILTER1  = 48 ! POLQ
WF2   CENTRWV   5481   156  FILTER2  = 24 ! F547M
WF2   CENTRWV   5481   157  FILTER1  = 24 ! F547M
WF2   CENTRWV   5481   157  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   5481   158  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   5481   158  FILTER2  = 24 ! F547M
WF2   CENTRWV   5481   159  FILTER1  = 24 ! F547M
WF2   CENTRWV   5481   159  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   5481   160  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   5481   160  FILTER2  = 24 ! F547M
WF2   CENTRWV   5481   161  FILTER1  = 24 ! F547M
WF2   CENTRWV   5481   161  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   5481   162  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   5481   162  FILTER2  = 24 ! F547M
WF2   CENTRWV   5449   163  FILTER1  = 25 ! F555W
WF2   CENTRWV   5449   163  FILTER2  = 48 ! POLQ
WF2   CENTRWV   5449   164  FILTER1  = 48 ! POLQ
WF2   CENTRWV   5449   164  FILTER2  = 25 ! F555W
WF2   CENTRWV   5449   165  FILTER1  = 25 ! F555W
WF2   CENTRWV   5449   165  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   5449   166  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   5449   166  FILTER2  = 25 ! F555W
WF2   CENTRWV   5449   167  FILTER1  = 25 ! F555W
WF2   CENTRWV   5449   167  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   5449   168  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   5449   168  FILTER2  = 25 ! F555W
WF2   CENTRWV   5449   169  FILTER1  = 25 ! F555W
WF2   CENTRWV   5449   169  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   5449   170  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   5449   170  FILTER2  = 25 ! F555W
WF2   CENTRWV   6034   171  FILTER1  = 28 ! F606W
WF2   CENTRWV   6034   171  FILTER2  = 48 ! POLQ
WF2   CENTRWV   6034   172  FILTER1  = 48 ! POLQ
WF2   CENTRWV   6034   172  FILTER2  = 28 ! F606W
WF2   CENTRWV   6034   173  FILTER1  = 28 ! F606W
WF2   CENTRWV   6034   173  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   6034   174  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   6034   174  FILTER2  = 28 ! F606W
WF2   CENTRWV   6034   175  FILTER1  = 28 ! F606W
WF2   CENTRWV   6034   175  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   6034   176  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   6034   176  FILTER2  = 28 ! F606W
WF2   CENTRWV   6034   177  FILTER1  = 28 ! F606W
WF2   CENTRWV   6034   177  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   6034   178  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   6034   178  FILTER2  = 28 ! F606W
WF2   CENTRWV   6564   179  FILTER1  = 31 ! F656N
WF2   CENTRWV   6564   179  FILTER2  = 48 ! POLQ
WF2   CENTRWV   6564   180  FILTER1  = 48 ! POLQ
WF2   CENTRWV   6564   180  FILTER2  = 31 ! F656N
WF2   CENTRWV   6564   181  FILTER1  = 31 ! F656N
WF2   CENTRWV   6564   181  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   6564   182  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   6564   182  FILTER2  = 31 ! F656N
WF2   CENTRWV   6564   183  FILTER1  = 31 ! F656N
WF2   CENTRWV   6564   183  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   6564   184  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   6564   184  FILTER2  = 31 ! F656N
WF2   CENTRWV   6564   185  FILTER1  = 31 ! F656N
WF2   CENTRWV   6564   185  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   6564   186  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   6564   186  FILTER2  = 31 ! F656N
WF2   CENTRWV   6732   187  FILTER1  = 33 ! F673N
WF2   CENTRWV   6732   187  FILTER2  = 48 ! POLQ
WF2   CENTRWV   6732   188  FILTER1  = 48 ! POLQ
WF2   CENTRWV   6732   188  FILTER2  = 33 ! F673N
WF2   CENTRWV   6732   189  FILTER1  = 33 ! F673N
WF2   CENTRWV   6732   189  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   6732   190  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   6732   190  FILTER2  = 33 ! F673N
WF2   CENTRWV   6732   191  FILTER1  = 33 ! F673N
WF2   CENTRWV   6732   191  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   6732   192  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   6732   192  FILTER2  = 33 ! F673N
WF2   CENTRWV   6732   193  FILTER1  = 33 ! F673N
WF2   CENTRWV   6732   193  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   6732   194  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   6732   194  FILTER2  = 33 ! F673N
WF2   CENTRWV   6757   195  FILTER1  = 34 ! F675W
WF2   CENTRWV   6757   195  FILTER2  = 48 ! POLQ
WF2   CENTRWV   6757   196  FILTER1  = 48 ! POLQ
WF2   CENTRWV   6757   196  FILTER2  = 34 ! F675W
WF2   CENTRWV   6757   197  FILTER1  = 34 ! F675W
WF2   CENTRWV   6757   197  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   6757   198  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   6757   198  FILTER2  = 34 ! F675W
WF2   CENTRWV   6757   199  FILTER1  = 34 ! F675W
WF2   CENTRWV   6757   199  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   6757   200  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   6757   200  FILTER2  = 34 ! F675W
WF2   CENTRWV   6757   201  FILTER1  = 34 ! F675W
WF2   CENTRWV   6757   201  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   6757   202  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   6757   202  FILTER2  = 34 ! F675W
WF2   CENTRWV   8139   203  FILTER1  = 38 ! F814W
WF2   CENTRWV   8139   203  FILTER2  = 48 ! POLQ
WF2   CENTRWV   8139   204  FILTER1  = 48 ! POLQ
WF2   CENTRWV   8139   204  FILTER2  = 38 ! F814W
WF2   CENTRWV   8139   205  FILTER1  = 38 ! F814W
WF2   CENTRWV   8139   205  FILTER2  = 53 ! POLQN33
WF2   CENTRWV   8139   206  FILTER1  = 53 ! POLQN33
WF2   CENTRWV   8139   206  FILTER2  = 38 ! F814W
WF2   CENTRWV   8139   207  FILTER1  = 38 ! F814W
WF2   CENTRWV   8139   207  FILTER2  = 54 ! POLQN18
WF2   CENTRWV   8139   208  FILTER1  = 54 ! POLQN18
WF2   CENTRWV   8139   208  FILTER2  = 38 ! F814W
WF2   CENTRWV   8139   209  FILTER1  = 38 ! F814W
WF2   CENTRWV   8139   209  FILTER2  = 55 ! POLQP15
WF2   CENTRWV   8139   210  FILTER1  = 55 ! POLQP15
WF2   CENTRWV   8139   210  FILTER2  = 38 ! F814W
WF2   CENTRWV     -1   211  FILTER1  = 42 ! FQUVN
WF2   CENTRWV     -1   211  FILTER2  = 41 ! F1042M
WF2   CENTRWV     -1   212  FILTER1  = 41 ! F1042M
WF2   CENTRWV     -1   212  FILTER2  = 42 ! FQUVN
WF2   CENTRWV     -1   213  FILTER1  = 42 ! FQUVN
WF2   CENTRWV     -1   213  FILTER2  = 61 ! FR418N18
WF2   CENTRWV     -1   214  FILTER1  = 61 ! FR418N18
WF2   CENTRWV     -1   214  FILTER2  = 42 ! FQUVN
WF2   CENTRWV     -1   215  FILTER1  = 43 ! FQCH4N
WF2   CENTRWV     -1   215  FILTER2  = 48 ! POLQ
WF2   CENTRWV     -1   216  FILTER1  = 48 ! POLQ
WF2   CENTRWV     -1   216  FILTER2  = 43 ! FQCH4N
WF2   CENTRWV     -1   217  FILTER1  = 43 ! FQCH4N
WF2   CENTRWV     -1   217  FILTER2  = 46 ! FR680N
WF2   CENTRWV     -1   218  FILTER1  = 46 ! FR680N
WF2   CENTRWV     -1   218  FILTER2  = 43 ! FQCH4N
WF2   CENTRWV     -1   219  FILTER1  = 43 ! FQCH4N
WF2   CENTRWV     -1   219  FILTER2  = 65 ! FR680N18
WF2   CENTRWV     -1   220  FILTER1  = 65 ! FR680N18
WF2   CENTRWV     -1   220  FILTER2  = 43 ! FQCH4N
WF2   CENTRWV     -1   221  FILTER1  = 43 ! FQCH4N
WF2   CENTRWV     -1   221  FILTER2  = 64 ! FR680N33
WF2   CENTRWV     -1   222  FILTER1  = 64 ! FR680N33
WF2   CENTRWV     -1   222  FILTER2  = 43 ! FQCH4N
WF2   CENTRWV     -1   223  FILTER1  = 43 ! FQCH4N
WF2   CENTRWV     -1   223  FILTER2  = 47 ! FR868N
WF2   CENTRWV     -1   224  FILTER1  = 47 ! FR868N
WF2   CENTRWV     -1   224  FILTER2  = 43 ! FQCH4N
WF2   CENTRWV   3732   225  FILTER1  = 13 ! F375N
WF2   CENTRWV   3732   225  FILTER2  = 44 ! FR418N
WF2   CENTRWV   3732   226  FILTER1  = 44 ! FR418N
WF2   CENTRWV   3732   226  FILTER2  = 13 ! F375N
WF2   CENTRWV   3732   227  FILTER1  = 13 ! F375N
WF2   CENTRWV   3732   227  FILTER2  = 61 ! FR418N18
WF2   CENTRWV   3732   228  FILTER1  = 61 ! FR418N18
WF2   CENTRWV   3732   228  FILTER2  = 13 ! F375N
WF2   CENTRWV   3732   229  FILTER1  = 13 ! F375N
WF2   CENTRWV   3732   229  FILTER2  = 60 ! FR418N33
WF2   CENTRWV   3732   230  FILTER1  = 60 ! FR418N33
WF2   CENTRWV   3732   230  FILTER2  = 13 ! F375N
WF2   CENTRWV   3732   231  FILTER1  = 13 ! F375N
WF2   CENTRWV   3732   231  FILTER2  = 68 ! FR418P15
WF2   CENTRWV   3732   232  FILTER1  = 68 ! FR418P15
WF2   CENTRWV   3732   232  FILTER2  = 13 ! F375N
WF2   CENTRWV   3888   233  FILTER1  = 15 ! F390N
WF2   CENTRWV   3888   233  FILTER2  = 44 ! FR418N
WF2   CENTRWV   3888   234  FILTER1  = 44 ! FR418N
WF2   CENTRWV   3888   234  FILTER2  = 15 ! F390N
WF2   CENTRWV   3888   235  FILTER1  = 15 ! F390N
WF2   CENTRWV   3888   235  FILTER2  = 61 ! FR418N18
WF2   CENTRWV   3888   236  FILTER1  = 61 ! FR418N18
WF2   CENTRWV   3888   236  FILTER2  = 15 ! F390N
WF2   CENTRWV   3888   237  FILTER1  = 15 ! F390N
WF2   CENTRWV   3888   237  FILTER2  = 60 ! FR418N33
WF2   CENTRWV   3888   238  FILTER1  = 60 ! FR418N33
WF2   CENTRWV   3888   238  FILTER2  = 15 ! F390N
WF2   CENTRWV   3888   239  FILTER1  = 15 ! F390N
WF2   CENTRWV   3888   239  FILTER2  = 68 ! FR418P15
WF2   CENTRWV   3888   240  FILTER1  = 68 ! FR418P15
WF2   CENTRWV   3888   240  FILTER2  = 15 ! F390N
WF2   CENTRWV   4369   241  FILTER1  = 17 ! F437N
WF2   CENTRWV   4369   241  FILTER2  = 44 ! FR418N
WF2   CENTRWV   4369   242  FILTER1  = 44 ! FR418N
WF2   CENTRWV   4369   242  FILTER2  = 17 ! F437N
WF2   CENTRWV   4369   243  FILTER1  = 17 ! F437N
WF2   CENTRWV   4369   243  FILTER2  = 61 ! FR418N18
WF2   CENTRWV   4369   244  FILTER1  = 61 ! FR418N18
WF2   CENTRWV   4369   244  FILTER2  = 17 ! F437N
WF2   CENTRWV   4369   245  FILTER1  = 17 ! F437N
WF2   CENTRWV   4369   245  FILTER2  = 60 ! FR418N33
WF2   CENTRWV   4369   246  FILTER1  = 60 ! FR418N33
WF2   CENTRWV   4369   246  FILTER2  = 17 ! F437N
WF2   CENTRWV   4369   247  FILTER1  = 17 ! F437N
WF2   CENTRWV   4369   247  FILTER2  = 68 ! FR418P15
WF2   CENTRWV   4369   248  FILTER1  = 68 ! FR418P15
WF2   CENTRWV   4369   248  FILTER2  = 17 ! F437N
WF2   CENTRWV   4694   249  FILTER1  = 21 ! F469N
WF2   CENTRWV   4694   249  FILTER2  = 44 ! FR418N
WF2   CENTRWV   4694   250  FILTER1  = 44 ! FR418N
WF2   CENTRWV   4694   250  FILTER2  = 21 ! F469N
WF2   CENTRWV   4694   251  FILTER1  = 21 ! F469N
WF2   CENTRWV   4694   251  FILTER2  = 61 ! FR418N18
WF2   CENTRWV   4694   252  FILTER1  = 61 ! FR418N18
WF2   CENTRWV   4694   252  FILTER2  = 21 ! F469N
WF2   CENTRWV   4694   253  FILTER1  = 21 ! F469N
WF2   CENTRWV   4694   253  FILTER2  = 60 ! FR418N33
WF2   CENTRWV   4694   254  FILTER1  = 60 ! FR418N33
WF2   CENTRWV   4694   254  FILTER2  = 21 ! F469N
WF2   CENTRWV   4694   255  FILTER1  = 21 ! F469N
WF2   CENTRWV   4694   255  FILTER2  = 68 ! FR418P15
WF2   CENTRWV   4694   256  FILTER1  = 68 ! FR418P15
WF2   CENTRWV   4694   256  FILTER2  = 21 ! F469N
WF2   CENTRWV   4865   257  FILTER1  = 22 ! F487N
WF2   CENTRWV   4865   257  FILTER2  = 45 ! FR533N
WF2   CENTRWV   4865   258  FILTER1  = 45 ! FR533N
WF2   CENTRWV   4865   258  FILTER2  = 22 ! F487N
WF2   CENTRWV   4865   259  FILTER1  = 22 ! F487N
WF2   CENTRWV   4865   259  FILTER2  = 63 ! FR533N18
WF2   CENTRWV   4865   260  FILTER1  = 63 ! FR533N18
WF2   CENTRWV   4865   260  FILTER2  = 22 ! F487N
WF2   CENTRWV   4865   261  FILTER1  = 22 ! F487N
WF2   CENTRWV   4865   261  FILTER2  = 62 ! FR533N33
WF2   CENTRWV   4865   262  FILTER1  = 62 ! FR533N33
WF2   CENTRWV   4865   262  FILTER2  = 22 ! F487N
WF2   CENTRWV   4865   263  FILTER1  = 22 ! F487N
WF2   CENTRWV   4865   263  FILTER2  = 69 ! FR533P15
WF2   CENTRWV   4865   264  FILTER1  = 69 ! FR533P15
WF2   CENTRWV   4865   264  FILTER2  = 22 ! F487N
WF2   CENTRWV     -1   265  FILTER1  = 23 ! F502N
WF2   CENTRWV     -1   265  FILTER2  = 44 ! FR418N
WF2   CENTRWV     -1   266  FILTER1  = 44 ! FR418N
WF2   CENTRWV     -1   266  FILTER2  = 23 ! F502N
WF2   CENTRWV   5012   267  FILTER1  = 23 ! F502N
WF2   CENTRWV   5012   267  FILTER2  = 45 ! FR533N
WF2   CENTRWV   5012   268  FILTER1  = 45 ! FR533N
WF2   CENTRWV   5012   268  FILTER2  = 23 ! F502N
WF2   CENTRWV   5012   269  FILTER1  = 23 ! F502N
WF2   CENTRWV   5012   269  FILTER2  = 63 ! FR533N18
WF2   CENTRWV   5012   270  FILTER1  = 63 ! FR533N18
WF2   CENTRWV   5012   270  FILTER2  = 23 ! F502N
WF2   CENTRWV   5012   271  FILTER1  = 23 ! F502N
WF2   CENTRWV   5012   271  FILTER2  = 62 ! FR533N33
WF2   CENTRWV   5012   272  FILTER1  = 62 ! FR533N33
WF2   CENTRWV   5012   272  FILTER2  = 23 ! F502N
WF2   CENTRWV   5012   273  FILTER1  = 23 ! F502N
WF2   CENTRWV   5012   273  FILTER2  = 69 ! FR533P15
WF2   CENTRWV   5012   274  FILTER1  = 69 ! FR533P15
WF2   CENTRWV   5012   274  FILTER2  = 23 ! F502N
WF2   CENTRWV   5894   275  FILTER1  = 27 ! F588N
WF2   CENTRWV   5894   275  FILTER2  = 45 ! FR533N
WF2   CENTRWV   5894   276  FILTER1  = 45 ! FR533N
WF2   CENTRWV   5894   276  FILTER2  = 27 ! F588N
WF2   CENTRWV   5894   277  FILTER1  = 27 ! F588N
WF2   CENTRWV   5894   277  FILTER2  = 63 ! FR533N18
WF2   CENTRWV   5894   278  FILTER1  = 63 ! FR533N18
WF2   CENTRWV   5894   278  FILTER2  = 27 ! F588N
WF2   CENTRWV   5894   279  FILTER1  = 27 ! F588N
WF2   CENTRWV   5894   279  FILTER2  = 62 ! FR533N33
WF2   CENTRWV   5894   280  FILTER1  = 62 ! FR533N33
WF2   CENTRWV   5894   280  FILTER2  = 27 ! F588N
WF2   CENTRWV   5894   281  FILTER1  = 27 ! F588N
WF2   CENTRWV   5894   281  FILTER2  = 69 ! FR533P15
WF2   CENTRWV   5894   282  FILTER1  = 69 ! FR533P15
WF2   CENTRWV   5894   282  FILTER2  = 27 ! F588N
WF2   CENTRWV   6306   283  FILTER1  = 30 ! F631N
WF2   CENTRWV   6306   283  FILTER2  = 46 ! FR680N
WF2   CENTRWV   6306   284  FILTER1  = 46 ! FR680N
WF2   CENTRWV   6306   284  FILTER2  = 30 ! F631N
WF2   CENTRWV   6306   285  FILTER1  = 30 ! F631N
WF2   CENTRWV   6306   285  FILTER2  = 65 ! FR680N18
WF2   CENTRWV   6306   286  FILTER1  = 65 ! FR680N18
WF2   CENTRWV   6306   286  FILTER2  = 30 ! F631N
WF2   CENTRWV   6306   287  FILTER1  = 30 ! F631N
WF2   CENTRWV   6306   287  FILTER2  = 64 ! FR680N33
WF2   CENTRWV   6306   288  FILTER1  = 64 ! FR680N33
WF2   CENTRWV   6306   288  FILTER2  = 30 ! F631N
WF2   CENTRWV   6306   289  FILTER1  = 30 ! F631N
WF2   CENTRWV   6306   289  FILTER2  = 70 ! FR680P15
WF2   CENTRWV   6306   290  FILTER1  = 70 ! FR680P15
WF2   CENTRWV   6306   290  FILTER2  = 30 ! F631N
WF2   CENTRWV   6564   291  FILTER1  = 31 ! F656N
WF2   CENTRWV   6564   291  FILTER2  = 46 ! FR680N
WF2   CENTRWV   6564   292  FILTER1  = 46 ! FR680N
WF2   CENTRWV   6564   292  FILTER2  = 31 ! F656N
WF2   CENTRWV   6564   293  FILTER1  = 31 ! F656N
WF2   CENTRWV   6564   293  FILTER2  = 65 ! FR680N18
WF2   CENTRWV   6564   294  FILTER1  = 65 ! FR680N18
WF2   CENTRWV   6564   294  FILTER2  = 31 ! F656N
WF2   CENTRWV   6564   295  FILTER1  = 31 ! F656N
WF2   CENTRWV   6564   295  FILTER2  = 64 ! FR680N33
WF2   CENTRWV   6564   296  FILTER1  = 64 ! FR680N33
WF2   CENTRWV   6564   296  FILTER2  = 31 ! F656N
WF2   CENTRWV   6564   297  FILTER1  = 31 ! F656N
WF2   CENTRWV   6564   297  FILTER2  = 70 ! FR680P15
WF2   CENTRWV   6564   298  FILTER1  = 70 ! FR680P15
WF2   CENTRWV   6564   298  FILTER2  = 31 ! F656N
WF2   CENTRWV   6591   299  FILTER1  = 32 ! F658N
WF2   CENTRWV   6591   299  FILTER2  = 46 ! FR680N
WF2   CENTRWV   6591   300  FILTER1  = 46 ! FR680N
WF2   CENTRWV   6591   300  FILTER2  = 32 ! F658N
WF2   CENTRWV   6591   301  FILTER1  = 32 ! F658N
WF2   CENTRWV   6591   301  FILTER2  = 65 ! FR680N18
WF2   CENTRWV   6591   302  FILTER1  = 65 ! FR680N18
WF2   CENTRWV   6591   302  FILTER2  = 32 ! F658N
WF2   CENTRWV   6591   303  FILTER1  = 32 ! F658N
WF2   CENTRWV   6591   303  FILTER2  = 64 ! FR680N33
WF2   CENTRWV   6591   304  FILTER1  = 64 ! FR680N33
WF2   CENTRWV   6591   304  FILTER2  = 32 ! F658N
WF2   CENTRWV   6591   305  FILTER1  = 32 ! F658N
WF2   CENTRWV   6591   305  FILTER2  = 70 ! FR680P15
WF2   CENTRWV   6591   306  FILTER1  = 70 ! FR680P15
WF2   CENTRWV   6591   306  FILTER2  = 32 ! F658N
WF2   CENTRWV   6732   307  FILTER1  = 33 ! F673N
WF2   CENTRWV   6732   307  FILTER2  = 46 ! FR680N
WF2   CENTRWV   6732   308  FILTER1  = 46 ! FR680N
WF2   CENTRWV   6732   308  FILTER2  = 33 ! F673N
WF2   CENTRWV   6732   309  FILTER1  = 33 ! F673N
WF2   CENTRWV   6732   309  FILTER2  = 65 ! FR680N18
WF2   CENTRWV   6732   310  FILTER1  = 65 ! FR680N18
WF2   CENTRWV   6732   310  FILTER2  = 33 ! F673N
WF2   CENTRWV   6732   311  FILTER1  = 33 ! F673N
WF2   CENTRWV   6732   311  FILTER2  = 64 ! FR680N33
WF2   CENTRWV   6732   312  FILTER1  = 64 ! FR680N33
WF2   CENTRWV   6732   312  FILTER2  = 33 ! F673N
WF2   CENTRWV   6732   313  FILTER1  = 33 ! F673N
WF2   CENTRWV   6732   313  FILTER2  = 70 ! FR680P15
WF2   CENTRWV   6732   314  FILTER1  = 70 ! FR680P15
WF2   CENTRWV   6732   314  FILTER2  = 33 ! F673N
WF2   CENTRWV   9545   315  FILTER1  = 40 ! F953N
WF2   CENTRWV   9545   315  FILTER2  = 47 ! FR868N
WF2   CENTRWV   9545   316  FILTER1  = 47 ! FR868N
WF2   CENTRWV   9545   316  FILTER2  = 40 ! F953N
WF2   CENTRWV   9545   317  FILTER1  = 40 ! F953N
WF2   CENTRWV   9545   317  FILTER2  = 67 ! FR868N18
WF2   CENTRWV   9545   318  FILTER1  = 67 ! FR868N18
WF2   CENTRWV   9545   318  FILTER2  = 40 ! F953N
WF2   CENTRWV   9545   319  FILTER1  = 40 ! F953N
WF2   CENTRWV   9545   319  FILTER2  = 66 ! FR868N33
WF2   CENTRWV   9545   320  FILTER1  = 66 ! FR868N33
WF2   CENTRWV   9545   320  FILTER2  = 40 ! F953N
WF2   CENTRWV   9545   321  FILTER1  = 40 ! F953N
WF2   CENTRWV   9545   321  FILTER2  = 71 ! FR868P15
WF2   CENTRWV   9545   322  FILTER1  = 71 ! FR868P15
WF2   CENTRWV   9545   322  FILTER2  = 40 ! F953N
!
WF2   BANDWID     -1     1  FILTER1  = 41 ! F1042M
WF2   BANDWID     -1     1  FILTER2  = 17 ! F437N
WF2   BANDWID     -1     2  FILTER1  = 17 ! F437N
WF2   BANDWID     -1     2  FILTER2  = 41 ! F1042M
WF2   BANDWID    486     3  FILTER1  =  1 ! F122M
WF2   BANDWID    486     3  FILTER2  =  2 ! F130LP
WF2   BANDWID    486     4  FILTER1  =  2 ! F130LP
WF2   BANDWID    486     4  FILTER2  =  1 ! F122M
WF2   BANDWID     25     5  FILTER1  =  1 ! F122M
WF2   BANDWID     25     5  FILTER2  = 17 ! F437N
WF2   BANDWID     25     6  FILTER1  = 17 ! F437N
WF2   BANDWID     25     6  FILTER2  =  1 ! F122M
WF2   BANDWID    468     7  FILTER1  =  1 ! F122M
WF2   BANDWID    468     7  FILTER2  = 18 ! F439W
WF2   BANDWID    468     8  FILTER1  = 18 ! F439W
WF2   BANDWID    468     8  FILTER2  =  1 ! F122M
WF2   BANDWID    959     9  FILTER1  =  1 ! F122M
WF2   BANDWID    959     9  FILTER2  = 19 ! F450W
WF2   BANDWID    959    10  FILTER1  = 19 ! F450W
WF2   BANDWID    959    10  FILTER2  =  1 ! F122M
WF2   BANDWID     26    11  FILTER1  =  1 ! F122M
WF2   BANDWID     26    11  FILTER2  = 22 ! F487N
WF2   BANDWID     26    12  FILTER1  = 22 ! F487N
WF2   BANDWID     26    12  FILTER2  =  1 ! F122M
WF2   BANDWID   1227    13  FILTER1  =  1 ! F122M
WF2   BANDWID   1227    13  FILTER2  = 25 ! F555W
WF2   BANDWID   1227    14  FILTER1  = 25 ! F555W
WF2   BANDWID   1227    14  FILTER2  =  1 ! F122M
WF2   BANDWID   1535    15  FILTER1  =  1 ! F122M
WF2   BANDWID   1535    15  FILTER2  = 28 ! F606W
WF2   BANDWID   1535    16  FILTER1  = 28 ! F606W
WF2   BANDWID   1535    16  FILTER2  =  1 ! F122M
WF2   BANDWID    922    17  FILTER1  =  1 ! F122M
WF2   BANDWID    922    17  FILTER2  = 29 ! F622W
WF2   BANDWID    922    18  FILTER1  = 29 ! F622W
WF2   BANDWID    922    18  FILTER2  =  1 ! F122M
WF2   BANDWID     28    19  FILTER1  =  1 ! F122M
WF2   BANDWID     28    19  FILTER2  = 32 ! F658N
WF2   BANDWID     28    20  FILTER1  = 32 ! F658N
WF2   BANDWID     28    20  FILTER2  =  1 ! F122M
WF2   BANDWID    887    21  FILTER1  =  1 ! F122M
WF2   BANDWID    887    21  FILTER2  = 34 ! F675W
WF2   BANDWID    887    22  FILTER1  = 34 ! F675W
WF2   BANDWID    887    22  FILTER2  =  1 ! F122M
WF2   BANDWID   1576    23  FILTER1  =  1 ! F122M
WF2   BANDWID   1576    23  FILTER2  = 38 ! F814W
WF2   BANDWID   1576    24  FILTER1  = 38 ! F814W
WF2   BANDWID   1576    24  FILTER2  =  1 ! F122M
WF2   BANDWID    447    25  FILTER1  =  2 ! F130LP
WF2   BANDWID    447    25  FILTER2  =  4 ! F160BW
WF2   BANDWID    447    26  FILTER1  =  4 ! F160BW
WF2   BANDWID    447    26  FILTER2  =  2 ! F130LP
WF2   BANDWID     -1    27  FILTER1  =  3 ! F160AW
WF2   BANDWID     -1    27  FILTER2  =  1 ! F122M
WF2   BANDWID     -1    28  FILTER1  =  1 ! F122M
WF2   BANDWID     -1    28  FILTER2  =  3 ! F160AW
WF2   BANDWID    238    29  FILTER1  =  4 ! F160BW
WF2   BANDWID    238    29  FILTER2  =  5 ! F165LP
WF2   BANDWID    238    30  FILTER1  =  5 ! F165LP
WF2   BANDWID    238    30  FILTER2  =  4 ! F160BW
WF2   BANDWID    238    31  FILTER1  = 51 ! F160BN15
WF2   BANDWID    238    31  FILTER2  =  5 ! F165LP
WF2   BANDWID    238    32  FILTER1  =  5 ! F165LP
WF2   BANDWID    238    32  FILTER2  = 51 ! F160BN15
WF2   BANDWID    201    33  FILTER1  =  4 ! F160BW
WF2   BANDWID    201    33  FILTER2  =  7 ! F185W
WF2   BANDWID    201    34  FILTER1  =  7 ! F185W
WF2   BANDWID    201    34  FILTER2  =  4 ! F160BW
WF2   BANDWID     -1    35  FILTER1  =  4 ! F160BW
WF2   BANDWID     -1    35  FILTER2  = 19 ! F450W
WF2   BANDWID     -1    36  FILTER1  = 19 ! F450W
WF2   BANDWID     -1    36  FILTER2  =  4 ! F160BW
WF2   BANDWID     -1    37  FILTER1  =  4 ! F160BW
WF2   BANDWID     -1    37  FILTER2  = 28 ! F606W
WF2   BANDWID     -1    38  FILTER1  = 28 ! F606W
WF2   BANDWID     -1    38  FILTER2  =  4 ! F160BW
WF2   BANDWID     -1    39  FILTER1  =  4 ! F160BW
WF2   BANDWID     -1    39  FILTER2  = 38 ! F814W
WF2   BANDWID     -1    40  FILTER1  = 38 ! F814W
WF2   BANDWID     -1    40  FILTER2  =  4 ! F160BW
WF2   BANDWID     -1    41  FILTER1  =  6 ! F170W
WF2   BANDWID     -1    41  FILTER2  = 19 ! F450W
WF2   BANDWID     -1    42  FILTER1  = 19 ! F450W
WF2   BANDWID     -1    42  FILTER2  =  6 ! F170W
WF2   BANDWID     -1    43  FILTER1  =  6 ! F170W
WF2   BANDWID     -1    43  FILTER2  = 28 ! F606W
WF2   BANDWID     -1    44  FILTER1  = 28 ! F606W
WF2   BANDWID     -1    44  FILTER2  =  6 ! F170W
WF2   BANDWID     -1    45  FILTER1  =  6 ! F170W
WF2   BANDWID     -1    45  FILTER2  = 38 ! F814W
WF2   BANDWID     -1    46  FILTER1  = 38 ! F814W
WF2   BANDWID     -1    46  FILTER2  =  6 ! F170W
WF2   BANDWID     -1    47  FILTER1  =  7 ! F185W
WF2   BANDWID     -1    47  FILTER2  = 19 ! F450W
WF2   BANDWID     -1    48  FILTER1  = 19 ! F450W
WF2   BANDWID     -1    48  FILTER2  =  7 ! F185W
WF2   BANDWID     -1    49  FILTER1  =  7 ! F185W
WF2   BANDWID     -1    49  FILTER2  = 28 ! F606W
WF2   BANDWID     -1    50  FILTER1  = 28 ! F606W
WF2   BANDWID     -1    50  FILTER2  =  7 ! F185W
WF2   BANDWID     -1    51  FILTER1  =  7 ! F185W
WF2   BANDWID     -1    51  FILTER2  = 38 ! F814W
WF2   BANDWID     -1    52  FILTER1  = 38 ! F814W
WF2   BANDWID     -1    52  FILTER2  =  7 ! F185W
WF2   BANDWID     -1    53  FILTER1  =  8 ! F218W
WF2   BANDWID     -1    53  FILTER2  = 19 ! F450W
WF2   BANDWID     -1    54  FILTER1  = 19 ! F450W
WF2   BANDWID     -1    54  FILTER2  =  8 ! F218W
WF2   BANDWID     -1    55  FILTER1  =  8 ! F218W
WF2   BANDWID     -1    55  FILTER2  = 28 ! F606W
WF2   BANDWID     -1    56  FILTER1  = 28 ! F606W
WF2   BANDWID     -1    56  FILTER2  =  8 ! F218W
WF2   BANDWID     -1    57  FILTER1  =  8 ! F218W
WF2   BANDWID     -1    57  FILTER2  = 38 ! F814W
WF2   BANDWID     -1    58  FILTER1  = 38 ! F814W
WF2   BANDWID     -1    58  FILTER2  =  8 ! F218W
WF2   BANDWID     -1    59  FILTER1  =  9 ! F255W
WF2   BANDWID     -1    59  FILTER2  = 19 ! F450W
WF2   BANDWID     -1    60  FILTER1  = 19 ! F450W
WF2   BANDWID     -1    60  FILTER2  =  9 ! F255W
WF2   BANDWID     -1    61  FILTER1  =  9 ! F255W
WF2   BANDWID     -1    61  FILTER2  = 28 ! F606W
WF2   BANDWID     -1    62  FILTER1  = 28 ! F606W
WF2   BANDWID     -1    62  FILTER2  =  9 ! F255W
WF2   BANDWID     -1    63  FILTER1  =  9 ! F255W
WF2   BANDWID     -1    63  FILTER2  = 38 ! F814W
WF2   BANDWID     -1    64  FILTER1  = 38 ! F814W
WF2   BANDWID     -1    64  FILTER2  =  9 ! F255W
WF2   BANDWID    340    65  FILTER1  = 10 ! F300W
WF2   BANDWID    340    65  FILTER2  = 11 ! F336W
WF2   BANDWID    340    66  FILTER1  = 11 ! F336W
WF2   BANDWID    340    66  FILTER2  = 10 ! F300W
WF2   BANDWID     -1    67  FILTER1  = 10 ! F300W
WF2   BANDWID     -1    67  FILTER2  = 19 ! F450W
WF2   BANDWID     -1    68  FILTER1  = 19 ! F450W
WF2   BANDWID     -1    68  FILTER2  = 10 ! F300W
WF2   BANDWID     -1    69  FILTER1  = 10 ! F300W
WF2   BANDWID     -1    69  FILTER2  = 28 ! F606W
WF2   BANDWID     -1    70  FILTER1  = 28 ! F606W
WF2   BANDWID     -1    70  FILTER2  = 10 ! F300W
WF2   BANDWID     -1    71  FILTER1  = 10 ! F300W
WF2   BANDWID     -1    71  FILTER2  = 38 ! F814W
WF2   BANDWID     -1    72  FILTER1  = 38 ! F814W
WF2   BANDWID     -1    72  FILTER2  = 10 ! F300W
WF2   BANDWID    171    73  FILTER1  = 11 ! F336W
WF2   BANDWID    171    73  FILTER2  = 19 ! F450W
WF2   BANDWID    171    74  FILTER1  = 19 ! F450W
WF2   BANDWID    171    74  FILTER2  = 11 ! F336W
WF2   BANDWID     -1    75  FILTER1  = 11 ! F336W
WF2   BANDWID     -1    75  FILTER2  = 28 ! F606W
WF2   BANDWID     -1    76  FILTER1  = 28 ! F606W
WF2   BANDWID     -1    76  FILTER2  = 11 ! F336W
WF2   BANDWID     -1    77  FILTER1  = 11 ! F336W
WF2   BANDWID     -1    77  FILTER2  = 38 ! F814W
WF2   BANDWID     -1    78  FILTER1  = 38 ! F814W
WF2   BANDWID     -1    78  FILTER2  = 11 ! F336W
WF2   BANDWID   1055    79  FILTER1  = 25 ! F555W
WF2   BANDWID   1055    79  FILTER2  = 28 ! F606W
WF2   BANDWID   1055    80  FILTER1  = 28 ! F606W
WF2   BANDWID   1055    80  FILTER2  = 25 ! F555W
WF2   BANDWID   1194    81  FILTER1  = 37 ! F791W
WF2   BANDWID   1194    81  FILTER2  = 38 ! F814W
WF2   BANDWID   1194    82  FILTER1  = 38 ! F814W
WF2   BANDWID   1194    82  FILTER2  = 37 ! F791W
WF2   BANDWID    753    83  FILTER1  = 10 ! F300W
WF2   BANDWID    753    83  FILTER2  = 48 ! POLQ
WF2   BANDWID    753    84  FILTER1  = 48 ! POLQ
WF2   BANDWID    753    84  FILTER2  = 10 ! F300W
WF2   BANDWID    753    85  FILTER1  = 10 ! F300W
WF2   BANDWID    753    85  FILTER2  = 53 ! POLQN33
WF2   BANDWID    753    86  FILTER1  = 53 ! POLQN33
WF2   BANDWID    753    86  FILTER2  = 10 ! F300W
WF2   BANDWID    753    87  FILTER1  = 10 ! F300W
WF2   BANDWID    753    87  FILTER2  = 54 ! POLQN18
WF2   BANDWID    753    88  FILTER1  = 54 ! POLQN18
WF2   BANDWID    753    88  FILTER2  = 10 ! F300W
WF2   BANDWID    753    89  FILTER1  = 10 ! F300W
WF2   BANDWID    753    89  FILTER2  = 55 ! POLQP15
WF2   BANDWID    753    90  FILTER1  = 55 ! POLQP15
WF2   BANDWID    753    90  FILTER2  = 10 ! F300W
WF2   BANDWID    374    91  FILTER1  = 11 ! F336W
WF2   BANDWID    374    91  FILTER2  = 48 ! POLQ
WF2   BANDWID    374    92  FILTER1  = 48 ! POLQ
WF2   BANDWID    374    92  FILTER2  = 11 ! F336W
WF2   BANDWID    374    93  FILTER1  = 11 ! F336W
WF2   BANDWID    374    93  FILTER2  = 53 ! POLQN33
WF2   BANDWID    374    94  FILTER1  = 53 ! POLQN33
WF2   BANDWID    374    94  FILTER2  = 11 ! F336W
WF2   BANDWID    374    95  FILTER1  = 11 ! F336W
WF2   BANDWID    374    95  FILTER2  = 54 ! POLQN18
WF2   BANDWID    374    96  FILTER1  = 54 ! POLQN18
WF2   BANDWID    374    96  FILTER2  = 11 ! F336W
WF2   BANDWID    374    97  FILTER1  = 11 ! F336W
WF2   BANDWID    374    97  FILTER2  = 55 ! POLQP15
WF2   BANDWID    374    98  FILTER1  = 55 ! POLQP15
WF2   BANDWID    374    98  FILTER2  = 11 ! F336W
WF2   BANDWID     24    99  FILTER1  = 13 ! F375N
WF2   BANDWID     24    99  FILTER2  = 48 ! POLQ
WF2   BANDWID     24   100  FILTER1  = 48 ! POLQ
WF2   BANDWID     24   100  FILTER2  = 13 ! F375N
WF2   BANDWID     24   101  FILTER1  = 13 ! F375N
WF2   BANDWID     24   101  FILTER2  = 53 ! POLQN33
WF2   BANDWID     24   102  FILTER1  = 53 ! POLQN33
WF2   BANDWID     24   102  FILTER2  = 13 ! F375N
WF2   BANDWID     24   103  FILTER1  = 13 ! F375N
WF2   BANDWID     24   103  FILTER2  = 54 ! POLQN18
WF2   BANDWID     24   104  FILTER1  = 54 ! POLQN18
WF2   BANDWID     24   104  FILTER2  = 13 ! F375N
WF2   BANDWID     24   105  FILTER1  = 13 ! F375N
WF2   BANDWID     24   105  FILTER2  = 55 ! POLQP15
WF2   BANDWID     24   106  FILTER1  = 55 ! POLQP15
WF2   BANDWID     24   106  FILTER2  = 13 ! F375N
WF2   BANDWID     45   107  FILTER1  = 15 ! F390N
WF2   BANDWID     45   107  FILTER2  = 48 ! POLQ
WF2   BANDWID     45   108  FILTER1  = 48 ! POLQ
WF2   BANDWID     45   108  FILTER2  = 15 ! F390N
WF2   BANDWID     45   109  FILTER1  = 15 ! F390N
WF2   BANDWID     45   109  FILTER2  = 53 ! POLQN33
WF2   BANDWID     45   110  FILTER1  = 53 ! POLQN33
WF2   BANDWID     45   110  FILTER2  = 15 ! F390N
WF2   BANDWID     45   111  FILTER1  = 15 ! F390N
WF2   BANDWID     45   111  FILTER2  = 54 ! POLQN18
WF2   BANDWID     45   112  FILTER1  = 54 ! POLQN18
WF2   BANDWID     45   112  FILTER2  = 15 ! F390N
WF2   BANDWID     45   113  FILTER1  = 15 ! F390N
WF2   BANDWID     45   113  FILTER2  = 55 ! POLQP15
WF2   BANDWID     45   114  FILTER1  = 55 ! POLQP15
WF2   BANDWID     45   114  FILTER2  = 15 ! F390N
WF2   BANDWID    147   115  FILTER1  = 16 ! F410M
WF2   BANDWID    147   115  FILTER2  = 48 ! POLQ
WF2   BANDWID    147   116  FILTER1  = 48 ! POLQ
WF2   BANDWID    147   116  FILTER2  = 16 ! F410M
WF2   BANDWID    147   117  FILTER1  = 16 ! F410M
WF2   BANDWID    147   117  FILTER2  = 53 ! POLQN33
WF2   BANDWID    147   118  FILTER1  = 53 ! POLQN33
WF2   BANDWID    147   118  FILTER2  = 16 ! F410M
WF2   BANDWID    147   119  FILTER1  = 16 ! F410M
WF2   BANDWID    147   119  FILTER2  = 54 ! POLQN18
WF2   BANDWID    147   120  FILTER1  = 54 ! POLQN18
WF2   BANDWID    147   120  FILTER2  = 16 ! F410M
WF2   BANDWID    147   121  FILTER1  = 16 ! F410M
WF2   BANDWID    147   121  FILTER2  = 55 ! POLQP15
WF2   BANDWID    147   122  FILTER1  = 55 ! POLQP15
WF2   BANDWID    147   122  FILTER2  = 16 ! F410M
WF2   BANDWID    475   123  FILTER1  = 18 ! F439W
WF2   BANDWID    475   123  FILTER2  = 48 ! POLQ
WF2   BANDWID    475   124  FILTER1  = 48 ! POLQ
WF2   BANDWID    475   124  FILTER2  = 18 ! F439W
WF2   BANDWID    475   125  FILTER1  = 18 ! F439W
WF2   BANDWID    475   125  FILTER2  = 53 ! POLQN33
WF2   BANDWID    475   126  FILTER1  = 53 ! POLQN33
WF2   BANDWID    475   126  FILTER2  = 18 ! F439W
WF2   BANDWID    475   127  FILTER1  = 18 ! F439W
WF2   BANDWID    475   127  FILTER2  = 54 ! POLQN18
WF2   BANDWID    475   128  FILTER1  = 54 ! POLQN18
WF2   BANDWID    475   128  FILTER2  = 18 ! F439W
WF2   BANDWID    475   129  FILTER1  = 18 ! F439W
WF2   BANDWID    475   129  FILTER2  = 55 ! POLQP15
WF2   BANDWID    475   130  FILTER1  = 55 ! POLQP15
WF2   BANDWID    475   130  FILTER2  = 18 ! F439W
WF2   BANDWID     25   131  FILTER1  = 21 ! F469N
WF2   BANDWID     25   131  FILTER2  = 48 ! POLQ
WF2   BANDWID     25   132  FILTER1  = 48 ! POLQ
WF2   BANDWID     25   132  FILTER2  = 21 ! F469N
WF2   BANDWID     25   133  FILTER1  = 21 ! F469N
WF2   BANDWID     25   133  FILTER2  = 53 ! POLQN33
WF2   BANDWID     25   134  FILTER1  = 53 ! POLQN33
WF2   BANDWID     25   134  FILTER2  = 21 ! F469N
WF2   BANDWID     25   135  FILTER1  = 21 ! F469N
WF2   BANDWID     25   135  FILTER2  = 54 ! POLQN18
WF2   BANDWID     25   136  FILTER1  = 54 ! POLQN18
WF2   BANDWID     25   136  FILTER2  = 21 ! F469N
WF2   BANDWID     25   137  FILTER1  = 21 ! F469N
WF2   BANDWID     25   137  FILTER2  = 55 ! POLQP15
WF2   BANDWID     25   138  FILTER1  = 55 ! POLQP15
WF2   BANDWID     25   138  FILTER2  = 21 ! F469N
WF2   BANDWID     26   139  FILTER1  = 22 ! F487N
WF2   BANDWID     26   139  FILTER2  = 48 ! POLQ
WF2   BANDWID     26   140  FILTER1  = 48 ! POLQ
WF2   BANDWID     26   140  FILTER2  = 22 ! F487N
WF2   BANDWID     26   141  FILTER1  = 22 ! F487N
WF2   BANDWID     26   141  FILTER2  = 53 ! POLQN33
WF2   BANDWID     26   142  FILTER1  = 53 ! POLQN33
WF2   BANDWID     26   142  FILTER2  = 22 ! F487N
WF2   BANDWID     26   143  FILTER1  = 22 ! F487N
WF2   BANDWID     26   143  FILTER2  = 54 ! POLQN18
WF2   BANDWID     26   144  FILTER1  = 54 ! POLQN18
WF2   BANDWID     26   144  FILTER2  = 22 ! F487N
WF2   BANDWID     26   145  FILTER1  = 22 ! F487N
WF2   BANDWID     26   145  FILTER2  = 55 ! POLQP15
WF2   BANDWID     26   146  FILTER1  = 55 ! POLQP15
WF2   BANDWID     26   146  FILTER2  = 22 ! F487N
WF2   BANDWID     27   147  FILTER1  = 23 ! F502N
WF2   BANDWID     27   147  FILTER2  = 48 ! POLQ
WF2   BANDWID     27   148  FILTER1  = 48 ! POLQ
WF2   BANDWID     27   148  FILTER2  = 23 ! F502N
WF2   BANDWID     27   149  FILTER1  = 23 ! F502N
WF2   BANDWID     27   149  FILTER2  = 53 ! POLQN33
WF2   BANDWID     27   150  FILTER1  = 53 ! POLQN33
WF2   BANDWID     27   150  FILTER2  = 23 ! F502N
WF2   BANDWID     27   151  FILTER1  = 23 ! F502N
WF2   BANDWID     27   151  FILTER2  = 54 ! POLQN18
WF2   BANDWID     27   152  FILTER1  = 54 ! POLQN18
WF2   BANDWID     27   152  FILTER2  = 23 ! F502N
WF2   BANDWID     27   153  FILTER1  = 23 ! F502N
WF2   BANDWID     27   153  FILTER2  = 55 ! POLQP15
WF2   BANDWID     27   154  FILTER1  = 55 ! POLQP15
WF2   BANDWID     27   154  FILTER2  = 23 ! F502N
WF2   BANDWID    482   155  FILTER1  = 24 ! F547M
WF2   BANDWID    482   155  FILTER2  = 48 ! POLQ
WF2   BANDWID    482   156  FILTER1  = 48 ! POLQ
WF2   BANDWID    482   156  FILTER2  = 24 ! F547M
WF2   BANDWID    482   157  FILTER1  = 24 ! F547M
WF2   BANDWID    482   157  FILTER2  = 53 ! POLQN33
WF2   BANDWID    482   158  FILTER1  = 53 ! POLQN33
WF2   BANDWID    482   158  FILTER2  = 24 ! F547M
WF2   BANDWID    482   159  FILTER1  = 24 ! F547M
WF2   BANDWID    482   159  FILTER2  = 54 ! POLQN18
WF2   BANDWID    482   160  FILTER1  = 54 ! POLQN18
WF2   BANDWID    482   160  FILTER2  = 24 ! F547M
WF2   BANDWID    482   161  FILTER1  = 24 ! F547M
WF2   BANDWID    482   161  FILTER2  = 55 ! POLQP15
WF2   BANDWID    482   162  FILTER1  = 55 ! POLQP15
WF2   BANDWID    482   162  FILTER2  = 24 ! F547M
WF2   BANDWID   1230   163  FILTER1  = 25 ! F555W
WF2   BANDWID   1230   163  FILTER2  = 48 ! POLQ
WF2   BANDWID   1230   164  FILTER1  = 48 ! POLQ
WF2   BANDWID   1230   164  FILTER2  = 25 ! F555W
WF2   BANDWID   1230   165  FILTER1  = 25 ! F555W
WF2   BANDWID   1230   165  FILTER2  = 53 ! POLQN33
WF2   BANDWID   1230   166  FILTER1  = 53 ! POLQN33
WF2   BANDWID   1230   166  FILTER2  = 25 ! F555W
WF2   BANDWID   1230   167  FILTER1  = 25 ! F555W
WF2   BANDWID   1230   167  FILTER2  = 54 ! POLQN18
WF2   BANDWID   1230   168  FILTER1  = 54 ! POLQN18
WF2   BANDWID   1230   168  FILTER2  = 25 ! F555W
WF2   BANDWID   1230   169  FILTER1  = 25 ! F555W
WF2   BANDWID   1230   169  FILTER2  = 55 ! POLQP15
WF2   BANDWID   1230   170  FILTER1  = 55 ! POLQP15
WF2   BANDWID   1230   170  FILTER2  = 25 ! F555W
WF2   BANDWID   1535   171  FILTER1  = 28 ! F606W
WF2   BANDWID   1535   171  FILTER2  = 48 ! POLQ
WF2   BANDWID   1535   172  FILTER1  = 48 ! POLQ
WF2   BANDWID   1535   172  FILTER2  = 28 ! F606W
WF2   BANDWID   1535   173  FILTER1  = 28 ! F606W
WF2   BANDWID   1535   173  FILTER2  = 53 ! POLQN33
WF2   BANDWID   1535   174  FILTER1  = 53 ! POLQN33
WF2   BANDWID   1535   174  FILTER2  = 28 ! F606W
WF2   BANDWID   1535   175  FILTER1  = 28 ! F606W
WF2   BANDWID   1535   175  FILTER2  = 54 ! POLQN18
WF2   BANDWID   1535   176  FILTER1  = 54 ! POLQN18
WF2   BANDWID   1535   176  FILTER2  = 28 ! F606W
WF2   BANDWID   1535   177  FILTER1  = 28 ! F606W
WF2   BANDWID   1535   177  FILTER2  = 55 ! POLQP15
WF2   BANDWID   1535   178  FILTER1  = 55 ! POLQP15
WF2   BANDWID   1535   178  FILTER2  = 28 ! F606W
WF2   BANDWID     21   179  FILTER1  = 31 ! F656N
WF2   BANDWID     21   179  FILTER2  = 48 ! POLQ
WF2   BANDWID     21   180  FILTER1  = 48 ! POLQ
WF2   BANDWID     21   180  FILTER2  = 31 ! F656N
WF2   BANDWID     21   181  FILTER1  = 31 ! F656N
WF2   BANDWID     21   181  FILTER2  = 53 ! POLQN33
WF2   BANDWID     21   182  FILTER1  = 53 ! POLQN33
WF2   BANDWID     21   182  FILTER2  = 31 ! F656N
WF2   BANDWID     21   183  FILTER1  = 31 ! F656N
WF2   BANDWID     21   183  FILTER2  = 54 ! POLQN18
WF2   BANDWID     21   184  FILTER1  = 54 ! POLQN18
WF2   BANDWID     21   184  FILTER2  = 31 ! F656N
WF2   BANDWID     21   185  FILTER1  = 31 ! F656N
WF2   BANDWID     21   185  FILTER2  = 55 ! POLQP15
WF2   BANDWID     21   186  FILTER1  = 55 ! POLQP15
WF2   BANDWID     21   186  FILTER2  = 31 ! F656N
WF2   BANDWID     47   187  FILTER1  = 33 ! F673N
WF2   BANDWID     47   187  FILTER2  = 48 ! POLQ
WF2   BANDWID     47   188  FILTER1  = 48 ! POLQ
WF2   BANDWID     47   188  FILTER2  = 33 ! F673N
WF2   BANDWID     47   189  FILTER1  = 33 ! F673N
WF2   BANDWID     47   189  FILTER2  = 53 ! POLQN33
WF2   BANDWID     47   190  FILTER1  = 53 ! POLQN33
WF2   BANDWID     47   190  FILTER2  = 33 ! F673N
WF2   BANDWID     47   191  FILTER1  = 33 ! F673N
WF2   BANDWID     47   191  FILTER2  = 54 ! POLQN18
WF2   BANDWID     47   192  FILTER1  = 54 ! POLQN18
WF2   BANDWID     47   192  FILTER2  = 33 ! F673N
WF2   BANDWID     47   193  FILTER1  = 33 ! F673N
WF2   BANDWID     47   193  FILTER2  = 55 ! POLQP15
WF2   BANDWID     47   194  FILTER1  = 55 ! POLQP15
WF2   BANDWID     47   194  FILTER2  = 33 ! F673N
WF2   BANDWID    882   195  FILTER1  = 34 ! F675W
WF2   BANDWID    882   195  FILTER2  = 48 ! POLQ
WF2   BANDWID    882   196  FILTER1  = 48 ! POLQ
WF2   BANDWID    882   196  FILTER2  = 34 ! F675W
WF2   BANDWID    882   197  FILTER1  = 34 ! F675W
WF2   BANDWID    882   197  FILTER2  = 53 ! POLQN33
WF2   BANDWID    882   198  FILTER1  = 53 ! POLQN33
WF2   BANDWID    882   198  FILTER2  = 34 ! F675W
WF2   BANDWID    882   199  FILTER1  = 34 ! F675W
WF2   BANDWID    882   199  FILTER2  = 54 ! POLQN18
WF2   BANDWID    882   200  FILTER1  = 54 ! POLQN18
WF2   BANDWID    882   200  FILTER2  = 34 ! F675W
WF2   BANDWID    882   201  FILTER1  = 34 ! F675W
WF2   BANDWID    882   201  FILTER2  = 55 ! POLQP15
WF2   BANDWID    882   202  FILTER1  = 55 ! POLQP15
WF2   BANDWID    882   202  FILTER2  = 34 ! F675W
WF2   BANDWID   1591   203  FILTER1  = 38 ! F814W
WF2   BANDWID   1591   203  FILTER2  = 48 ! POLQ
WF2   BANDWID   1591   204  FILTER1  = 48 ! POLQ
WF2   BANDWID   1591   204  FILTER2  = 38 ! F814W
WF2   BANDWID   1591   205  FILTER1  = 38 ! F814W
WF2   BANDWID   1591   205  FILTER2  = 53 ! POLQN33
WF2   BANDWID   1591   206  FILTER1  = 53 ! POLQN33
WF2   BANDWID   1591   206  FILTER2  = 38 ! F814W
WF2   BANDWID   1591   207  FILTER1  = 38 ! F814W
WF2   BANDWID   1591   207  FILTER2  = 54 ! POLQN18
WF2   BANDWID   1591   208  FILTER1  = 54 ! POLQN18
WF2   BANDWID   1591   208  FILTER2  = 38 ! F814W
WF2   BANDWID   1591   209  FILTER1  = 38 ! F814W
WF2   BANDWID   1591   209  FILTER2  = 55 ! POLQP15
WF2   BANDWID   1591   210  FILTER1  = 55 ! POLQP15
WF2   BANDWID   1591   210  FILTER2  = 38 ! F814W
WF2   BANDWID     -1   211  FILTER1  = 42 ! FQUVN
WF2   BANDWID     -1   211  FILTER2  = 41 ! F1042M
WF2   BANDWID     -1   212  FILTER1  = 41 ! F1042M
WF2   BANDWID     -1   212  FILTER2  = 42 ! FQUVN
WF2   BANDWID     -1   213  FILTER1  = 42 ! FQUVN
WF2   BANDWID     -1   213  FILTER2  = 61 ! FR418N18
WF2   BANDWID     -1   214  FILTER1  = 61 ! FR418N18
WF2   BANDWID     -1   214  FILTER2  = 42 ! FQUVN
WF2   BANDWID     -1   215  FILTER1  = 43 ! FQCH4N
WF2   BANDWID     -1   215  FILTER2  = 48 ! POLQ
WF2   BANDWID     -1   216  FILTER1  = 48 ! POLQ
WF2   BANDWID     -1   216  FILTER2  = 43 ! FQCH4N
WF2   BANDWID     -1   217  FILTER1  = 43 ! FQCH4N
WF2   BANDWID     -1   217  FILTER2  = 46 ! FR680N
WF2   BANDWID     -1   218  FILTER1  = 46 ! FR680N
WF2   BANDWID     -1   218  FILTER2  = 43 ! FQCH4N
WF2   BANDWID     -1   219  FILTER1  = 43 ! FQCH4N
WF2   BANDWID     -1   219  FILTER2  = 65 ! FR680N18
WF2   BANDWID     -1   220  FILTER1  = 65 ! FR680N18
WF2   BANDWID     -1   220  FILTER2  = 43 ! FQCH4N
WF2   BANDWID     -1   221  FILTER1  = 43 ! FQCH4N
WF2   BANDWID     -1   221  FILTER2  = 64 ! FR680N33
WF2   BANDWID     -1   222  FILTER1  = 64 ! FR680N33
WF2   BANDWID     -1   222  FILTER2  = 43 ! FQCH4N
WF2   BANDWID     -1   223  FILTER1  = 43 ! FQCH4N
WF2   BANDWID     -1   223  FILTER2  = 47 ! FR868N
WF2   BANDWID     -1   224  FILTER1  = 47 ! FR868N
WF2   BANDWID     -1   224  FILTER2  = 43 ! FQCH4N
WF2   BANDWID     24   225  FILTER1  = 13 ! F375N
WF2   BANDWID     24   225  FILTER2  = 44 ! FR418N
WF2   BANDWID     24   226  FILTER1  = 44 ! FR418N
WF2   BANDWID     24   226  FILTER2  = 13 ! F375N
WF2   BANDWID     24   227  FILTER1  = 13 ! F375N
WF2   BANDWID     24   227  FILTER2  = 61 ! FR418N18
WF2   BANDWID     24   228  FILTER1  = 61 ! FR418N18
WF2   BANDWID     24   228  FILTER2  = 13 ! F375N
WF2   BANDWID     24   229  FILTER1  = 13 ! F375N
WF2   BANDWID     24   229  FILTER2  = 60 ! FR418N33
WF2   BANDWID     24   230  FILTER1  = 60 ! FR418N33
WF2   BANDWID     24   230  FILTER2  = 13 ! F375N
WF2   BANDWID     24   231  FILTER1  = 13 ! F375N
WF2   BANDWID     24   231  FILTER2  = 68 ! FR418P15
WF2   BANDWID     24   232  FILTER1  = 68 ! FR418P15
WF2   BANDWID     24   232  FILTER2  = 13 ! F375N
WF2   BANDWID     45   233  FILTER1  = 15 ! F390N
WF2   BANDWID     45   233  FILTER2  = 44 ! FR418N
WF2   BANDWID     45   234  FILTER1  = 44 ! FR418N
WF2   BANDWID     45   234  FILTER2  = 15 ! F390N
WF2   BANDWID     45   235  FILTER1  = 15 ! F390N
WF2   BANDWID     45   235  FILTER2  = 61 ! FR418N18
WF2   BANDWID     45   236  FILTER1  = 61 ! FR418N18
WF2   BANDWID     45   236  FILTER2  = 15 ! F390N
WF2   BANDWID     45   237  FILTER1  = 15 ! F390N
WF2   BANDWID     45   237  FILTER2  = 60 ! FR418N33
WF2   BANDWID     45   238  FILTER1  = 60 ! FR418N33
WF2   BANDWID     45   238  FILTER2  = 15 ! F390N
WF2   BANDWID     45   239  FILTER1  = 15 ! F390N
WF2   BANDWID     45   239  FILTER2  = 68 ! FR418P15
WF2   BANDWID     45   240  FILTER1  = 68 ! FR418P15
WF2   BANDWID     45   240  FILTER2  = 15 ! F390N
WF2   BANDWID     25   241  FILTER1  = 17 ! F437N
WF2   BANDWID     25   241  FILTER2  = 44 ! FR418N
WF2   BANDWID     25   242  FILTER1  = 44 ! FR418N
WF2   BANDWID     25   242  FILTER2  = 17 ! F437N
WF2   BANDWID     25   243  FILTER1  = 17 ! F437N
WF2   BANDWID     25   243  FILTER2  = 61 ! FR418N18
WF2   BANDWID     25   244  FILTER1  = 61 ! FR418N18
WF2   BANDWID     25   244  FILTER2  = 17 ! F437N
WF2   BANDWID     25   245  FILTER1  = 17 ! F437N
WF2   BANDWID     25   245  FILTER2  = 60 ! FR418N33
WF2   BANDWID     25   246  FILTER1  = 60 ! FR418N33
WF2   BANDWID     25   246  FILTER2  = 17 ! F437N
WF2   BANDWID     25   247  FILTER1  = 17 ! F437N
WF2   BANDWID     25   247  FILTER2  = 68 ! FR418P15
WF2   BANDWID     25   248  FILTER1  = 68 ! FR418P15
WF2   BANDWID     25   248  FILTER2  = 17 ! F437N
WF2   BANDWID     25   249  FILTER1  = 21 ! F469N
WF2   BANDWID     25   249  FILTER2  = 44 ! FR418N
WF2   BANDWID     25   250  FILTER1  = 44 ! FR418N
WF2   BANDWID     25   250  FILTER2  = 21 ! F469N
WF2   BANDWID     25   251  FILTER1  = 21 ! F469N
WF2   BANDWID     25   251  FILTER2  = 61 ! FR418N18
WF2   BANDWID     25   252  FILTER1  = 61 ! FR418N18
WF2   BANDWID     25   252  FILTER2  = 21 ! F469N
WF2   BANDWID     25   253  FILTER1  = 21 ! F469N
WF2   BANDWID     25   253  FILTER2  = 60 ! FR418N33
WF2   BANDWID     25   254  FILTER1  = 60 ! FR418N33
WF2   BANDWID     25   254  FILTER2  = 21 ! F469N
WF2   BANDWID     25   255  FILTER1  = 21 ! F469N
WF2   BANDWID     25   255  FILTER2  = 68 ! FR418P15
WF2   BANDWID     25   256  FILTER1  = 68 ! FR418P15
WF2   BANDWID     25   256  FILTER2  = 21 ! F469N
WF2   BANDWID     26   257  FILTER1  = 22 ! F487N
WF2   BANDWID     26   257  FILTER2  = 45 ! FR533N
WF2   BANDWID     26   258  FILTER1  = 45 ! FR533N
WF2   BANDWID     26   258  FILTER2  = 22 ! F487N
WF2   BANDWID     26   259  FILTER1  = 22 ! F487N
WF2   BANDWID     26   259  FILTER2  = 63 ! FR533N18
WF2   BANDWID     26   260  FILTER1  = 63 ! FR533N18
WF2   BANDWID     26   260  FILTER2  = 22 ! F487N
WF2   BANDWID     26   261  FILTER1  = 22 ! F487N
WF2   BANDWID     26   261  FILTER2  = 62 ! FR533N33
WF2   BANDWID     26   262  FILTER1  = 62 ! FR533N33
WF2   BANDWID     26   262  FILTER2  = 22 ! F487N
WF2   BANDWID     26   263  FILTER1  = 22 ! F487N
WF2   BANDWID     26   263  FILTER2  = 69 ! FR533P15
WF2   BANDWID     26   264  FILTER1  = 69 ! FR533P15
WF2   BANDWID     26   264  FILTER2  = 22 ! F487N
WF2   BANDWID     -1   265  FILTER1  = 23 ! F502N
WF2   BANDWID     -1   265  FILTER2  = 44 ! FR418N
WF2   BANDWID     -1   266  FILTER1  = 44 ! FR418N
WF2   BANDWID     -1   266  FILTER2  = 23 ! F502N
WF2   BANDWID     27   267  FILTER1  = 23 ! F502N
WF2   BANDWID     27   267  FILTER2  = 45 ! FR533N
WF2   BANDWID     27   268  FILTER1  = 45 ! FR533N
WF2   BANDWID     27   268  FILTER2  = 23 ! F502N
WF2   BANDWID     27   269  FILTER1  = 23 ! F502N
WF2   BANDWID     27   269  FILTER2  = 63 ! FR533N18
WF2   BANDWID     27   270  FILTER1  = 63 ! FR533N18
WF2   BANDWID     27   270  FILTER2  = 23 ! F502N
WF2   BANDWID     27   271  FILTER1  = 23 ! F502N
WF2   BANDWID     27   271  FILTER2  = 62 ! FR533N33
WF2   BANDWID     27   272  FILTER1  = 62 ! FR533N33
WF2   BANDWID     27   272  FILTER2  = 23 ! F502N
WF2   BANDWID     27   273  FILTER1  = 23 ! F502N
WF2   BANDWID     27   273  FILTER2  = 69 ! FR533P15
WF2   BANDWID     27   274  FILTER1  = 69 ! FR533P15
WF2   BANDWID     27   274  FILTER2  = 23 ! F502N
WF2   BANDWID     49   275  FILTER1  = 27 ! F588N
WF2   BANDWID     49   275  FILTER2  = 45 ! FR533N
WF2   BANDWID     49   276  FILTER1  = 45 ! FR533N
WF2   BANDWID     49   276  FILTER2  = 27 ! F588N
WF2   BANDWID     49   277  FILTER1  = 27 ! F588N
WF2   BANDWID     49   277  FILTER2  = 63 ! FR533N18
WF2   BANDWID     49   278  FILTER1  = 63 ! FR533N18
WF2   BANDWID     49   278  FILTER2  = 27 ! F588N
WF2   BANDWID     49   279  FILTER1  = 27 ! F588N
WF2   BANDWID     49   279  FILTER2  = 62 ! FR533N33
WF2   BANDWID     49   280  FILTER1  = 62 ! FR533N33
WF2   BANDWID     49   280  FILTER2  = 27 ! F588N
WF2   BANDWID     49   281  FILTER1  = 27 ! F588N
WF2   BANDWID     49   281  FILTER2  = 69 ! FR533P15
WF2   BANDWID     49   282  FILTER1  = 69 ! FR533P15
WF2   BANDWID     49   282  FILTER2  = 27 ! F588N
WF2   BANDWID     31   283  FILTER1  = 30 ! F631N
WF2   BANDWID     31   283  FILTER2  = 46 ! FR680N
WF2   BANDWID     31   284  FILTER1  = 46 ! FR680N
WF2   BANDWID     31   284  FILTER2  = 30 ! F631N
WF2   BANDWID     31   285  FILTER1  = 30 ! F631N
WF2   BANDWID     31   285  FILTER2  = 65 ! FR680N18
WF2   BANDWID     31   286  FILTER1  = 65 ! FR680N18
WF2   BANDWID     31   286  FILTER2  = 30 ! F631N
WF2   BANDWID     31   287  FILTER1  = 30 ! F631N
WF2   BANDWID     31   287  FILTER2  = 64 ! FR680N33
WF2   BANDWID     31   288  FILTER1  = 64 ! FR680N33
WF2   BANDWID     31   288  FILTER2  = 30 ! F631N
WF2   BANDWID     31   289  FILTER1  = 30 ! F631N
WF2   BANDWID     31   289  FILTER2  = 70 ! FR680P15
WF2   BANDWID     31   290  FILTER1  = 70 ! FR680P15
WF2   BANDWID     31   290  FILTER2  = 30 ! F631N
WF2   BANDWID     22   291  FILTER1  = 31 ! F656N
WF2   BANDWID     22   291  FILTER2  = 46 ! FR680N
WF2   BANDWID     22   292  FILTER1  = 46 ! FR680N
WF2   BANDWID     22   292  FILTER2  = 31 ! F656N
WF2   BANDWID     22   293  FILTER1  = 31 ! F656N
WF2   BANDWID     22   293  FILTER2  = 65 ! FR680N18
WF2   BANDWID     22   294  FILTER1  = 65 ! FR680N18
WF2   BANDWID     22   294  FILTER2  = 31 ! F656N
WF2   BANDWID     22   295  FILTER1  = 31 ! F656N
WF2   BANDWID     22   295  FILTER2  = 64 ! FR680N33
WF2   BANDWID     22   296  FILTER1  = 64 ! FR680N33
WF2   BANDWID     22   296  FILTER2  = 31 ! F656N
WF2   BANDWID     22   297  FILTER1  = 31 ! F656N
WF2   BANDWID     22   297  FILTER2  = 70 ! FR680P15
WF2   BANDWID     22   298  FILTER1  = 70 ! FR680P15
WF2   BANDWID     22   298  FILTER2  = 31 ! F656N
WF2   BANDWID     29   299  FILTER1  = 32 ! F658N
WF2   BANDWID     29   299  FILTER2  = 46 ! FR680N
WF2   BANDWID     29   300  FILTER1  = 46 ! FR680N
WF2   BANDWID     29   300  FILTER2  = 32 ! F658N
WF2   BANDWID     29   301  FILTER1  = 32 ! F658N
WF2   BANDWID     29   301  FILTER2  = 65 ! FR680N18
WF2   BANDWID     29   302  FILTER1  = 65 ! FR680N18
WF2   BANDWID     29   302  FILTER2  = 32 ! F658N
WF2   BANDWID     29   303  FILTER1  = 32 ! F658N
WF2   BANDWID     29   303  FILTER2  = 64 ! FR680N33
WF2   BANDWID     29   304  FILTER1  = 64 ! FR680N33
WF2   BANDWID     29   304  FILTER2  = 32 ! F658N
WF2   BANDWID     29   305  FILTER1  = 32 ! F658N
WF2   BANDWID     29   305  FILTER2  = 70 ! FR680P15
WF2   BANDWID     29   306  FILTER1  = 70 ! FR680P15
WF2   BANDWID     29   306  FILTER2  = 32 ! F658N
WF2   BANDWID     47   307  FILTER1  = 33 ! F673N
WF2   BANDWID     47   307  FILTER2  = 46 ! FR680N
WF2   BANDWID     47   308  FILTER1  = 46 ! FR680N
WF2   BANDWID     47   308  FILTER2  = 33 ! F673N
WF2   BANDWID     47   309  FILTER1  = 33 ! F673N
WF2   BANDWID     47   309  FILTER2  = 65 ! FR680N18
WF2   BANDWID     47   310  FILTER1  = 65 ! FR680N18
WF2   BANDWID     47   310  FILTER2  = 33 ! F673N
WF2   BANDWID     47   311  FILTER1  = 33 ! F673N
WF2   BANDWID     47   311  FILTER2  = 64 ! FR680N33
WF2   BANDWID     47   312  FILTER1  = 64 ! FR680N33
WF2   BANDWID     47   312  FILTER2  = 33 ! F673N
WF2   BANDWID     47   313  FILTER1  = 33 ! F673N
WF2   BANDWID     47   313  FILTER2  = 70 ! FR680P15
WF2   BANDWID     47   314  FILTER1  = 70 ! FR680P15
WF2   BANDWID     47   314  FILTER2  = 33 ! F673N
WF2   BANDWID     53   315  FILTER1  = 40 ! F953N
WF2   BANDWID     53   315  FILTER2  = 47 ! FR868N
WF2   BANDWID     53   316  FILTER1  = 47 ! FR868N
WF2   BANDWID     53   316  FILTER2  = 40 ! F953N
WF2   BANDWID     53   317  FILTER1  = 40 ! F953N
WF2   BANDWID     53   317  FILTER2  = 67 ! FR868N18
WF2   BANDWID     53   318  FILTER1  = 67 ! FR868N18
WF2   BANDWID     53   318  FILTER2  = 40 ! F953N
WF2   BANDWID     53   319  FILTER1  = 40 ! F953N
WF2   BANDWID     53   319  FILTER2  = 66 ! FR868N33
WF2   BANDWID     53   320  FILTER1  = 66 ! FR868N33
WF2   BANDWID     53   320  FILTER2  = 40 ! F953N
WF2   BANDWID     53   321  FILTER1  = 40 ! F953N
WF2   BANDWID     53   321  FILTER2  = 71 ! FR868P15
WF2   BANDWID     53   322  FILTER1  = 71 ! FR868P15
WF2   BANDWID     53   322  FILTER2  = 40 ! F953N
!-----------------------------------------------------------------------------
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
FC2     T_LED     ERROR          1  NC1LEDSL     =      BLANK
FC2     T_LED     ERROR          1  NC2LEDSL     =      BLANK
FC2     T_LED     {NC1LEDSL}     2  NC1LEDSL     !=     BLANK
FC2     T_LED     {NC2LEDSL}     3  NC2LEDSL     !=     BLANK
FC2     T_LED     ERROR          4  NC1LEDSL     !=    {NC2LEDSL}
FC2     T_LED     {NC1LEDSL}     5      T        =      T
FC2     T_LEDMO   ERROR          1  T_LED        =      ERROR
FC2     T_LEDMO   NOTUSED        2  T_LED        =      None
FC2     T_LEDMO   NOTUSED        3  T_LED        =      "LED off"
FC2     T_LEDMO   ACTIVE         4  T            =      T
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
FC2     DNFORMT   8		1    XNSDS1ST  =	1
FC2     DNFORMT   8		1    XXSD1MOD  =	1
FC2     DNFORMT   16		2    XNSDS1ST  =	1
FC2     DNFORMT   16		2    XXSD1MOD  =	0
FC2     DNFORMT   8		3    XNSDS2ST  =	1
FC2     DNFORMT   8		3    XXSD2MOD  =	1
FC2     DNFORMT   16		4    XNSDS2ST  =	1
FC2     DNFORMT   16		4    XXSD2MOD  =	0
FC2     DNFORMT   -1		5    T	       =	T
!
! FOC wierdness
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
FC2     UTCO1     {XUTCO1}	1    T	        =	T
FC2     UTCO2     {XUTCO2}	1    T	        =	T
FC2     SPCLINCN  {XSPCLINC}	1    T	        =	T
FC2     DCFOBSN   {XDCFOBSN}	1    T	        =	T
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
FC2     PXFORMT	  {T_PXFMT}	1    T	        =	T
FC2     OPTCRLY	  {T_OPRLY}	1    T	        =	T
FC2     SHTMODE	  {T_SHTMO}	1    T	        =	T
FC2     SMMMODE	  {T_SMMMO}	1    T	        =	T
FC2     OPTELT1	  {T_OPTE1}	1    T	        =	T
FC2     OPTELT2	  {T_OPTE2}	1    T	        =	T
FC2     OPTELT3	  {T_OPTE3}	1    T	        =	T
FC2     OPTELT4	  {T_OPTE4}	1    T	        =	T
FC2     SAMPOFF   {T_SOFF}	1    T	        =	T
FC2     LINEOFF   {T_LOFF}	1    T	        =	T
FC2     SAMPPLN   {T_SAMPS}	1    T	        =	T
FC2     LINEPFM	  {T_LINES}	1    T	        =	T
FC2     CAMMODE	  {T_CAMMO}	1    T	        =	T
FC2     LEDMODE	  {T_LEDMO}	1    T	        =	T
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
FCS     BACCORR	  OMIT         1    T	 	 =	T
FCS     ITFCORR	  OMIT         1    T	 	 =	T
FCS     SDECORR	  OMIT         1    T	 	 =	T
FCS     GEOCORR	  PERFORM      1    SHTMODE	 =	NOTUSED
FCS     GEOCORR	  OMIT         2    T	 	 =	T
FCS     WAVCORR	  PERFORM      1    SHTMODE	 =	NOTUSED
FCS     WAVCORR	  PERFORM      1    SMMMODE	 =	NOTUSED
FCS     WAVCORR	  OMIT         2    T	 	 =	T
FCS     UNICORR	  PERFORM      1    SHTMODE	 =	NOTUSED
FCS     UNICORR	  PERFORM      1    SMMMODE	 =	NOTUSED
FCS     UNICORR	  OMIT         2    T	 	 =	T
FCS     PXLCORR	  PERFORM      1    SHTMODE	 =	NOTUSED
FCS     PXLCORR	  PERFORM      1    SMMMODE	 =	NOTUSED
FCS     PXLCORR	  PERFORM      1    PXFORMT	 =	ZOOM
FCS     PXLCORR	  PERFORM      2    SHTMODE	 =	NOTUSED
FCS     PXLCORR	  PERFORM      2    SMMMODE	 =	INBEAM
FCS     PXLCORR	  PERFORM      2    PXFORMT	 =	ZOOM
FCS     PXLCORR	  PERFORM      3    SHTMODE	 =	INBEAM
FCS     PXLCORR	  PERFORM      3    LEDMODE	 =	ACTIVE
FCS     PXLCORR	  PERFORM      3    PXFORMT	 =	ZOOM
FCS     PXLCORR	  OMIT         4    T	 	 =	T
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
FC2     SS_LINES  {S_LINES}     1    T            =      T
FC2     SS_LOFF	  {S_LOFF}      1    T            =      T
FC2     SS_OPRLY  {S_OPRLY}     1    T            =      T
FC2     SS_OPTE1  {S_OPTE1}     1    T            =      T
FC2     SS_OPTE2  {S_OPTE2}     1    T            =      T
FC2     SS_OPTE3  {S_OPTE3}     1    T            =      T
FC2     SS_OPTE4  {S_OPTE4}     1    T            =      T
FC2     SS_PXFMT  {S_PXFMT}     1    T            =      T
FC2     SS_SAMPS  {S_SAMPS}     1    T            =      T
FC2     SS_SHTMO  {S_SHTMO}     1    T            =      T
FC2     SS_SMMMO  {S_SMMMO}     1    T            =      T
FC2     SS_SOFF   {S_SOFF}      1    T            =      T
FC2     SS_CAMMO  {S_CAMMO}     1    T            =      T
FC2     SS_LEDMO  {S_LEDMO}     1    T            =      T
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
ACS     DETECTOR   SBC          1   DETECTOR  =   MAMA
ACS     DETECTOR   SBC          2   DETECTOR  =   invalid
!
!pr 45443
ACS     CCDOFSTA  [0+{WFCOFFA}]     1   DETECTOR  =     WFC
ACS     CCDOFSTB  [0+{WFCOFFB}]     1   DETECTOR  =     WFC
ACS     CCDOFSTC  [0+{WFCOFFC}]     1   DETECTOR  =     WFC
ACS     CCDOFSTD  [0+{WFCOFFD}]     1   DETECTOR  =     WFC
ACS     CCDOFSTA  [0+{HRCOFFA}]     1   DETECTOR  =     HRC
ACS     CCDOFSTB  [0+{HRCOFFB}]     1   DETECTOR  =     HRC
ACS     CCDOFSTC  [0+{HRCOFFC}]     1   DETECTOR  =     HRC
ACS     CCDOFSTD  [0+{HRCOFFD}]     1   DETECTOR  =     HRC
!
! PR 54548
ACS     OBSTYPE    INTERNAL      1    DOORPOS  =  deploy
ACS     OBSTYPE    CORONAGRAPHIC 2    DOORPOS  =  coronagr
ACS     OBSTYPE    CORONAGRAPHIC 2    DETECTOR != WFC
ACS     OBSTYPE    SPECTROSCOPIC 3    SPEC_1   =  G800L
ACS     OBSTYPE    SPECTROSCOPIC 4    SPEC_2   =  PR200L
ACS     OBSTYPE    SPECTROSCOPIC 5    SPEC_3   =  PR110L
ACS     OBSTYPE    SPECTROSCOPIC 6    SPEC_3   =  PR130L
ACS     OBSTYPE    IMAGING       7    T        =  T
!
ACS     OBSMODE   {OPMODE}      1          T        =  T
ACS	APERTURE  {APER_1}      1          T        =  T
ACS	POSTARG1  {APEROFFX}    1	   T	    =  T
ACS	POSTARG2  {APEROFFY}    1	   T	    =  T
!
ACS     CCDGAIN   {SS_GAIN}     1          T  =   T
!
ACS	SUBARRAY   T		1	   IMGSETUP =  subarray
ACS     SUBARRAY   F            2          T        =  T
!
ACS     FILTER1    {SFILTER}    1          DETECTOR =  SBC
ACS     FILTER2     N/A         1          DETECTOR =  SBC
!
ACS	SCLAMP     LAMP1        1   LAMP1     =         on
ACS     SCLAMP     LAMP2        2   LAMP2     =         on
ACS	SCLAMP     LAMP3        3   LAMP3     =         on
ACS     SCLAMP     LAMP4        4   LAMP4     =         on
ACS	SCLAMP     DEUTLAMP     5   DEUTLAMP  =         on
ACS     SCLAMP     NONE         6   T         =         T
!
!PR 43439
ACS     IMAGETYP   FLAT         1   SCLAMP    =         DEUTLAMP
ACS     IMAGETYP   FLAT         2   SCLAMP    =         LAMP1
ACS     IMAGETYP   FLAT         3   SCLAMP    =         LAMP2
ACS     IMAGETYP   FLAT         4   SCLAMP    =         LAMP3
ACS     IMAGETYP   FLAT         5   SCLAMP    =         LAMP4
ACS     IMAGETYP   BIAS         6   SCLAMP    =         NONE
ACS     IMAGETYP   BIAS         6   TARGNAME  =         BIAS
ACS     IMAGETYP   DARK         7   SCLAMP    =         NONE
ACS     IMAGETYP   DARK         7   TARGNAME  =         DARK
ACS     IMAGETYP   EXT          8   SCLAMP    =         NONE
ACS     IMAGETYP   EXT          8   TARGNAME  !=        BIAS
ACS     IMAGETYP   EXT          8   TARGNAME  !=        DARK 
!
! PR 45426  PR 45534
ACS     CCDAMP  {CCDOVER}       1   CTEIMAGE  =         FPR
ACS     CCDAMP  {CCDOVER}       2   CTEIMAGE  =         EPER
!
! PR 54633
! Removed redundant rules covered by wildcarded WFC1,2 cases.
! Moved single-amp tests first to address this PR (they should always hold).
! (The CCDCHIP keyword value is also set in GC code for WFC exposures,
!  so that seems to override some of these later cases anyway.)
!
ACS     CCDCHIP         1       1   CCDAMP    =         A
ACS     CCDCHIP         1       2   CCDAMP    =         B
ACS     CCDCHIP         2       3   CCDAMP    =         C
ACS     CCDCHIP         2       4   CCDAMP    =         D
ACS     CCDCHIP         1       5   APERTURE  =         WFC1?
ACS     CCDCHIP         2       6   APERTURE  =         WFC2?
ACS     CCDCHIP         1       7   APERTURE  =         WFC
ACS     CCDCHIP         2       8   APERTURE  =         WFCENTER
ACS     CCDCHIP         1       9   APERTURE  =         WFC-FIX
! 42859
ACS   SS_SPLIT   1		1	  SS_SPLIT  = 	NO
ACS   CRSPLIT   {SS_SPLIT}      1         T  =   T
!
! protect against divide-by-zero
ACS     GLOBRATE  -1            1   DETECTOR = SBC
ACS     GLOBRATE  -1            1   JMGLEVIP <  0.0001
ACS     GLOBRATE  -1            1   JMGLEVIP > -0.0001
ACS     GLOBRATE  [{JMEVENTS}/({JMGLEVIP}/1000.0)] 2 DETECTOR  = SBC
ACS     GLOBRATE  -1            3   T         =         T
!
! PR 45670                                
ACS     LTV2      20.0          1   DETECTOR  =         HRC  
ACS     LTV2      20.0          1   SIZAXIS1  =         1062 
ACS     LTV2      20.0          1   SIZAXIS2  =         1044 
ACS     LTV2      20.0          1   CCDAMP    =         A    
ACS     LTV2      20.0          2   DETECTOR  =         HRC  
ACS     LTV2      20.0          2   SIZAXIS1  =         1062 
ACS     LTV2      20.0          2   SIZAXIS2  =         1044 
ACS     LTV2      20.0          2   CCDAMP    =         B    
!The following 8 rules correct the NUMROWS=NUMCOLS=0 situation for
!the ACE CTE images: OPR.43216  (Note: these numbers may change for WF3)
!
ACS     NUMROWS   4246          1       IMGSETUP = generic
ACS     NUMROWS   4246          1       CPRWORDS = 17811970
ACS     NUMCOLS   4195          2       IMGSETUP = generic
ACS     NUMCOLS   4195          2       CPRWORDS = 17811970
ACS     NUMROWS   4136          3       IMGSETUP = generic
ACS     NUMROWS   4136          3       CPRWORDS = 17139584
ACS     NUMCOLS   4144          4       IMGSETUP = generic
ACS     NUMCOLS   4144          4       CPRWORDS = 17139584
!
ACS     NUMROWS   1099          5       IMGSETUP = generic
ACS     NUMROWS   1099          5       CPRWORDS = 1228682
ACS     NUMCOLS   1118          6       IMGSETUP = generic
ACS     NUMCOLS   1118          6       CPRWORDS = 1228682
ACS     NUMROWS   1044          7       IMGSETUP = generic
ACS     NUMROWS   1044          7       CPRWORDS = 1108728
ACS     NUMCOLS   1062          8       IMGSETUP = generic
ACS     NUMCOLS   1062          8       CPRWORDS = 1108728
!
! if the commanded flash duration is zero, then status = not performed
!
! if the flash aborted and there is a non-zero error code then status = aborted
! (its possible for the abort flag to be set, but the flash actually succeeded,
!  in which case the error code is zero)
!
ACS    FLASHSTA  "NOT PERFORMED"   1   JQCFLSUC = Success
ACS    FLASHSTA  "NOT PERFORMED"   1   JQCFABRT = NotAbrtd
ACS    FLASHSTA  "NOT PERFORMED"   1   JQCFDURC = 0
ACS    FLASHSTA  ABORTED           2   JQCFLSUC = Failure
ACS    FLASHSTA  ABORTED           2   JQCFABRT = Aborted
ACS    FLASHSTA  ABORTED           2   JQCFLERR != 0
ACS    FLASHSTA  SUCCESSFUL        3   T        = T
!
! The JHRESPOS and JWRESPOS values may need adjustment after in-flight
! values are determined.   These ranges were from an e-mail from
! George Hartig (fwd to MSwam) recv'd after SMGT (05/07/2001).
! Some tweaks were then made to process the SMGT data.
!
! (the floating point nature of the RESPOS values is 
!  a trick to get the comparison to occur numerically 
!  instead of stringwise, since the RESPOS values are
!  sometimes in exponential notation and sometimes not)
!
ACS    SHUTRPOS  A                 1   DETECTOR = HRC
ACS    SHUTRPOS  A                 1   JHRESPOS > 5390.0
ACS    SHUTRPOS  A                 1   JHRESPOS < 5720.0
ACS    SHUTRPOS  A                 2   DETECTOR = HRC
ACS    SHUTRPOS  A                 2   JHRESPOS > 38160.0
ACS    SHUTRPOS  A                 2   JHRESPOS < 38480.0
ACS    SHUTRPOS  B                 3   DETECTOR = HRC
ACS    SHUTRPOS  B                 3   JHRESPOS > 21760.0
ACS    SHUTRPOS  B                 3   JHRESPOS < 22080.0
ACS    SHUTRPOS  B                 4   DETECTOR = HRC
ACS    SHUTRPOS  B                 4   JHRESPOS > 54520.0
ACS    SHUTRPOS  B                 4   JHRESPOS < 54890.0
ACS    SHUTRPOS  A                 5   DETECTOR = WFC
ACS    SHUTRPOS  A                 5   JWRESPOS > 9820.0
ACS    SHUTRPOS  A                 5   JWRESPOS < 10200.0
ACS    SHUTRPOS  A                 6   DETECTOR = WFC
ACS    SHUTRPOS  A                 6   JWRESPOS > 42590.0
ACS    SHUTRPOS  A                 6   JWRESPOS < 42920.0
ACS    SHUTRPOS  B                 7   DETECTOR = WFC
ACS    SHUTRPOS  B                 7   JWRESPOS > 26220.0
ACS    SHUTRPOS  B                 7   JWRESPOS < 26540.0
ACS    SHUTRPOS  B                 8   DETECTOR = WFC
ACS    SHUTRPOS  B                 8   JWRESPOS > 58990.0
ACS    SHUTRPOS  B                 8   JWRESPOS < 59310.0
ACS    SHUTRPOS  N/A               9   T        = T
!
!
! ACS Calibration switch settings
!
! define t_FLASH to TRUE for post-flash calibration data 
!  (DARK w/non-zero flash duration)
!
ASW    t_FLASH   T                 1   TARGNAME = DARK
ASW    t_FLASH   T                 1   FLASHDUR > 0.0001
ASW    t_FLASH   F                 2   T        = T
!
! flip the SHUTRPOS for normal exposures (not bias or dark)
! (another adjustment added with OPR 43911_01)
ACS    SHUTRPOS  A                 1   CCDSETUP = normal
ACS    SHUTRPOS  A                 1   SHUTRPOS = B
ACS    SHUTRPOS  B                 2   CCDSETUP = normal
ACS    SHUTRPOS  B                 2   SHUTRPOS = A
!
! The post-flash calibration step can be omitted when the post flash was
! not done, and also for post-flash calibration data
!
!
! PR 44871, 55038
ASW    FLSHCORR  OMIT              1	T  = T
!
! PR 45426,61631,68298
ASW	DQICORR	   OMIT		1	   OBSMODE = ACQ
ASW     DQICORR    OMIT         2          DETECTOR = SBC
ASW     DQICORR    OMIT         2          OBSTYPE != INTERNAL
ASW     DQICORR    OMIT         2          FILTER1 = BLOCK?
ASW	DQICORR	   PERFORM      3          T  =   T
!
! PR 44855
ASW	ATODCORR   OMIT		1          T  =   T
!
! PR 44855,68298
ASW	BLEVCORR   OMIT	       1	   TARGNAME = BIAS
ASW	BLEVCORR   OMIT	       2	   CTEIMAGE = EPER
ASW	BLEVCORR   OMIT	       3	   CTEIMAGE = FPR
ASW	BLEVCORR   {DQICORR}   4          T  =   T
!
ASW	BIASCORR   OMIT		1	   TARGNAME = BIAS
ASW	BIASCORR   OMIT	        2	   CTEIMAGE = EPER
ASW	BIASCORR   OMIT	        3	   CTEIMAGE = FPR
ASW	BIASCORR   {DQICORR}	4	   T  =   T
!
!
! omit the dark correction for true darks (flash duration = 0)
!
! PR 44949  correct syntax for FLASHDUR comparison
ASW    DARKCORR  OMIT              1   TARGNAME = DARK
ASW    DARKCORR  OMIT              1   FLASHDUR < 0.0001
ASW    DARKCORR  {BIASCORR}        2   T        =   T
!
!
! omit the shadow correction for post-flash calibration data
! PR 44855
ASW     SHADCORR   OMIT         1          T  =   T
!
! PR 45426
ACS     NRPTEXP    {SS_RPT}     1          T  =   T
ASW	RPTCORR    PERFORM      1          NRPTEXP > 1
ASW     RPTCORR    OMIT         2          TARGNAME = BIAS
ASW     RPTCORR    OMIT         3          TARGNAME = DARK
ASW	RPTCORR    OMIT		4	   T  =   T
!
! PR 46357 add defaults so that BESTSWITCH will work properly
!          since SPEC_1,SPEC_2 are not defined in the archive catalog for ACS
ASW     SPEC_1     {FILTER1}    1          SPEC_1 = BLANK
ASW     SPEC_2     {FILTER2}    1          SPEC_2 = BLANK
!
! PR 45142
! PR 46256
! PR 46581 FILTERn changed to SPEC_n (dgx) FILTERn not reliable for HRC
! PR 47720 FLATCORR set to PERFORM for G800L
ASW     FLATCORR   OMIT         1          TARGNAME = BIAS
ASW     FLATCORR   OMIT         2          TARGNAME = DARK
ASW     FLATCORR   OMIT         3          DETECTOR = SBC
ASW     FLATCORR   OMIT         3          OBSTYPE != INTERNAL
ASW     FLATCORR   OMIT         3          FILTER1  = BLOCK?
ASW     FLATCORR   OMIT         4          SCLAMP  != NONE
ASW     FLATCORR   PERFORM      5          SPEC_1   = G800L
ASW     FLATCORR   PERFORM      6          SPEC_1   = PR200L
ASW     FLATCORR   PERFORM      7          SPEC_2   = PR200L
ASW     FLATCORR   PERFORM      8          SPEC_1   = PR110L
ASW     FLATCORR   PERFORM      9          SPEC_1   = PR130L
ASW     FLATCORR   OMIT         10         DETECTOR = WFC
ASW     FLATCORR   OMIT         10         SPEC_2   = F344N
ASW     FLATCORR   OMIT         11         DETECTOR = WFC
ASW     FLATCORR   OMIT         11         SPEC_2   = F330W
ASW     FLATCORR   OMIT         12         DETECTOR = WFC
ASW     FLATCORR   OMIT         12         SPEC_2   = F220W
ASW     FLATCORR   OMIT         13         DETECTOR = WFC
ASW     FLATCORR   OMIT         13         SPEC_2   = F250W
ASW     FLATCORR   {DARKCORR}   14         T  =   T
!
ASW	CRCORR     OMIT	        1          CRSPLIT < 2
ASW	CRCORR     OMIT         2          SCLAMP  != NONE
ASW	CRCORR     {BIASCORR}   3          T  =   T
!
! PR 44736
ASW     PHOTCORR   {FLATCORR}   1          T  =   T
! PR 47138
ASW	EXPSCORR   PERFORM      1          T  =   T
ASW     GLINCORR   {DQICORR}    1          T  =   T
ASW     LFLGCORR   {DQICORR}    1          T  =   T
! PR 45611
! PR 54662
! PR 57755
! PR 67841 change rule for F330W and F344N - Mary
ASW     DRIZCORR   OMIT         1          SPEC_1  = G800L
ASW     DRIZCORR   OMIT         1          SPEC_2  = F220W
ASW     DRIZCORR   OMIT         2          SPEC_1  = G800L
ASW     DRIZCORR   OMIT         2          SPEC_2  = F250W
ASW     DRIZCORR   OMIT         3          SPEC_1  = G800L
ASW     DRIZCORR   OMIT         3          SPEC_2  = F330W
ASW     DRIZCORR   OMIT         4          SPEC_1  = G800L
ASW     DRIZCORR   OMIT         4          SPEC_2  = F658N
ASW     DRIZCORR   OMIT         5          SPEC_1  = G800L
ASW     DRIZCORR   OMIT         5          SPEC_2  = F814W
ASW     DRIZCORR   OMIT         6          DETECTOR = WFC
ASW     DRIZCORR   OMIT         6          SPEC_2 = F330W
ASW     DRIZCORR   OMIT         7          DETECTOR = WFC
ASW     DRIZCORR   OMIT         7          SPEC_2 = F344N
ASW     DRIZCORR   PERFORM      8          IMAGETYP = EXT
ASW     DRIZCORR   OMIT         9          T  =   T
!
! PR 63025
!  run these last so any previous settings will be overwritten
!  (switches will be OMIT because no ref files will ever be made for these
!   early days)
!
ASW    BIASCORR  OMIT           1          DETECTOR = WFC
ASW    BIASCORR  OMIT           1          CCDGAIN = 1
ASW    BIASCORR  OMIT           1          t_EXPDATE < 2002077.0  !Mar 18 2002 
!
ASW    BIASCORR  OMIT           2          DETECTOR = WFC
ASW    BIASCORR  OMIT           2          CCDGAIN = 2
ASW    BIASCORR  OMIT           2          t_EXPDATE < 2002147.0  !Apr 27 2002 
!
ASW    BIASCORR  OMIT           3          DETECTOR = HRC
ASW    BIASCORR  OMIT           3          CCDGAIN = 2
ASW    BIASCORR  OMIT           3          t_EXPDATE < 2002077.0  !Mar 18 2002
!
ASW    BIASCORR  OMIT           4          DETECTOR = HRC
ASW    BIASCORR  OMIT           4          CCDGAIN = 4
ASW    BIASCORR  OMIT           4          t_EXPDATE < 2002088.0  !Mar 29 2002
!
ASW    DARKCORR  OMIT           1          DETECTOR = WFC
ASW    DARKCORR  OMIT           1          t_EXPDATE < 2002089.0  !Mar 30 2002
!
ASW    DARKCORR  OMIT           2          DETECTOR = HRC
ASW    DARKCORR  OMIT           2          t_EXPDATE < 2002085.0  !Mar 26 2002
!
ASW    DARKCORR  OMIT           3          DETECTOR = SBC
!
! PR 70895
ASW    PCTECORR  OMIT           1          TARGNAME = BIAS
ASW    PCTECORR  OMIT           2          TARGNAME = DARK
ASW    PCTECORR  PERFORM        3          DETECTOR = WFC
ASW    PCTECORR  PERFORM        3          SUBARRAY = F
ASW    PCTECORR  OMIT           4          T       =   T
!
ACS     CBLKSIZ    {BUFSIZE}    1          T       =   T
ACS     WFCMPRSD        F       1          BUFSIZE =   0
ACS     WFCMPRSD        T       2          T       =   T
ACS     PODPSFF         F       1          BUFLOST =   0
ACS     PODPSFF         T       2          T       =   T
!
! 43795_01
ACS     COMPTYP  	None    1  	  WFCMPRSD  =  F
!
ACS	DFLTFILE    N/A		1	   T        =  T
ACS     LFLTFILE    N/A         1          T        =  T
ACS     PHOTTAB     N/A         1          T        =  T
!
ACS	ASN_MTYP    EXP-CRJ	1	   ASN_MTYP =  CRSPLIT
ACS	ASN_MTYP    EXP-RPT     2	   ASN_MTYP =  REPEATOBS
!
! 49181 - adjustments for short ACS exposure times
ACS     INTTIME    0.1041       1   DETECTOR  =   HRC
ACS     INTTIME    0.1041       1   INTTIME   =   0.1
ACS     INTTIME    0.5079       2   DETECTOR  =   WFC
ACS     INTTIME    0.5079       2   INTTIME   =   0.5
ACS     INTTIME    0.6934       3   DETECTOR  =   WFC
ACS     INTTIME    0.6934       3   INTTIME   =   0.7
ACS     INTTIME    0.7955       4   DETECTOR  =   WFC
ACS     INTTIME    0.7955       4   INTTIME   =   0.8
!
! temp value for flagging ACS WFC exposures after SM4
!   (using just the year is enough, since WFC was only revived that
!    year following SM4)
ACS     t_WFCSM4   T            1   SS_DTCTR  =   ACS/WFC
ACS     t_WFCSM4   T            1   t_EXPDATE >   2009001.0
ACS     t_WFCSM4   F            2   T         =   T
!
! PR 63155  (pt1)
! turn off calibration for WFC "clamp & sample" mode after SM4
!
ACS      CALIBRAT      F       1   t_WFCSM4    = T
ACS      CALIBRAT      F       1   JWROTYPE    = Clamp
!
! 60890
! Fix post-SM4 ACS/WFC GAIN values in WFCGAIN[A-D] because
! after SM4 we will no longer have an accurate PDB conversion in 
! conv_discrete2 (and simplified rule execution with t_WFCSM4)
!
!INST 	NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE	VALUE
!----	--------  ----------  ----  --------  -------	-------
ACS      WFCGAINA      0.5     1   t_WFCSM4   =   T
ACS      WFCGAINA      0.5     1   WFCGAINA   =   4
!
ACS      WFCGAINA      1.4     2   t_WFCSM4   =   T
ACS      WFCGAINA      1.4     2   WFCGAINA   =   8
!
ACS      WFCGAINB      0.5     3   t_WFCSM4   =   T
ACS      WFCGAINB      0.5     3   WFCGAINB   =   4
!
ACS      WFCGAINB      1.4     4   t_WFCSM4   =   T
ACS      WFCGAINB      1.4     4   WFCGAINB   =   8
!
ACS      WFCGAINC      0.5     5   t_WFCSM4   =   T
ACS      WFCGAINC      0.5     5   WFCGAINC   =   4
!
ACS      WFCGAINC      1.4     6   t_WFCSM4   =   T
ACS      WFCGAINC      1.4     6   WFCGAINC   =   8
!
ACS      WFCGAIND      0.5     7   t_WFCSM4   =   T
ACS      WFCGAIND      0.5     7   WFCGAIND   =   4
!
ACS      WFCGAIND      1.4     8   t_WFCSM4   =   T
ACS      WFCGAIND      1.4     8   WFCGAIND   =   8
!
! PR 63155  (pt2, split from pt1 to make rule logic work properly)
! turn off calibration for WFC "half-speed" readout mode after SM4
!
ACS      CALIBRAT      F       1   t_WFCSM4    = T
ACS      CALIBRAT      F       1   JWROSPED    = Half
!
!---------------------------------------------------------------------------

!---------------------------------------------------------------------------
!
! STIS Universal Pattern Keyword Translations (OPR 38124)
!
! Each set of rules contains a "guard" test that prevents the rest of
! the rules from changing the keyword value if the old pattern keywords
! are not populated (hence the new pattern keywords must already contain
! values via the PMDB). PATTERN is used to test for this condition.
!
STI PATTERN1 {PATTERN1}        1 PATTERN = BLANK
STI PATTERN1 STIS-PERP-TO-SLIT 2 PATTERN = PERP-TO-SLIT
STI PATTERN1 STIS-ALONG-SLIT   3 PATTERN = ALONG-SLIT
STI PATTERN1 STIS-SPIRAL-DITH  4 PATTERN = SPIRAL-DITH
STI PATTERN1 STIS-BOX          5 PATTERN = BOX
!
STI P1_SHAPE {P1_SHAPE}        1 PATTERN = BLANK
STI P1_SHAPE SPIRAL            2 PATTERN = SPIRAL-DITH
STI P1_SHAPE PARALLELOGRAM     3 PATTERN = BOX
STI P1_SHAPE LINE              4       T = T
!
STI P1_PURPS {P1_PURPS}        1 PATTERN = BLANK
STI P1_PURPS DITHER            2       T = T
!
STI P1_NPTS  {P1_NPTS}         1 PATTERN = BLANK
STI P1_NPTS  {NUMPOS}         2 NUMPOS != BLANK
!
STI P1_PSPAC {P1_PSPAC}          1 PATTERN = BLANK
STI P1_PSPAC [.559*{BOXSCALE}/2] 2 PATTERN = BOX
STI P1_PSPAC [.559*{BOXSCALE}/2] 2 CONFIG  = ?UV-MAMA
STI P1_PSPAC [.559*{BOXSCALE}]   3 PATTERN = BOX
STI P1_PSPAC {STEPSIZE}          4 STEPSIZE != BLANK
!
STI P1_LSPAC {P1_LSPAC}          1 PATTERN = BLANK
STI P1_LSPAC {P1_PSPAC}          2 PATTERN = BOX
STI P1_LSPAC {P1_PSPAC}          2 P1_PSPAC != BLANK
!
STI P1_ANGLE {P1_ANGLE}          1 PATTERN = BLANK
STI P1_ANGLE 143.1               2 PATTERN = BOX
!
STI P1_FRAME {P1_FRAME}          1 PATTERN = BLANK
STI P1_FRAME POS-TARG            2       T = T
!
STI P1_ORINT {P1_ORINT}          1 PATTERN = BLANK
STI P1_ORINT 26.565              2 PATTERN = BOX
STI P1_ORINT 0                   3 PATTERN = SPIRAL-DITH
STI P1_ORINT 270                 4 PATTERN = ALONG-SLIT
STI P1_ORINT 270                 4 PATTDRC = MINUS
STI P1_ORINT 180                 5 PATTERN = PERP-TO-SLIT
STI P1_ORINT 180                 5 PATTDRC = MINUS
STI P1_ORINT 90                  6 PATTERN = ALONG-SLIT
STI P1_ORINT 0                   7       T = T
!
STI P1_CENTR {P1_CENTR}          1 PATTERN = BLANK
STI P1_CENTR NO                  2       T = T
!
! NICMOS Universal Pattern Keyword Translations (OPR 38124)
!
!
! Each set of rules contains a "guard" test that prevents the rest of
! the rules from changing the keyword value if the old pattern keywords
! are not populated (hence the new pattern keywords must already contain
! values via the PMDB). PATTERN is used to test for this condition.
!
NIC BKG_OFF  {BKG_OFF}           1 PATTERN = BLANK
NIC BKG_OFF  SAM                 2 PATT_OFF != FOM
!
NIC PATTERN1 {PATTERN1}          1 PATTERN = BLANK
NIC PATTERN1 NIC-XSTRIP-DITH     2 PATTERN = XSTRIP-DITH
NIC PATTERN1 NIC-XSTRIP-DITH     2 SS_PORNT  = DETECTOR
NIC PATTERN1 NIC-YSTRIP-DITH     3 PATTERN = YSTRIP-DITH
NIC PATTERN1 NIC-YSTRIP-DITH     3 SS_PORNT  = DETECTOR
NIC PATTERN1 NIC-SPIRAL-DITH     4 PATTERN = SPIRAL-DITH
NIC PATTERN1 NIC-SPIRAL-DITH     4 SS_PORNT  = DETECTOR
NIC PATTERN1 NIC-SQUARE-WAVE-DITH 5 PATTERN = SQUARE-WAVE-DITH
NIC PATTERN1 NIC-ONE-CHOP        6 PATTERN = ONE-CHOP
NIC PATTERN1 NIC-ONE-CHOP        6 SS_PORNT  = DETECTOR
NIC PATTERN1 NIC-TWO-CHOP        7 PATTERN = TWO-CHOP
NIC PATTERN1 NIC-TWO-CHOP        7 SS_PORNT  = DETECTOR
NIC PATTERN1 NIC-XSTRIP-DITH-CHOP 8 PATTERN = XSTRIP-DITH-CHOP
NIC PATTERN1 NIC-XSTRIP-DITH-CHOP 8 SS_PORNT  = DETECTOR
NIC PATTERN1 NIC-YSTRIP-DITH-CHOP 9 PATTERN = YSTRIP-DITH-CHOP
NIC PATTERN1 NIC-YSTRIP-DITH-CHOP 9 SS_PORNT  = DETECTOR
NIC PATTERN1 NIC-SPIRAL-DITH-CHOP 10 PATTERN = SPIRAL-DITH-CHOP
NIC PATTERN1 NIC-SPIRAL-DITH-CHOP 10 SS_PORNT  = DETECTOR
NIC PATTERN1 NIC-MAP             11 PATTERN = XSTRIP-DITH
NIC PATTERN1 NIC-MAP             12 PATTERN = YSTRIP-DITH
NIC PATTERN1 NIC-SPIRAL-MAP      13 PATTERN = SPIRAL-DITH
NIC PATTERN1 NIC-SKY-ONE-CHOP    14 PATTERN = ONE-CHOP
NIC PATTERN1 NIC-SKY-TWO-CHOP    15 PATTERN = TWO-CHOP
NIC PATTERN1 NIC-SKY-XSTRIP-DITH-CHOP 16 PATTERN = XSTRIP-DITH-CHOP
NIC PATTERN1 NIC-SKY-XSTRIP-DITH-CHOP 17 PATTERN = YSTRIP-DITH-CHOP
NIC PATTERN1 NIC-SKY-SPIRAL-DITH-CHOP 18 PATTERN = SPIRAL-DITH-CHOP
!
NIC P1_SHAPE {P1_SHAPE}          1 PATTERN = BLANK
NIC P1_SHAPE SPIRAL              2 PATTERN = SPIRAL-DITH
NIC P1_SHAPE SPIRAL              3 PATTERN = SPIRAL-DITH-CHOP
NIC P1_SHAPE PARALLELOGRAM       4 PATTERN = SQUARE-WAVE-DITH
NIC P1_SHAPE LINE                5        T = T
!
NIC P1_PURPS {P1_PURPS}          1 PATTERN = BLANK
NIC P1_PURPS BACKGROUND          2 PATTERN = ONE-CHOP
NIC P1_PURPS BACKGROUND          3 PATTERN = TWO-CHOP
NIC P1_PURPS DITHER              4 SS_PORNT  = DETECTOR
NIC P1_PURPS BACKGROUND          5 PATTERN = XSTRIP-DITH-CHOP
NIC P1_PURPS BACKGROUND          6 PATTERN = YSTRIP-DITH-CHOP
NIC P1_PURPS BACKGROUND          7 PATTERN = SPIRAL-DITH-CHOP
NIC P1_PURPS MOSAIC              8        T = T
!
NIC P1_NPTS  {P1_NPTS}             1 PATTERN = BLANK
NIC P1_NPTS  [CEIL({NUMPOS}/4.0)] 2 PATTERN = TWO-CHOP
NIC P1_NPTS  [CEIL({NUMPOS}/4.0)] 2 NUMPOS != BLANK
NIC P1_NPTS  [CEIL({NUMPOS}/2.0)] 3 PATTERN = ONE-CHOP
NIC P1_NPTS  [CEIL({NUMPOS}/2.0)] 3 NUMPOS != BLANK
NIC P1_NPTS  [CEIL({NUMPOS}/2.0)] 4 PATTERN = XSTRIP-DITH-CHOP
NIC P1_NPTS  [CEIL({NUMPOS}/2.0)] 4 NUMPOS != BLANK
NIC P1_NPTS  [CEIL({NUMPOS}/2.0)] 5 PATTERN = YSTRIP-DITH-CHOP
NIC P1_NPTS  [CEIL({NUMPOS}/2.0)] 5 NUMPOS != BLANK
NIC P1_NPTS  [CEIL({NUMPOS}/2.0)] 6 PATTERN = SPIRAL-DITH-CHOP
NIC P1_NPTS  [CEIL({NUMPOS}/2.0)] 6 NUMPOS != BLANK
NIC P1_NPTS  {NUMPOS}             7 NUMPOS != BLANK
!
NIC P1_PSPAC {P1_PSPAC}            1 PATTERN = BLANK
NIC P1_PSPAC 0                     2 PATTERN = ONE-CHOP
NIC P1_PSPAC 0                     3 PATTERN = TWO-CHOP
NIC P1_PSPAC {DITHSIZE}            4 DITHSIZE != BLANK
!
NIC P1_LSPAC {P1_LSPAC}            1 PATTERN = BLANK
NIC P1_LSPAC {DITHSIZE}            2 PATTERN = SQUARE-WAVE-DITH
NIC P1_LSPAC {DITHSIZE}            2 DITHSIZE != BLANK
!
NIC P1_ANGLE {P1_ANGLE}            1 PATTERN = BLANK
NIC P1_ANGLE 270                   2 PATTERN = SQUARE-WAVE-DITH
!
NIC P1_FRAME {P1_FRAME}            1 PATTERN = BLANK
NIC P1_FRAME POS-TARG              2 SS_PORNT  = DETECTOR
NIC P1_FRAME CELESTIAL             3        T = T
!
NIC P1_ORINT {P1_ORINT}            1 PATTERN = BLANK
NIC P1_ORINT 0                     2 PATTERN = ONE-CHOP
NIC P1_ORINT 0                     3 PATTERN = TWO-CHOP
NIC P1_ORINT 90                    4 PATTERN = YSTRIP-DITH
NIC P1_ORINT 90                    4 PATT_OFF  = FOM
NIC P1_ORINT 90                    5 PATTERN = YSTRIP-DITH-CHOP
NIC P1_ORINT 90                    5 PATT_OFF  = FOM
NIC P1_ORINT 90                    6 PATTERN = SQUARE-WAVE-DITH
NIC P1_ORINT 90                    6 PATT_OFF  = FOM
NIC P1_ORINT 0                     7 PATT_OFF  = FOM
NIC P1_ORINT 270                   8 PATTERN = YSTRIP-DITH
NIC P1_ORINT 270                   8 SS_PORNT  = DETECTOR
NIC P1_ORINT 270                   9 PATTERN = YSTRIP-DITH-CHOP
NIC P1_ORINT 270                   9 SS_PORNT  = DETECTOR
NIC P1_ORINT 270                   10 PATTERN = SQUARE-WAVE-DITH
NIC P1_ORINT 270                   10 SS_PORNT  = DETECTOR
NIC P1_ORINT 180                   11 SS_PORNT  = DETECTOR
NIC P1_ORINT {SS_PORNT}             12 SS_PORNT != BLANK
!
NIC P1_CENTR {P1_CENTR}            1 PATTERN = BLANK
NIC P1_CENTR NO                    2        T = T
!
NIC PATTERN2 {PATTERN2}            1 PATTERN = BLANK
NIC PATTERN2 {PATTERN1}            2 PATTERN = ONE-CHOP
NIC PATTERN2 {PATTERN1}            2 PATTERN1 != BLANK
NIC PATTERN2 {PATTERN1}            3 PATTERN = TWO-CHOP
NIC PATTERN2 {PATTERN1}            3 PATTERN1 != BLANK
NIC PATTERN2 {PATTERN1}            4 PATTERN = XSTRIP-DITH-CHOP
NIC PATTERN2 {PATTERN1}            4 PATTERN1 != BLANK
NIC PATTERN2 {PATTERN1}            5 PATTERN = YSTRIP-DITH-CHOP
NIC PATTERN2 {PATTERN1}            5 PATTERN1 != BLANK
NIC PATTERN2 {PATTERN1}            6 PATTERN = SPIRAL-DITH-CHOP
NIC PATTERN2 {PATTERN1}            6 PATTERN1 != BLANK
!
NIC P2_SHAPE {P2_SHAPE}            1 PATTERN = BLANK
NIC P2_SHAPE PARALLELOGRAM         2 PATTERN = TWO-CHOP
NIC P2_SHAPE LINE                  3 PATTERN = ONE-CHOP
NIC P2_SHAPE LINE                  4 PATTERN = XSTRIP-DITH-CHOP
NIC P2_SHAPE LINE                  5 PATTERN = YSTRIP-DITH-CHOP
NIC P2_SHAPE LINE                  6 PATTERN = SPIRAL-DITH-CHOP
!
NIC P2_PURPS {P2_PURPS}            1 PATTERN = BLANK
NIC P2_PURPS BACKGROUND            2 PATTERN = ONE-CHOP
NIC P2_PURPS BACKGROUND            3 PATTERN = TWO-CHOP
NIC P2_PURPS BACKGROUND            4 PATTERN = XSTRIP-DITH-CHOP
NIC P2_PURPS BACKGROUND            5 PATTERN = YSTRIP-DITH-CHOP
NIC P2_PURPS BACKGROUND            6 PATTERN = SPIRAL-DITH-CHOP
!
NIC P2_NPTS  {P2_NPTS}             1 PATTERN = BLANK
NIC P2_NPTS  4                     2 PATTERN = TWO-CHOP
NIC P2_NPTS  2                     3 PATTERN = ONE-CHOP
NIC P2_NPTS  2                     4 PATTERN = XSTRIP-DITH-CHOP
NIC P2_NPTS  2                     5 PATTERN = YSTRIP-DITH-CHOP
NIC P2_NPTS  2                     6 PATTERN = SPIRAL-DITH-CHOP
!
NIC P2_PSPAC {P2_PSPAC}            1 PATTERN = BLANK
NIC P2_PSPAC {CHOPSIZE}            2 CHOPSIZE != BLANK
!
NIC P2_LSPAC {P2_LSPAC}            1 PATTERN = BLANK
NIC P2_LSPAC {CHOPSIZE}            2 PATTERN = TWO-CHOP
NIC P2_LSPAC {CHOPSIZE}            2 CHOPSIZE != BLANK
!
NIC P2_ANGLE {P2_ANGLE}            1 PATTERN = BLANK
NIC P2_ANGLE 0                     2 PATTERN = TWO-CHOP
!
NIC P2_FRAME {P2_FRAME}            1 PATTERN = BLANK
NIC P2_FRAME {P1_FRAME}            2 PATTERN = ONE-CHOP
NIC P2_FRAME {P1_FRAME}            2 P1_FRAME != BLANK
NIC P2_FRAME {P1_FRAME}            3 PATTERN = TWO-CHOP
NIC P2_FRAME {P1_FRAME}            3 P1_FRAME != BLANK
NIC P2_FRAME {P1_FRAME}            4 PATTERN = XSTRIP-DITH-CHOP
NIC P2_FRAME {P1_FRAME}            4 P1_FRAME != BLANK
NIC P2_FRAME {P1_FRAME}            5 PATTERN = YSTRIP-DITH-CHOP
NIC P2_FRAME {P1_FRAME}            5 P1_FRAME != BLANK
NIC P2_FRAME {P1_FRAME}            6 PATTERN = SPIRAL-DITH-CHOP
NIC P2_FRAME {P1_FRAME}            6 P1_FRAME != BLANK
!
NIC P2_ORINT {P2_ORINT}            1 PATTERN = BLANK
NIC P2_ORINT 0                     2 PATTERN = ONE-CHOP
NIC P2_ORINT 0                     2 PATT_OFF  = FOM
NIC P2_ORINT 0                     3 PATTERN = TWO-CHOP
NIC P2_ORINT 0                     3 PATT_OFF  = FOM
NIC P2_ORINT 180                   4 PATTERN = ONE-CHOP
NIC P2_ORINT 180                   4 SS_PORNT  = DETECTOR
NIC P2_ORINT 180                   5 PATTERN = TWO-CHOP
NIC P2_ORINT 180                   5 SS_PORNT  = DETECTOR
NIC P2_ORINT {SS_PORNT}             6 PATTERN = ONE-CHOP
NIC P2_ORINT {SS_PORNT}             6 SS_PORNT != BLANK
NIC P2_ORINT {SS_PORNT}             7 PATTERN = TWO-CHOP
NIC P2_ORINT {SS_PORNT}             7 SS_PORNT != BLANK
NIC P2_ORINT [({P1_ORINT}+90)%360] 8 PATTERN = XSTRIP-DITH-CHOP
NIC P2_ORINT [({P1_ORINT}+90)%360] 8 P1_ORINT != BLANK
NIC P2_ORINT [({P1_ORINT}-90)%360] 9 PATTERN = YSTRIP-DITH-CHOP
NIC P2_ORINT [({P1_ORINT}-90)%360] 9 P1_ORINT != BLANK
NIC P2_ORINT {P1_ORINT}            10 PATTERN = SPIRAL-DITH-CHOP
NIC P2_ORINT {P1_ORINT}            10 P1_ORINT != BLANK
!
NIC P2_CENTR {P2_CENTR}            1 PATTERN = BLANK
NIC P2_CENTR NO                    2 PATTERN = ONE-CHOP
NIC P2_CENTR NO                    3 PATTERN = TWO-CHOP
NIC P2_CENTR NO                    4 PATTERN = XSTRIP-DITH-CHOP
NIC P2_CENTR NO                    5 PATTERN = YSTRIP-DITH-CHOP
NIC P2_CENTR NO                    6 PATTERN = SPIRAL-DITH-CHOP
!
NIC	SS_PORNT {PRDORIEN}	1	SS_PORNT  = 	FOM
NIC	SS_PORNT {PRDORIEN}	2	SS_PORNT  = 	DETECTOR
NIC	PORIENT  {SS_PORNT}	1	T         =	T
!
! PR 60595   Set BEPCORR if CAMERA = 2 and INSTRUME=NICMOS
!
NIC     BEPCORR  PERFORM        1       INSTRUME   =    NICMOS
NIC     BEPCORR  PERFORM        1       CAMERA     =    2
NIC     BEPCORR  OMIT           2       T          =    T
!
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
WF3	APERTURE {APER_1}	1	T	 =	T
!
! strip off leading "Gain" string across all extensions
WF3     UVGAINA(*)  {UVGAINA(4:)}  1       UVOFFA   =      {UVOFFA}
WF3     UVGAINB(*)  {UVGAINB(4:)}  1       UVOFFA   =      {UVOFFA}
WF3     UVGAINC(*)  {UVGAINC(4:)}  1       UVOFFA   =      {UVOFFA}
WF3     UVGAIND(*)  {UVGAIND(4:)}  1       UVOFFA   =      {UVOFFA}
!
WF3	CCDGAIN  {IRGAIN}	1	DETECTOR =      IR
WF3	CCDGAIN  {UVGAINA}	2	DETECTOR = 	UVIS
WF3     SS_SPLIT        1       1      SS_SPLIT  =      NO
WF3	CRSPLIT  {SS_SPLIT}     1	T	 =	T
!
WF3     NRPTEXP    {SS_RPT}     1          T  =   T
!
WF3	NSAMP	 {IRNREAD}	1    DETECTOR    =      IR
WF3     OBSMODE  {OPMODE}       1    OPMODE     !=      BLANK
WF3     OBSMODE  ACCUM          2    DETECTOR    =      UVIS
WF3	OBSMODE  MULTIACCUM	3    DETECTOR    =      IR
WF3	POSTARG1 {APEROFFX}	1	T	 = 	T
WF3	POSTARG2 {APEROFFY}	1	T	 =  	T
!
! PR 57553 needs to keep this in for TV data (no support sched)
WF3T    PRIMESI WFC3    1       T       =       T
!
! PR 57218
! Relabel some WF3 rules WF3T or W3CT, indicating override values for
! thermal vac data that do NOT have support schecules, so they can be
! skipped when used in a pipeline that expects support schedules
!
! TV settings
WF3T	LTV1	  25.0		1   DETECTOR  =     UVIS
WF3T	LTV1	  25.0		1   IMGSETUP  !=    Subarray
WF3T    LTV1	  5.0		2   DETECTOR  =     IR
WF3T	LTV1(1)	  25.0		1   DETECTOR  =     UVIS
WF3T	LTV1(1)	  25.0		1   IMGSETUP  !=    Subarray
!
! TV settings
WF3T    LTV2	  5.0		1   DETECTOR  =     IR
WF3T	LTV2	  19.0		2   DETECTOR  =     UVIS
WF3T	LTV2	  19.0		2   IMGSETUP  !=    Subarray
!
WF3     CCDOFSTA  {UVOFFA}      1   DETECTOR  =     UVIS
WF3     CCDOFSTB  {UVOFFB}      1   DETECTOR  =     UVIS
WF3     CCDOFSTC  {UVOFFC}      1   DETECTOR  =     UVIS
WF3     CCDOFSTD  {UVOFFD}      1   DETECTOR  =     UVIS
!
! TV settings
WF3T	CENTERA1  [YCORNER+NUMCOLS/2] 1 	T =	T
WF3T	CENTERA2  [XCORNER+NUMROWS/2] 1 	T =	T
!
WF3     SUBARRAY   T            1    DETECTOR    =      IR
WF3     SUBARRAY   T            1    NUMROWS     <      1024
WF3     SUBARRAY   T            2    IMGSETUP    =      Subarray
WF3     SUBARRAY   F            3       T        =      T
! 
! PR 57550
WF3     SUBTYPE   {SETUPIR}     1       T        =      T
!
WF3     SCLAMP   TUNGSTEN_LAMP1 1    LAMP1       =      on
WF3     SCLAMP   TUNGSTEN_LAMP2 2    LAMP2       =      on
WF3     SCLAMP   TUNGSTEN_LAMP3 3    LAMP3       =      on
WF3     SCLAMP   TUNGSTEN_LAMP4 4    LAMP4       =      on
WF3     SCLAMP   DEUTERIUM      5    DEUTLAMP    =      on
WF3     SCLAMP   NONE           6       T        =      T
!
! PR 58905 Capitalize values for SQL query
! Separation from above SUBTYPE rule is important
WF3     SUBTYPE   FULLIMAG      1   SUBTYPE      =      FullImag
WF3     SUBTYPE   SQ64SUB       2   SUBTYPE      =      SQ64Sub
WF3     SUBTYPE   SQ128SUB      3   SUBTYPE      =      SQ128Sub
WF3     SUBTYPE   SQ256SUB      4   SUBTYPE      =      SQ256Sub
WF3     SUBTYPE   SQ512SUB      5   SUBTYPE      =      SQ512Sub
WF3     SUBTYPE   ENGTEST       6   SUBTYPE      =      EngTest
WF3     SUBTYPE   INVALID       7   SUBTYPE      =      Invalid
WF3     SUBTYPE   NOEXPO        8   SUBTYPE      =      NoExpo
!
! PR 54041
! The silly NOOP keyword assignments in the following FILTER rules are
! required in order to cause evaluation for that particular group of rules.
! This is due to the rules engine using a change in the 1st two columns to 
! decide where a new rule group begins, and the continuous "WF3 FILTER" 
! values for those columns were resulting in one giant rule set which generated
! incorrect results.
!
WF3     FILTER   {IRFSMID}      1    DETECTOR    =      IR
WF3	FILTER	 {UVF01POS}	2    UVF01POS   !=      CLEAR?
WF3	FILTER	 {UVF02POS}	3    UVF02POS   !=      CLEAR?
WF3	FILTER	 {UVF03POS}	4    UVF03POS   !=      CLEAR?
WF3	FILTER	 {UVF04POS}	5    UVF04POS   !=      CLEAR?
WF3	FILTER	 {UVF05POS}	6    UVF05POS   !=      CLEAR?
WF3	FILTER	 {UVF06POS}	7    UVF06POS   !=      CLEAR?
WF3	FILTER	 {UVF07POS}	8    UVF07POS   !=      CLEAR?
WF3	FILTER	 {UVF08POS}	9    UVF08POS   !=      CLEAR?
WF3	FILTER	 {UVF09POS}	10   UVF09POS   !=      CLEAR?
WF3	FILTER	 {UVF10POS}	11   UVF10POS   !=      CLEAR?
WF3	FILTER	 {UVF11POS}	12   UVF11POS   !=      CLEAR?
WF3	FILTER	 {UVF12POS}	13   UVF12POS   !=      CLEAR?
WF3	FILTER	 CLEAR		14	T	 = 	T   
WF3	t_NOOP   ENDIF          1	T	 =	T
!
! PR 50410
! PR 54596
!
WF3     FILTER     FQ674N       1    FILTER      =      QUAD
WF3     FILTER     FQ674N       1    CCDAMP      =      B
WF3     FILTER     FQ575N       2    FILTER      =      QUAD
WF3     FILTER     FQ575N       2    CCDAMP      =      C
WF3     FILTER     FQ672N       3    FILTER      =      QUAD
WF3     FILTER     FQ672N       3    CCDAMP      =      D
WF3     FILTER     FQ508N       4    FILTER      =      QUAD
WF3	t_NOOP      ENDIF       1	T	 =	T
!
WF3     FILTER     FQ378N       1    FILTER      =      QUAD1
WF3     FILTER     FQ378N       1    CCDAMP      =      B
WF3     FILTER     FQ232N       2    FILTER      =      QUAD1
WF3     FILTER     FQ232N       2    CCDAMP      =      C
WF3     FILTER     FQ243N       3    FILTER      =      QUAD1
WF3     FILTER     FQ243N       3    CCDAMP      =      D
WF3     FILTER     FQ437N       4    FILTER      =      QUAD1
WF3	t_NOOP      ENDIF       1	T	 =	T
!
WF3     FILTER     FQ492N       1    FILTER      =      QUAD2
WF3     FILTER     FQ492N       1    CCDAMP      =      B
WF3     FILTER     FQ422M       2    FILTER      =      QUAD2
WF3     FILTER     FQ422M       2    CCDAMP      =      C
WF3     FILTER     FQ436N       3    FILTER      =      QUAD2
WF3     FILTER     FQ436N       3    CCDAMP      =      D
WF3     FILTER     FQ387N       4    FILTER      =      QUAD2
WF3	t_NOOP      ENDIF       1	T	 =	T
!
WF3     FILTER     FQ937N       1    FILTER      =      QUAD3
WF3     FILTER     FQ937N       1    CCDAMP      =      B
WF3     FILTER     FQ906N       2    FILTER      =      QUAD3
WF3     FILTER     FQ906N       2    CCDAMP      =      C
WF3     FILTER     FQ924N       3    FILTER      =      QUAD3
WF3     FILTER     FQ924N       3    CCDAMP      =      D
WF3     FILTER     FQ889N       4    FILTER      =      QUAD3
WF3	t_NOOP      ENDIF       1	T	 =	T
!
WF3     FILTER     FQ750N       1    FILTER      =      QUAD4
WF3     FILTER     FQ750N       1    CCDAMP      =      B
WF3     FILTER     FQ634N       2    FILTER      =      QUAD4
WF3     FILTER     FQ634N       2    CCDAMP      =      C
WF3     FILTER     FQ727N       3    FILTER      =      QUAD4
WF3     FILTER     FQ727N       3    CCDAMP      =      D
WF3     FILTER     FQ619N       4    FILTER      =      QUAD4
!
! PR 56549
WF3     OBSTYPE    SPECTROSCOPIC 1    FILTER   =  G102
WF3     OBSTYPE    SPECTROSCOPIC 2    FILTER   =  G141
WF3     OBSTYPE    SPECTROSCOPIC 3    FILTER   =  G280
WF3     OBSTYPE    IMAGING       4    T        =  T
!
! PR 62405 Move to AFTER FILTER so Rules w/BLANK work!
WF3	IMAGETYP FLAT		1    SCLAMP	!=	NONE
WF3	IMAGETYP BIAS		2    TARGNAME    =	BIAS
WF3	IMAGETYP DARK		3    TARGNAME	 =	DARK
! PR 62405  Add rule for IR DARK
WF3     IMAGETYP DARK           4    DETECTOR    =      IR
WF3     IMAGETYP DARK           4    FILTER      =      ?BLANK
WF3	IMAGETYP EXT		5 	T	 = 	T
!
! PR 60130
! Make the ISHRBPOS values float to get numeric comparison
WF3     SHUTRPOS   A                 1   DETECTOR  = UVIS
WF3     SHUTRPOS   A                 1   ISHRBPOS  >   800.0
WF3     SHUTRPOS   A                 1   ISHRBPOS  <  2100.0
WF3     SHUTRPOS   B                 2   DETECTOR  = UVIS
WF3     SHUTRPOS   B                 2   ISHRBPOS  > 17200.0
WF3     SHUTRPOS   B                 2   ISHRBPOS  < 18500.0
WF3     SHUTRPOS   A                 3   DETECTOR  = UVIS
WF3     SHUTRPOS   A                 3   ISHRBPOS  > 33600.0
WF3     SHUTRPOS   A                 3   ISHRBPOS  < 34900.0
WF3     SHUTRPOS   B                 4   DETECTOR  = UVIS
WF3     SHUTRPOS   B                 4   ISHRBPOS  > 50000.0
WF3     SHUTRPOS   B                 4   ISHRBPOS  < 51300.0
!
! Use this block to separate the two SHUTRPOS blocks
WF3     FLASHSTA   "NOT PERFORMED"   1   FLSHSTAT  = Success
WF3     FLASHSTA   "NOT PERFORMED"   1   FLSHABRT  = --
WF3     FLASHSTA   "NOT PERFORMED"   1   FLSHCUR   = ZeroCur
WF3     FLASHSTA   ABORTED           2   FLSHSTAT  = Failure
WF3     FLASHSTA   ABORTED           2   FLSHABRT  = Aborted
WF3     FLASHSTA   ABORTED           2   FLSHERR  != NoError
WF3     FLASHSTA   SUCCESSFUL        3   T         = T
!
! flip the SHUTRPOS for normal exposures (not bias or dark)
WF3    SHUTRPOS    A                 1   CCDSETUP  = normal
WF3    SHUTRPOS    A                 1   SHUTRPOS  = B
WF3    SHUTRPOS    B                 2   CCDSETUP  = normal
WF3    SHUTRPOS    B                 2   SHUTRPOS  = A
!
! PR 65349 WFC3 INTTIME for UVIS of 0.5s and 0.7s
WF3    INTTIME     0.480             1   DETECTOR  = UVIS
WF3    INTTIME     0.480             1   IMAGETYP != DARK
WF3    INTTIME     0.480             1   INTTIME   = 0.5
WF3    INTTIME     0.695             2   DETECTOR  = UVIS
WF3    INTTIME     0.695             2   IMAGETYP != DARK
WF3    INTTIME     0.695             2   INTTIME   = 0.7
!
! TV settings
WF3T    TARGNAME  Thermal_Vac   1       T        =      T
WF3T    PROPOSID  100138        1       T        =      T
WF3T    PR_INV_L  MacKenty      1       T        =      T
WF3T    PR_INV_F  John          1       T        =      T
WF3T    FGSLOCK   NONE          1       T        =      T
!
! TV keyword overrides
!
WF3T    NDFLTCOR  -1.0            1    NDFLTCOR    =      UNDEFINED?
WF3T    OSQTHLMP  -1.0            1    OSQTHLMP    =      UNDEFINED?
WF3T    OSLAMBDA  -1.0            1    OSLAMBDA    =      UNDEFINED?
WF3T    OSBANDW   -1.0            1    OSBANDW     =      UNDEFINED?
WF3T    OSLD810   -1.0            1    OSLD810     =      UNDEFINED?
WF3T    OSLD1064  -1.0            1    OSLD1064    =      UNDEFINED?
WF3T    OSLD1310  -1.0            1    OSLD1310    =      UNDEFINED?
WF3T    OSETFOC   -1.0            1    OSETFOC     =      UNDEFINED?
WF3T    OSFLUX    -1.0            1    OSFLUX      =      UNDEFINED?
WF3T    OSSTABLM  -1.0            1    OSSTABLM    =      UNDEFINED?
WF3T    OSSTABLA  -1.0            1    OSSTABLA    =      UNDEFINED?
WF3T    OSHENEDB  -1.0            1    OSHENEDB    =      UNDEFINED?
WF3T    OSPT_V2   -1.0            1    OSPT_V2     =      UNDEFINED?
WF3T    OSPT_V3   -1.0            1    OSPT_V3     =      UNDEFINED?
WF3T    OSPT_V1   -1.0            1    OSPT_V1     =      UNDEFINED?
WF3T    OSPT_V2A  -1.0            1    OSPT_V2A    =      UNDEFINED?
WF3T    OSPT_V3A  -1.0            1    OSPT_V3A    =      UNDEFINED?
WF3T    OSOA_V2   -1.0            1    OSOA_V2     =      UNDEFINED?
WF3T    OSOA_V3   -1.0            1    OSOA_V3     =      UNDEFINED?
WF3T    OSOA_V2A  -1.0            1    OSOA_V2A    =      UNDEFINED?
WF3T    OSOA_V3A  -1.0            1    OSOA_V3A    =      UNDEFINED?
WF3T    OSXELMP   -1.0            1    OSXELMP     =      UNDEFINED?
!
! TV settings
WF3T    OSMRMODE   UNDEFINED      1    OSMRMODE = UNDEFINED?
WF3T    DETECTID   UNDEFINED      1    DETECTID = UNDEFINED?
WF3T    OSCALFLE   UNDEFINED      1    OSCALFLE = UNDEFINED?
WF3T    OSDETCTR   UNDEFINED      1    OSDETCTR = UNDEFINED?
WF3T    OSDSHTR    UNDEFINED      1    OSDSHTR  = UNDEFINED?
WF3T    OSET       UNDEFINED      1    OSET     = UNDEFINED?
WF3T    OSFIBRE    UNDEFINED      1    OSFIBRE  = UNDEFINED?
WF3T    OSFILT0    UNDEFINED      1    OSFILT0  = UNDEFINED?
WF3T    OSFILT1    UNDEFINED      1    OSFILT1  = UNDEFINED?
WF3T    OSFILT2    UNDEFINED      1    OSFILT2  = UNDEFINED?
WF3T    OSFSHTR    UNDEFINED      1    OSFSHTR  = UNDEFINED?
WF3T    OSHENE     UNDEFINED      1    OSHENE   = UNDEFINED?
WF3T    OSLAMP     UNDEFINED      1    OSLAMP   = UNDEFINED?
WF3T    OSPT       UNDEFINED      1    OSPT     = UNDEFINED?
WF3T    OSSANITY   UNDEFINED      1    OSSANITY = UNDEFINED?
WF3T    OSSWMIRR   UNDEFINED      1    OSSWMIRR = UNDEFINED?
WF3T    OSWVFRNT   UNDEFINED      1    OSWVFRMT = UNDEFINED?
!
! thervac request for MULSEQ Macro Activation Request numbers (MARs) (9/1/2004)
!
WF3T    SAMP_SEQ    MIF600      1          TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    MIF600      1          ILASTNRM(1) = 586
WF3T    SAMP_SEQ    MIF900      2          TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    MIF900      2          ILASTNRM(1) = 587
WF3T    SAMP_SEQ    MIF1200     3          TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    MIF1200     3          ILASTNRM(1) = 588
WF3T    SAMP_SEQ    MIF1500     4          TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    MIF1500     4          ILASTNRM(1) = 589
WF3T    SAMP_SEQ    RAPID       5          TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    RAPID       5          ILASTNRM(1) = 590
WF3T    SAMP_SEQ    SPARS10     6          TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    SPARS10     6          ILASTNRM(1) = 591
WF3T    SAMP_SEQ    SPARS25     7          TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    SPARS25     7          ILASTNRM(1) = 592
WF3T    SAMP_SEQ    SPARS50     8          TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    SPARS50     8          ILASTNRM(1) = 593
WF3T    SAMP_SEQ    SPARS100    9          TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    SPARS100    9          ILASTNRM(1) = 594
WF3T    SAMP_SEQ    SPARS200    10         TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    SPARS200    10         ILASTNRM(1) = 595
WF3T    SAMP_SEQ    STEP25      11         TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    STEP25      11         ILASTNRM(1) = 597
WF3T    SAMP_SEQ    STEP50      12         TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    STEP50      12         ILASTNRM(1) = 598
WF3T    SAMP_SEQ    STEP100     13         TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    STEP100     13         ILASTNRM(1) = 599
WF3T    SAMP_SEQ    STEP200     14         TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    STEP200     14         ILASTNRM(1) = 600
WF3T    SAMP_SEQ    STEP400     15         TARGNAME = "Thermal_Vac"
WF3T    SAMP_SEQ    STEP400     15         ILASTNRM(1) = 601
WF3T    SAMP_SEQ    UNKNOWN     16         TARGNAME = "Thermal_Vac"
!
! TV setting
WF3T    OSNDCORR    {NDFLTCOR}   1         T        =  T
!
! TV setting
! set default value when odd wavelength value is seen (else catalog population
!   doesn't work)
WF3T    OSLAMBDA    -1.0         1         OSLAMBDA = "G1:0.000 G2:0.000"
!
! WFC3 Calibration Settings
!
W3C	t_FLASH    T		1    TARGNAME	 =	DARK
W3C	t_FLASH    T		1    FLASHDUR	 >	[0.0+0.001]
W3C	t_FLASH    F		2	T	 =	T
!
! The post-flash calibration step can be omitted when the post flash was
! not done, and also for post-flash calibration data
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    FLSHCORR  OMIT           1   	T = T
!
! PR 71240
W3C     FLSHCORR  OMIT           1      FLASHSTA = "NOT PERFORMED"
W3C     FLSHCORR  OMIT           2      FLASHSTA = "ABORTED"
W3C     FLSHCORR  OMIT           3      t_FLASH  = T
W3C     FLSHCORR  PERFORM        4      T        = T
!
!>>> turn on (i.e. set to PERFORM always) for TV
W3CT    DQICORR    PERFORM      1          T = T
! PR 62844
W3C     DQICORR    OMIT         1          CTEIMAGE = FPR
W3C     DQICORR    OMIT         2          CTEIMAGE = EPER
W3C     DQICORR    OMIT         3          OBSMODE = ACQ
W3C     DQICORR    PERFORM      4          T  =   T
!
W3CT    ATODCORR   OMIT         1          T  =   T
W3C     ATODCORR   OMIT         1          T  =   T
!
W3CT    BLEVCORR   {DQICORR}    1          T  =   T
W3C     BLEVCORR   {DQICORR}    1          T  =   T
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    BIASCORR   OMIT         1          T = T
!
W3C     BIASCORR   OMIT         1          TARGNAME = BIAS
W3C     BIASCORR   {DQICORR}    2          T  =   T
!
! omit the dark correction for true darks (flash duration = 0)
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    DARKCORR  OMIT              1   T = T
!
W3C     DARKCORR  OMIT              1   TARGNAME = DARK
W3C     DARKCORR  OMIT              1   FLASHDUR < [0.0+0.0001]
W3C     DARKCORR  OMIT              2   FILTER   = ?BLANK
W3C     DARKCORR  {BIASCORR}        3   T        =   T
!
! omit the shutter shading correction for post-flash calibration data
!
W3CT    SHADCORR   OMIT         1          T  =   T
W3C     SHADCORR   OMIT         1          T  =   T
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    RPTCORR    OMIT      1          T = T
! PR 62844 modified by PR 71070
W3C     RPTCORR    PERFORM      1          NRPTEXP > 1
W3C     RPTCORR    OMIT         2          T  =   T
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    FLATCORR   OMIT         1          T = T
! PR 61453 Turn FLATCORR on for Grism obs
W3C     FLATCORR   OMIT         1          SCLAMP  != NONE
W3C     FLATCORR   OMIT         2          FILTER  =  ?BLANK
W3C     FLATCORR   OMIT         3          TARGNAME = NONE
W3C     FLATCORR   OMIT         4          TARGNAME = DARK
W3C     FLATCORR   OMIT         5          TARGNAME = EARTH?
W3C     FLATCORR   {DARKCORR}   6          T  =   T
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    ZSIGCORR   OMIT         1          T  =   T
! PR 62746 Have ZSIGCORR follow DARKCORR
W3C     ZSIGCORR   {DARKCORR}   1          T  =   T
!
W3C     ZOFFCORR   PERFORM      1          T  =   T
!
!>>> turn off (i.e. set to OMIT always) for TV
!    happens by default because DARKCORR is set to OMIT
W3CT    NLINCORR   {DARKCORR}   1          T  =   T
W3C     NLINCORR   PERFORM      1          T  =   T
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    CRCORR     OMIT         1          T = T
! PR 62844
W3C     CRCORR     PERFORM      1          DETECTOR = IR
W3C     CRCORR     OMIT         2          CRSPLIT < 2
W3C     CRCORR     {BLEVCORR}   3          T  =   T
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    UNITCORR   OMIT         1          T = T
! PR 68036 - change UNITCORR to same value as CRCORR 
W3C     UNITCORR   {CRCORR}     1          T = T
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    PHOTCORR   OMIT         1          T  =   T
!
W3C     PHOTCORR   {FLATCORR}   1          T  =   T
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    EXPSCORR   OMIT         1          T  =   T
! PR 62844
W3C     EXPSCORR   PERFORM      1          T  =   T
!
!>>> turn off (i.e. set to OMIT always) for TV
W3CT    DRIZCORR   OMIT         1          T = T
! PR 62844
! PR 64504 
W3C     DRIZCORR   PERFORM      1          IMAGETYP = EXT
W3C     DRIZCORR   OMIT         2          T  =   T
!
W3CT    DFLTFILE    N/A         1          T        =  T
W3C     DFLTFILE    N/A         1          T        =  T
W3CT    LFLTFILE    N/A         1          T        =  T
W3C     LFLTFILE    N/A         1          T        =  T
W3CT    PHOTTAB     N/A         1          T        =  T
W3C     PHOTTAB     N/A         1          T        =  T
!
WF3     ASN_MTYP    EXP-CRJ     1          ASN_MTYP =  CRSPLIT
WF3     ASN_MTYP    EXP-RPT     2          ASN_MTYP =  REPEATOBS
!
! Per request of Howard Bushouse 11/20/2003
! The FSW was fixed, so these rules should never execute
WF3	NUMROWS     4140	1	   NUMROWS  =  0
WF3	NUMROWS     4140	1	   NUMWORDS = 17413805
WF3	NUMCOLS     4206	1	   NUMCOLS  =  0
WF3	NUMCOLS     4206	1	   NUMWORDS = 17413805
! 
! PR 57639 -- needed until FSW fix
WF3     NUMROWS     4140        1          IMGSETUP = Generic
WF3     NUMROWS     4140        1          NUMWORDS = 16229765
WF3     NUMCOLS     3920        1          IMGSETUP = Generic
WF3     NUMCOLS     3920        1          NUMWORDS = 16229765
!
! PR 71240 -- need translation from conv_discrete_* values to 
!                CDBS FLSHFILE values so ref files can match
!
WF3     FLASHCUR    ZERO        1          FLASHCUR = ZeroCur
WF3     FLASHCUR    LOW         2          FLASHCUR = LowCur
WF3     FLASHCUR    MED         3          FLASHCUR = MedCur
WF3     FLASHCUR    HIGH        4          FLASHCUR = HighCur
!
! pr 48334  tv overrides
WF3T    OSPT_X      -1          1          OSPT_X   = UNDEFINED?
WF3T    OSPT_Y      -1          1          OSPT_Y   = UNDEFINED?
WF3T    OSPT_Z      -1          1          OSPT_Z   = UNDEFINED?
WF3T    OSM3A1      -1          1          OSM3A1   = UNDEFINED?
WF3T    OSM3A2      -1          1          OSM3A2   = UNDEFINED?
WF3T    OSM4A1      -1          1          OSM4A1   = UNDEFINED?
WF3T    OSM4A2      -1          1          OSM4A2   = UNDEFINED?
!
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
! Note that many of the mnemonics begin with a little 'L' indicating 
! they come from the first snapshot.  See 49568
!
! PR 57553 needs to keep this in for TV data (no support sched)
COST    PRIMESI         COS     1       T        =      T
!
! PR 59061 needs defines APERTURE, APER_FOV, FPPOS and 
!   corrects a typo in LAMPUSED (P2).
! PR 70565 redefine APERTURE and APER_FOV to work 
!   for new lAPMPOS values.  These new rules 
!    will still work for old lAPMPOS values
COS     APERTURE  PSA           1       lAPMPOS  =      PSA?
COS     APERTURE  BOA           2       lAPMPOS  =      BOA?
COS     APERTURE  WCA           3       lAPMPOS  =      WCA?
COS     APERTURE  FCA           4       lAPMPOS  =      FCA?
COS     APERTURE  {lAPMPOS}     5       T        =      T
!
COS  APER_FOV  "2.5 arcsec (0.700 mm) diameter circular"   1 lAPMPOS = PSA?
COS  APER_FOV  "2.5 arcsec diameter circular + ND2 filter" 2 lAPMPOS = BOA?
COS  APER_FOV  "0.020 x 0.100 mm rectangular"              3 lAPMPOS = WCA?
COS  APER_FOV  "1.750 x 0.075 mm rectangular"              4 lAPMPOS = FCA?
COS  APER_FOV  "2.5 arcsec (0.700 mm) diameter circular"   5 lAPMPOS = RelMvReq
COS  APER_FOV  "2.5 arcsec (0.700 mm) diameter circular"   5 PROPAPER = PSA
COS  APER_FOV  "2.5 arcsec diameter circular + ND2 filter" 6 lAPMPOS = RelMvReq
COS  APER_FOV  "2.5 arcsec diameter circular + ND2 filter" 6 PROPAPER = BOA
COS  APER_FOV  "0.020 x 0.100 mm rectangular"              7 lAPMPOS = RelMvReq
COS  APER_FOV  "0.020 x 0.100 mm rectangular"              7 PROPAPER = WCA
COS  APER_FOV  "1.750 x 0.075 mm rectangular"              8 lAPMPOS = RelMvReq
COS  APER_FOV  "1.750 x 0.075 mm rectangular"              8 PROPAPER = FCA
COS  APER_FOV  "Unknown Aperture"                          9  T      =  T
!
!
! PR 68201 added test 5  EXPTYPE=DARK
! PR 70332  moved EXPTYPE = DARK rule to top.
!           changed to TARGNAME because that is set already.
COS     FPPOS     999           1       TARGNAME    =    DARK
COS     FPPOS     1             2       FPOFFSET   =    -2
COS     FPPOS     2             3       FPOFFSET   =    -1
COS     FPPOS     3             4       FPOFFSET   =    0
COS     FPPOS     4             5       FPOFFSET   =    1
!
COS     FPOFFSET  999           1       TARGNAME   =    DARK
!
! LAMPPLAN is set via special rules using qesiparm table values
! in a special sskey subroutine.  The final case is that if 
! LAMPPLAN is left with the value FLAT or FOLD then reset it the
! the value of LQLAMPID (to destinguish between D1 and D2
!
COS     LAMPPLAN  {LQLAMPID}    1   LAMPPLAN     =      FLAT
COS     LAMPPLAN  {LQLAMPID}    2   LAMPPLAN     =      FOLD
!
COS     LAMPUSED  D1            1   LQDLAMP1     =      on
COS     LAMPUSED  D2            2   LQDLAMP2     =      on
COS     LAMPUSED  P1            3   LQPLAMP1     =      on
COS     LAMPUSED  P2            4   LQPLAMP2     =      on
COS     LAMPUSED  NONE          5       T        =      T
!
! Change the LAMPSET values to be determined by the value of
! LAMPPLAN instead of the telemetry value LQ#LAMP#.  This is
! because of a timing issue between when the telemetry values
! are dumped compared to when the lamps turn on.
COS     LAMPSET {lD2ILVL}       1   LAMPPLAN     =      D1
COS     LAMPSET {lD2ILVL}       2   LAMPPLAN     =      D2
COS     LAMPSET {lPNILVL}       3   LAMPPLAN     =      P1
COS     LAMPSET {lPNILVL}       4   LAMPPLAN     =      P2
COS     LAMPSET   Off           5       T        =      T
!
! PR 70590 defines these rules through LIFE_ADJ = 2
COS     LIFE_ADJ    1           1   DETECTOR     = FUV
COS     LIFE_ADJ    1           1   APERTURE     = BOA
COS     LIFE_ADJ    1           1   APERYPOS     > -163.0
COS     LIFE_ADJ    1           1   APERYPOS     < -143.0
COS     LIFE_ADJ    1           2   DETECTOR     = FUV
COS     LIFE_ADJ    1           2   APERTURE     = FCA
COS     LIFE_ADJ    1           2   APERYPOS     > -163.0
COS     LIFE_ADJ    1           2   APERYPOS     < -143.0
COS     LIFE_ADJ    1           3   DETECTOR     = FUV
COS     LIFE_ADJ    1           3   APERTURE     = PSA
COS     LIFE_ADJ    1           3   APERYPOS     > 116.0
COS     LIFE_ADJ    1           3   APERYPOS     < 136.0
COS     LIFE_ADJ    1           4   DETECTOR     = FUV
COS     LIFE_ADJ    1           4   APERTURE     = WCA
COS     LIFE_ADJ    1           4   APERYPOS     > 116.0
COS     LIFE_ADJ    1           4   APERYPOS     < 136.0
COS     LIFE_ADJ    1           5   DETECTOR     = FUV
COS     LIFE_ADJ    1           5   APERTURE     = RelMvReq
COS     LIFE_ADJ    1           5   PROPAPER    = BOA
COS     LIFE_ADJ    1           5   APERYPOS     > -163.0
COS     LIFE_ADJ    1           5   APERYPOS     < -143.0
COS     LIFE_ADJ    1           6   DETECTOR     = FUV
COS     LIFE_ADJ    1           6   APERTURE     = RelMvReq
COS     LIFE_ADJ    1           6   PROPAPER    = FCA
COS     LIFE_ADJ    1           6   APERYPOS     > -163.0
COS     LIFE_ADJ    1           6   APERYPOS     < -143.0
COS     LIFE_ADJ    1           7   DETECTOR     = FUV
COS     LIFE_ADJ    1           7   APERTURE     = RelMvReq
COS     LIFE_ADJ    1           7   PROPAPER    = PSA
COS     LIFE_ADJ    1           7   APERYPOS     > 116.0
COS     LIFE_ADJ    1           7   APERYPOS     < 136.0
COS     LIFE_ADJ    1           8   DETECTOR     = FUV
COS     LIFE_ADJ    1           8   APERTURE     = RelMvReq
COS     LIFE_ADJ    1           8   PROPAPER    = WCA
COS     LIFE_ADJ    1           8   APERYPOS     > 116.0
COS     LIFE_ADJ    1           8   APERYPOS     < 136.0
COS     LIFE_ADJ    1           9   DETECTOR     = NUV
COS     LIFE_ADJ    1           9   APERTURE     = BOA
COS     LIFE_ADJ    1           9   APERYPOS     > -163.0
COS     LIFE_ADJ    1           9   APERYPOS     < -143.0
COS     LIFE_ADJ    1           10  DETECTOR     = NUV
COS     LIFE_ADJ    1           10  APERTURE     = FCA
COS     LIFE_ADJ    1           10  APERYPOS     > -163.0
COS     LIFE_ADJ    1           10  APERYPOS     < -143.0
COS     LIFE_ADJ    1           11  DETECTOR     = NUV
COS     LIFE_ADJ    1           11  APERTURE     = PSA
COS     LIFE_ADJ    1           11  APERYPOS     > 116.0
COS     LIFE_ADJ    1           11  APERYPOS     < 136.0
COS     LIFE_ADJ    1           12  DETECTOR     = NUV
COS     LIFE_ADJ    1           12  APERTURE     = WCA
COS     LIFE_ADJ    1           12  APERYPOS     > 116.0
COS     LIFE_ADJ    1           12  APERYPOS     < 136.0
COS     LIFE_ADJ    1           13  DETECTOR     = NUV
COS     LIFE_ADJ    1           13  APERTURE     = RelMvReq
COS     LIFE_ADJ    1           13  PROPAPER    = BOA
COS     LIFE_ADJ    1           13  APERYPOS     > -163.0
COS     LIFE_ADJ    1           13  APERYPOS     < -143.0
COS     LIFE_ADJ    1           14  DETECTOR     = NUV
COS     LIFE_ADJ    1           14  APERTURE     = RelMvReq
COS     LIFE_ADJ    1           14  PROPAPER    = FCA
COS     LIFE_ADJ    1           14  APERYPOS     > -163.0
COS     LIFE_ADJ    1           14  APERYPOS     < -143.0
COS     LIFE_ADJ    1           15  DETECTOR     = NUV
COS     LIFE_ADJ    1           15  APERTURE     = RelMvReq
COS     LIFE_ADJ    1           15  PROPAPER    = PSA
COS     LIFE_ADJ    1           15  APERYPOS     > 116.0
COS     LIFE_ADJ    1           15  APERYPOS     < 136.0
COS     LIFE_ADJ    1           16  DETECTOR     = NUV
COS     LIFE_ADJ    1           16  APERTURE     = RelMvReq
COS     LIFE_ADJ    1           16  PROPAPER    = WCA
COS     LIFE_ADJ    1           16  APERYPOS     > 116.0
COS     LIFE_ADJ    1           16  APERYPOS     < 136.0
COS     LIFE_ADJ    2           17  DETECTOR     = FUV
COS     LIFE_ADJ    2           17  APERTURE     = BOA
COS     LIFE_ADJ    2           17  APERYPOS     > -227.0
COS     LIFE_ADJ    2           17  APERYPOS     < -207.0
COS     LIFE_ADJ    2           18  DETECTOR     = FUV
COS     LIFE_ADJ    2           18  APERTURE     = FCA
COS     LIFE_ADJ    2           18  APERYPOS     > -227.0
COS     LIFE_ADJ    2           18  APERYPOS     < -207.0
COS     LIFE_ADJ    2           19  DETECTOR     = FUV
COS     LIFE_ADJ    2           19  APERTURE     = PSA
COS     LIFE_ADJ    2           19  APERYPOS     > 52.0
COS     LIFE_ADJ    2           19  APERYPOS     < 72.0
COS     LIFE_ADJ    2           20  DETECTOR     = FUV
COS     LIFE_ADJ    2           20  APERTURE     = WCA
COS     LIFE_ADJ    2           20  APERYPOS     > 52.0
COS     LIFE_ADJ    2           20  APERYPOS     < 72.0
COS     LIFE_ADJ    2           21  DETECTOR     = FUV
COS     LIFE_ADJ    2           21  APERTURE     = RelMvReq
COS     LIFE_ADJ    2           21  PROPAPER    = BOA
COS     LIFE_ADJ    2           21  APERYPOS     > -227.0
COS     LIFE_ADJ    2           21  APERYPOS     < -207.0
COS     LIFE_ADJ    2           22  DETECTOR     = FUV
COS     LIFE_ADJ    2           22  APERTURE     = RelMvReq
COS     LIFE_ADJ    2           22  PROPAPER    = FCA
COS     LIFE_ADJ    2           22  APERYPOS     > -227.0
COS     LIFE_ADJ    2           22  APERYPOS     < -207.0
COS     LIFE_ADJ    2           23  DETECTOR     = FUV
COS     LIFE_ADJ    2           23  APERTURE     = RelMvReq
COS     LIFE_ADJ    2           23  PROPAPER    = PSA
COS     LIFE_ADJ    2           23  APERYPOS     > 52.0
COS     LIFE_ADJ    2           23  APERYPOS     < 72.0
COS     LIFE_ADJ    2           24  DETECTOR     = FUV
COS     LIFE_ADJ    2           24  APERTURE     = RelMvReq
COS     LIFE_ADJ    2           24  PROPAPER    = WCA
COS     LIFE_ADJ    2           24  APERYPOS     > 52.0
COS     LIFE_ADJ    2           24  APERYPOS     < 72.0
!
COS     MEVENTS  [{LMEVENTS}*10]	1          T =  T
!
COS     OBSMODE  TIME-TAG       1   BUFFERSZ     >      0
COS     OBSMODE  ACCUM          2       T        =      T
!
COS	POSTARG1 {APEROFFX}	1	T		=	T
COS	POSTARG2 {APEROFFY}	1	T		=	T
!
COS     SUBARRAY   T            1    LQNUMSUB    >      0
COS     SUBARRAY   F            2       T        =      T
!
COS     DATASORC {OBSMODE}      1       T        =      T
COS     IMAGETYP {OBSMODE}      1       T        =      T
!
!<<<<<<<<<<<<<<<<<<<<<<<<<<
! HARD-CODED for now, but need to be removed when we have proposal data
! for test sets.
!COS     TARGNAME  Thermal_Vac   1       T        =      T
!COS     PROPOSID  100138        1       T        =      T
!COS     PR_INV_L  Green         1       T        =      T
!COS     PR_INV_F  James         1       T        =      T
!COS     FGSLOCK   NONE          1       T        =      T
!<<<<<<<<<<<<<<<<<<<<<<<<<<
!
!
COS     OPT_ELEM  {lOSM1POS}  1     DETECTOR    =       FUV
COS     OPT_ELEM  {lOSM2POS}  2     DETECTOR    =       NUV
!
! PR 51152 called for redefining OBSTYPE. 
!           Spectroscopic if opt_elem is G?
!           Imaging for all other cases.
! PR 70332 adds rule for TARGNAME = DARK
!
COS     OBSTYPE  IMAGING        1    TARGNAME    =      DARK
COS     OBSTYPE  SPECTROSCOPIC  2    OPT_ELEM    =      G?
COS     OBSTYPE  IMAGING        3       T        =      T
!
! PR 51152 -- Then go back and clean up the OPT_ELEM
!              names for the NUV side
! Comment out this line until CCI handles FUV/IMAGING
! PR 70332 adds rule for TARGNAME = DARK
!
COS     OPT_ELEM  N/A      1     TARGNAME    =       DARK
COS     OPT_ELEM  MIRRORA  2     OPT_ELEM    =       TA1Image
COS     OPT_ELEM  MIRRORB  3     OPT_ELEM    =       TA1Brght
!
!!
! 06/20/11 64778 handle CENWAVE, CENTRWV, and SS_CWAVE
!     cases for IMAGING vs SPECTROSCOPIC vs DARK
!
COS     CENWAVE   {LOSMLAMB}  	1   	T  	 =  	T
COS     CENTRWV   {LOSMLAMB}  	1   	T  	 =  	T
! NOTE SS_CWAVE is populated in keyword_source
!
COS     CENWAVE   0         1       OBSTYPE    =       IMAGING
COS     CENTRWV   0         1       OBSTYPE    =       IMAGING
COS     SS_CWAVE  0         1       OBSTYPE    =       IMAGING
!
! Comment out this line until CCI handles FUV/IMAGING
!
COS     CENWAVE   0         1       TARGNAME   =       DARK
COS     CENTRWV   0         1       TARGNAME   =       DARK
COS     SS_CWAVE  0         1       TARGNAME   =       DARK
!
COS     SHUTTER   {lSHUTRAW}  	1   	T  	 =  	T
!
COS	DISPAXIS   1	 	1   DETECTOR	=	FUV
COS	DISPAXIS   2		2   DETECTOR	=	NUV
!
! 02/26/10 64361 Temp change SDQFLAGS from 184 to 188 when
!                DETECTOR is FUV
! 03/10/11 67719 Add cases for OPT_ELEMS G130M and G160M
! 03/27/12 68727 change values to reflect gain sag inclusion
COS 	SDQFLAGS   8376         1	OPT_ELEM   =    G130M
COS 	SDQFLAGS   8376         2	OPT_ELEM   =    G160M
COS	SDQFLAGS   8380         3	DETECTOR   =    FUV
!
!  Timetag WCS keywords for IMAGING mode
!
! populate WCS bintable keywords using WCS image keywords
!
COS     TCTYP2    RA---TAN      1       OBSMODE   =     TIME-TAG
COS     TCTYP2    RA---TAN      1       OBSTYPE   =     IMAGING
COS     TCTYP2    {TCTYP2}      2       T        =      T
!
COS     TCTYP3    DEC--TAN      1       OBSMODE   =     TIME-TAG
COS     TCTYP3    DEC--TAN      1       OBSTYPE   =     IMAGING
COS     TCTYP3    {TCTYP3}      2       T        =      T
!
COS     TCRVL2    {CRVAL1}      1       OBSMODE   =     TIME-TAG
COS     TCRVL2    {CRVAL1}      1       OBSTYPE   =     IMAGING
!
COS     TCRVL3    {CRVAL2}      1       OBSMODE   =     TIME-TAG
COS     TCRVL3    {CRVAL2}      1       OBSTYPE   =     IMAGING
!
COS     TCRPX2    {CRPIX1}      1       OBSMODE   =     TIME-TAG
COS     TCRPX2    {CRPIX1}      1       OBSTYPE   =     IMAGING
!
COS     TCRPX3    {CRPIX2}      1       OBSMODE   =     TIME-TAG
COS     TCRPX3    {CRPIX2}      1       OBSTYPE   =     IMAGING
!
COS     TC2_2     {CD1_1}       1       OBSMODE   =     TIME-TAG
COS     TC2_2     {CD1_1}       1       OBSTYPE   =     IMAGING
!
COS     TC2_3     {CD1_2}       1       OBSMODE   =     TIME-TAG
COS     TC2_3     {CD1_2}       1       OBSTYPE   =     IMAGING
!
COS     TC3_2     {CD2_1}       1       OBSMODE   =     TIME-TAG
COS     TC3_2     {CD2_1}       1       OBSTYPE   =     IMAGING
!
COS     TC3_3     {CD2_2}       1       OBSMODE   =     TIME-TAG
COS     TC3_3     {CD2_2}       1       OBSTYPE   =     IMAGING
! the TCUNI2 default is "angstrom" so we only need to reset for images
! and TCUNI3 is always set to "deg" and that is the default so there
! is no need to set it here.
COS     TCUNI2    deg           1       OBSMODE   =     TIME-TAG
COS     TCUNI2    deg           1       OBSTYPE   =     IMAGING
COS     TCUNI2    {TCUNI2}      2       T        =      T
!
COS     TCUNI3    deg           1       OBSMODE   =     TIME-TAG
COS     TCUNI3    deg           1       OBSTYPE   =     IMAGING
COS     TCUNI3    {TCUNI3}      2       T        =      T
!
COS   TALEN2    16384         1       DETECTOR   =    FUV
COS   TALEN2    1024          2       DETECTOR   =    NUV
COS   TALEN2    1024          2       OBSTYPE    =    SPECTROSCOPIC
COS   TALEN3    1024          1       OBSTYPE    =    SPECTROSCOPIC
!
!
! PR 56407 COS Tag Flash
COS     TAGFLASH  AUTO                      1       NUMFLASH   >   0
COS     TAGFLASH  AUTO                      1       TAGFLASH   =   SCI
COS     TAGFLASH  "UNIFORMLY SPACED"        2       NUMFLASH   >   0
COS     TAGFLASH  "UNIFORMLY SPACED"        2       TAGFLASH   =   ENG
COS     TAGFLASH  NONE                      3       T          =   T
! PR 56902
COS     EXPTYPE   DARK                      1       TARGNAME   =   DARK
COS     EXPTYPE   FLAT                      2       TARGNAME   =   DEUTERIUM
COS     EXPTYPE   WAVECAL                   3       TARGNAME   =   WAVE
COS     EXPTYPE   ACQ/SEARCH                4       OPMODE     =   ACQ
COS     EXPTYPE   {OPMODE}                  5       OPMODE     =   ACQ/SEARCH
COS     EXPTYPE   {OPMODE}                  6       OPMODE     =   ACQ/PEAKD
COS     EXPTYPE   {OPMODE}                  7       OPMODE     =   ACQ/PEAKXD
COS     EXPTYPE   {OPMODE}                  8       OPMODE     =   ACQ/IMAGE
COS     EXPTYPE   "ENG DIAG"                9       DUMPTYPE   =   EngDiag
COS     EXPTYPE   "MEMORY DUMP"             10      DUMPTYPE   =   MemDiag
COS     EXPTYPE   EXTERNAL/CAL              11      CALIBTYP   =   E
COS     EXPTYPE   EXTERNAL/SCI              12      T          =   T
!
! PR 59998 if EXPTYPE = ACQ/PEAKXD set SCANSIZE, PEAKNPOS, and PEAKCENT
! PR 60349 if EXPTYPE = ACQ/IMAGE do the same
!
COS     SCANSIZE  -999          1       EXPTYPE = ACQ/PEAKXD
COS     SCANSIZE  -999          2       EXPTYPE = ACQ/IMAGE
!
COS     PEAKNPOS  -999          1       EXPTYPE = ACQ/PEAKXD
COS     PEAKNPOS  -999          2       EXPTYPE = ACQ/IMAGE
!
COS     PEAKCENT  N/A           1       EXPTYPE = ACQ/PEAKXD
COS     PEAKCENT  N/A           2       EXPTYPE = ACQ/IMAGE
!
! PR 64849 
!  What follows through the ACQ keywords must be after the
!  EXPTYPE rules above.
!
! PR 68905 Add the USER rotation to some ACQ keywords
COS     LAMPMXCR [1023.0-{LQTAYCOR}]  1   COSCOORD = USER
COS     LAMPMYCR [1023.0-{LQTAXCOR}]  1   COSCOORD = USER
!
COS     ACQSTAT  {LQTASTAT(1)}  1       EXPTYPE = ACQ/IMAGE
COS     ACQSTAT  {LQTASTAT(1)}  2       EXPTYPE = ACQ/PEAKXD
COS     ACQSTAT  {LQTASTAT}     3       EXPTYPE = ACQ/SEARCH
COS     ACQSTAT  {LQTASTAT}     4       EXPTYPE = ACQ/PEAKD
!
COS     TARGTIME {LQITIME(1)}  1       EXPTYPE = ACQ/IMAGE
COS     TARGTIME {LQITIME(1)}  2       EXPTYPE = ACQ/PEAKXD
COS     TARGTIME {LQITIME}     3       EXPTYPE = ACQ/SEARCH
COS     TARGTIME {LQITIME}     4       EXPTYPE = ACQ/PEAKD
!
COS     TARGEVNT {LQTATOTL(1)}  1       EXPTYPE = ACQ/PEAKXD 
!
COS     ACQCENTX {LQTAMYCR(1)}  1       EXPTYPE = ACQ/IMAGE
COS     ACQCENTY {LQTAMXCR(1)}  1       EXPTYPE = ACQ/IMAGE
COS     ACQPREFX {LQTADYCR(1)}  1       EXPTYPE = ACQ/IMAGE
COS     ACQPREFX {LQTADYCR}     2       EXPTYPE = ACQ/SEARCH
COS     ACQPREFX {LQTADYCR}     3       EXPTYPE = ACQ/PEAKD
!
COS     ACQCENTX [1023.0-{ACQCENTX}]  1   COSCOORD = USER
COS     ACQCENTY [1023.0-{ACQCENTY}]  1   COSCOORD = USER
COS     ACQPREFX [1023.0-{ACQPREFX}]  1   COSCOORD = USER
COS     ACQPREFY [1023.0-{ACQPREFY}]  1   COSCOORD = USER
COS     ACQMEASY [1023.0-{ACQMEASY}]  1   COSCOORD = USER
!
COS     ACQFLOOR {LQTAFLOR}             1       EXPTYPE = ACQ/SEARCH
!
COS     ACQNPOS  [{LQTASCAN}^2]  	1       EXPTYPE = ACQ/SEARCH
COS     ACQNPOS  {LQTASCAN}     	2       EXPTYPE = ACQ/PEAKD
!
COS     STEPSIZE [{LQTASTEP}/1000.0]	1       EXPTYPE = ACQ/SEARCH
COS     STEPSIZE [{LQTASTEP}/1000.0]	2       EXPTYPE = ACQ/PEAKD
COS     ENDSLEWX [{LQTADSLW}/1000.0]	1       EXPTYPE = ACQ/SEARCH
COS     ENDSLEWX [{LQTADSLW}/1000.0]	2       EXPTYPE = ACQ/PEAKD
COS     ENDSLEWY [{LQTAXSLW}/1000.0]	1       EXPTYPE = ACQ/SEARCH
!
COS     ACQSLEWX [{LQTADSLW}/1000.00]   1       EXPTYPE = ACQ/IMAGE
COS     ACQSLEWX [{LQTADPOS}/1000.00]   2       EXPTYPE = ACQ/SEARCH
COS     ACQSLEWX [{LQTADPOS}/1000.00]   3       EXPTYPE = ACQ/PEAKD
!
COS     ACQSLEWY  [{LQTAXSLW}/1000.00]  1       EXPTYPE = ACQ/IMAGE
COS     ACQSLEWY  [{LQTAXSLW}/1000.00]  2       EXPTYPE = ACQ/PEAKXD
COS     ACQSLEWY  [{LQTAXPOS}/1000.00]  3       EXPTYPE = ACQ/SEARCH
!
! PR 66634 specify PLATESC for EXPTYPE ACQ/IMAGE
COS     PLATESC  0.0235       1       EXPTYPE = ACQ/IMAGE
!
! PR 63218 Since we have no idea if qobs_control.calibrate 
!          will be affected by TRANS PRs 63137 and 63226, do this:
COS     CALIBRAT  T             1       TARGNAME   =    WAVE
COS     CALIBRAT  T             1       OPT_ELEM   =    MIRROR?
!
COS     CENWAVE  [FLOOR({CENTRWV}+0.5)]     1       EXPTYPE = ACQ/IMAGE
COS     CENWAVE  [FLOOR({CENTRWV}+0.5)]     2       EXPTYPE = ACQ/PEAKD
COS     CENWAVE  [FLOOR({CENTRWV}+0.5)]     3       EXPTYPE = ACQ/SEARCH
COS     CENWAVE  [FLOOR({CENTRWV}+0.5)]     4       EXPTYPE = ACQ/PEAKXD
!
! PR 49926
! PR 60960 change test to strings FUV and NUV instead of 1 & 2
CSW     DOPPON    T             1       LQDOPCOR   =    FUV
CSW     DOPPON    T             2       LQDOPCOR   =    NUV
CSW     DOPPON    F             3       T          =    T
!
! PR 60817
! PR 60960 change test to strings FUV and NUV instead of 1 & 2
CSW     DOPPONT   T             1       LQDOPCOR   =    FUV
CSW     DOPPONT   T             2       LQDOPCOR   =    NUV
CSW     DOPPONT   F             3       T          =    T
!
!PR 60960
COS     ORBTPERT  -1            1       DOPPONT    =    F
COS     DOPMAGT   -1            1       DOPPONT    =    F
COS     DOPZEROT  -1            1       DOPPONT    =    F
!
! COS calibration switch settings (CSW) 
! Default settings for all switches is OMIT
! 
! We will re-establish t_CFSTATUS rules if/when we need to.  Not used yet.
!
!----   --------  ----------  ----  --------  -------   -------
!INST   NAME  =   DEFAULT  if TEST  KEYWORD   COMPARE   VALUE
!----   --------  ----------  ----  --------  -------   -------
!
! PR 61614 DQICORR on for everything
CSW     DQICORR   PERFORM       1       T         =     T
!
! PR 61614 STATFLAG defaults to T (true) in keyword dictionary now
! RPTCORR being removed by STSDAS PR 
!
! PR 61614 FLATCORR off for FUV,      (same Test = AND, diff Test = OR)
!                   on  for NUV EXTERNAL and WAVECAL, 
!                   off for DARK, FLAT, 
!                   on  for ACQ/IMAGE
! PR 67719 Turned on for more cases
CSW     FLATCORR  OMIT          1       EXPTYPE   =     DARK
CSW     FLATCORR  OMIT          2       EXPTYPE   =     FLAT
CSW     FLATCORR  OMIT          3       OPT_ELEM  =     G140L
CSW     FLATCORR  PERFORM       4       T         =     T
!
! PR 61614 DEADCORR on for everything
CSW	DEADCORR  PERFORM	1	T	  = 	T
!
! BADTCORR should be on for all TIME-TAG data
CSW     BADTCORR  PERFORM       1       OBSMODE   =     TIME-TAG
!
! PHACORR should be on for FUV, OFF for NUV
CSW     PHACORR   PERFORM       1       DETECTOR  =     FUV
!
! TEMPDCORR should be on for FUV, OFF for NUV
CSW     TEMPCORR  PERFORM       1       DETECTOR  =     FUV
!
! GEOCORR should be on for FUV, OFF for NUV
CSW     GEOCORR   PERFORM       1       DETECTOR  =     FUV
!
! IGEOCORR should do whatever GEOCORR does
CSW	IGEOCORR  {GEOCORR}	1	T	  = 	T
!
! RANDCORR should be on for FUV, OFF for NUV
CSW     RANDCORR  PERFORM       1       DETECTOR  =     FUV
!
! PR 60164  -- Set BRSTCORR to OMIT for all cases.
!              But redundant test is created so that it can be 
!              turned on for TIME-TAGS done on the FUV detectors
!              if needed later.
CSW     BRSTCORR  OMIT          1       OBSMODE   !=    TIME-TAG
CSW     BRSTCORR  OMIT          2       DETECTOR  !=    FUV
CSW     BRSTCORR  OMIT          3       T         =     T
!
!  PR 68336  SET WALKCORR to OMIT if NOT an FUV TIME-TAG exposure
CSW     WALKCORR  OMIT          1       OBSMODE   !=    TIME-TAG
CSW     WALKCORR  OMIT          1       DETECTOR  !=    FUV
!
! PR 61614 WAVECORR off for IMAGING
!          on for SPECTROSCOPIC EXTERNALs and WAVECALs
!          off for DARKs and FLATs
!   Remove WAVECAL, a keyword for STIS not COS.
CSW     WAVECORR  OMIT          1       OBSTYPE    =    IMAGING
CSW     WAVECORR  PERFORM       2       EXPTYPE    =    EXTERNAL?
CSW     WAVECORR  PERFORM       3       EXPTYPE    =    WAVE?
!
! PR 61614 X1DCORR off for IMAGING
!          on for SPECTROSCOPIC EXTERNALs and WAVECALs
!          off for DARKs and FLATs
CSW     X1DCORR   OMIT          1       OBSTYPE    =    IMAGING
CSW     X1DCORR   PERFORM       2       EXPTYPE    =    EXTERNAL?
CSW     X1DCORR   PERFORM       3       EXPTYPE    =    WAVE?
!
!
! PR 61614 HELCORR  off for IMAGING
!          on for SPECTROSCOPIC EXTERNALs 
!          off for DARKs and FLATs and WAVECALs
CSW     HELCORR   OMIT          1       OBSTYPE    =    IMAGING
CSW     HELCORR   PERFORM       2       EXPTYPE    =    EXTERNAL?
!
! PR 61614 FLUXCORR off for IMAGING
!          on for SPECTROSCOPIC EXTERNALs 
!          off for DARKs and FLATs and WAVECALs
CSW     FLUXCORR  OMIT          1       OBSTYPE    =    IMAGING
CSW     FLUXCORR  PERFORM       2       EXPTYPE    =    EXTERNAL?
!
! PR 61614 TDSCORR is on for EXTERNALs (SPECTROSCOPIC and IMAGING)
!                  is off for DARKs and FLATs (SPECTROSCOPIC and IMAGING)
!                  is on for IMAGING wavecals, but NOT SPECTROSCOPIC wavecals
!                  is on for ACQ/IMAGE (NUV)
! 
CSW     TDSCORR   PERFORM       1      EXPTYPE    =    EXTERNAL?
CSW     TDSCORR   OMIT          2      EXPTYPE    =    DARK
CSW     TDSCORR   OMIT          3      EXPTYPE    =    FLAT
CSW     TDSCORR   PERFORM       4      OBSTYPE    =    IMAGING
CSW     TDSCORR   PERFORM       4      EXPTYPE    =    WAVE?
CSW     TDSCORR   PERFORM       5      EXPTYPE    =    ACQ/IMAGE
! 
! PR 61614 BACKCORR off for IMAGING
!          on for SPECTROSCOPIC EXTERNALs and WAVECALs
!          off for DARKs and FLATs
CSW     BACKCORR  OMIT          1       OBSTYPE    =    IMAGING
CSW     BACKCORR  PERFORM       2       EXPTYPE    =    EXTERNAL?
CSW     BACKCORR  PERFORM       3       EXPTYPE    =    WAVE?
!
! PR 61614 DOPPCORR off for IMAGING   (PR 49926 obsolete)
!          on for SPECTROSCOPIC EXTERNALs 
!          off for DARKs and FLATs and WAVECALs
CSW     DOPPCORR  OMIT          1       OBSTYPE    =    IMAGING
CSW     DOPPCORR  PERFORM       2       EXPTYPE    =    EXTERNAL?
!
! PR 61614 PHOTCORR is on for IMAGING unless there is a DARK or FLAT
CSW     PHOTCORR  OMIT          1      OBSTYPE    =    SPECTROSCOPIC
CSW     PHOTCORR  OMIT          2      EXPTYPE    =    DARK
CSW     PHOTCORR  OMIT          3      EXPTYPE    =    FLAT
! PR 63218 turn off PHOTCORR for imaging wavecals
CSW     PHOTCORR  OMIT          4      TARGNAME   =    WAVE
CSW     PHOTCORR  OMIT          4      OPT_ELEM   =    MIRROR?
! now we know OBSTYPE is IMAGING
CSW     PHOTCORR  PERFORM       5      T          =    T
