Go to the bottom.
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! SDDL Name:	QEXPOSURE.SDDL
!
! Purpose:      This SDDL file defines the qexposure relation.
!
! Modification History:
!
!   Date       PR       Who                       Reason
! --------   -------    ---   -------------------------------------------------
! 11/16/94   27329      NLC/  Original implementation
!                       RSL
! 11/27/95   26720      MRB   Removed obsolete fields xoffset_aper,yoffset_aper,
!                             pos_input_fg, position_ang, angular_sep,
!                             aper_posang, ambiguity, coord_typ, calc_ra, 
!                             calc_dc, v2v3_xcoord, v2v3_ycoord see qaposition
!                             obsolete with the coordinated parallels project.
! 02/23/96   12856      MRB   Removed detector, dark_cnt, fosdetec, xsteps
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
 
LANGUAGE	FORTRAN, SQL

INCLUDE         ZSPSS_USER_TYPES.SDDL
 
RECORD  QEXP_TYPE
 
!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------
 
 
    DESCRIPTION       "This relation is used to define exposures. It provides 
                      information on how to control the Science Instrument (SI)
                      for the exposure that is specified in the record. It is
		      populated by TRANS, modified by SPSS, and used by 
                      SPSS and PODPS. 
		       
                      For every qexposure record there is a corresponding 
                      record in qelogsheet, and one in qesiparm.

                      GSSS/REQUEST and PMDB/UPDATE/TYPE=SU select data from
                      qexposure.

                      PMDB/UPDATE/TYPE=OBSET selects from and updates the 
                      relation.

                      The FOV program fetches exposure level target data
                      for alignments.

                      SMSG/SCHEDULE accesses data from the relation when
                      generating OSS/PODPS observation records.
                        
		      For more information on how the TRANS fields are
                      populated, see the TRANS Scripting Guide."
 
 
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 
 

    FIELD  proposal_id
        TYPE PROPOSAL_ID_TYPE
        FORM
            NAME         "EGD"
            LABEL        "PROPOSAL ID"
        END_FORM
    END_FIELD
 
 

    FIELD  obset_id
        TYPE OBSET_ID_TYPE
        FORM
            NAME         "EGD"
            LABEL        "OBSET    ID"
        END_FORM
    END_FIELD
 
 

    FIELD  alignment_id
        TYPE ALIGN_ID_TYPE
        FORM
            NAME         "EGD"
            LABEL        "ALIGN    ID"
        END_FORM
    END_FIELD
 
 

    FIELD  exposure_id
        TYPE EXPOSURE_ID_TYPE
        FORM
            NAME         "EGD"
            LABEL        "EXPOSURE ID"
        END_FORM
    END_FIELD
 
 

    FIELD  version_num
        TYPE VERSION_NUM_TYPE
        FORM
            NAME         "EGD"
            LABEL        "VERSION NUM"
        END_FORM
    END_FIELD
 
 

    FIELD  type
        TYPE            C3
        DESCRIPTION     "This field specifies the purpose of the exposure
                         where:
			     TAQ : target acquisition
                             CAL : calibration
                             SCI : science
                             RCF : reconfiguration"
        FORM
            NAME         "EGD"
            LABEL        "EXPOSURE TYPE (TAQ/CAL/SCI/RCF)"
        END_FORM
        DISCRETE        "CAL",  "RCF",  "SCI",  "TAQ"
    END_FIELD
 
 

    FIELD  calibr_typ
        TYPE            C1
        DESCRIPTION     "This field specifies the calibration type where:
                             I : internal
                             E : external
                          (This field is only set if type = 'CAL')."
        FORM
            NAME         "EGD"
            LABEL        "CALIBRATION TYPE (E/I)"
        END_FORM
        DISCRETE        " ",  "E",  "I"
    END_FIELD
 
 

    FIELD  realtime_fg
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag indicates if real time interaction 
                         is required where:
                           Y : real time interaction required
                           N : real time interaction not required
                         The field defaults to N."
        FORM
            NAME         "EGD"
            LABEL        "REALTIME FLAG (Y/N)"
        END_FORM
        DISCRETE        "N",  "Y"
    END_FIELD
 
 

    FIELD  spec_calib
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag indicates if special calibration is 
                         required before this exposure where:
                           Y = is required
                           N = is not required
                         The field defaults to N. "
        FORM
            NAME         "EGD"
            LABEL        "SPECIAL CALIB. REQUIRED (Y/N)"
        END_FORM
        DISCRETE        "N",  "Y"
    END_FIELD
 
 

    FIELD  tape_record
        TYPE            C1
        DESCRIPTION     "This flag indicates tape recorder usage, where:
                           N : not used
                           U : used
                           B : used for backup
                         The field defaults to N."
        FORM
            NAME         "EGD"
            LABEL        "TAPE RECORDER USAGE (B/N/U)"
        END_FORM
        DISCRETE        "B",  "N",  "U"
    END_FIELD
 
 

    FIELD  data_volume
        TYPE            R4
        DESCRIPTION     "This field is the expected data volume."
        UNITS           "kilobits"
        FORM
            NAME         "EGD"
            LABEL        "EXPECTED DATA VOLUME (kbits)"
        END_FORM
    END_FIELD
 
 

    FIELD  order_critic
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag indicates if the order of the 
                         exposure is critical or not, where:
                            Y : order critical
                            N : not order critical
                         The field defaults to N."
        FORM
            NAME         "EGD"
            LABEL        "ORDER CRITICAL FLAG (Y/N)"
        END_FORM
        DISCRETE        "N",  "Y"
    END_FIELD
 
 

    FIELD  time_criticl
        TYPE            C1
        DESCRIPTION     "This flag indicates if the exposure is time 
                         critical, where:
                            T : time critical
                            S : special phase critical
                            N : not time critical
                         The field defaults to N. "
        FORM
            NAME         "EGD"
            LABEL        "TIME/PHASE CRITICAL  (T/P/N)"
        END_FORM
        DISCRETE        "N",  "S",  "T"
    END_FIELD
 
 

    FIELD  absolute_tm
        TYPE SOGS_CHAR_TIME_TYPE
        DESCRIPTION     "This field is the absolute date/time to 
			 start this exposure."
        FORM
            NAME         "EGD"
            LABEL        "ABSOLUTE START TIME"
        END_FORM
    END_FIELD
 
 

    FIELD  init_epoch
        TYPE            R8
        DESCRIPTION     "This field is the initial epoch for the 
                        special phase of periodic phenomenon, 
                        in Julian date format. 
			(not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "INITIAL EPOCH (Julian Day)"
        END_FORM
    END_FIELD
 
 

    FIELD  period_sph
        TYPE            R8
        UNITS           "DAYS"
        DESCRIPTION     "This field is the period for special phase of periodic
                        phenomenon, in days. 
			(not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "PERIOD (Days)"
        END_FORM
    END_FIELD
 
 

    FIELD  phase_sph
        TYPE            R4
        DESCRIPTION     "This field is the special phase of periodic
                        phenomenon. The phase is the time between the
                        initial epoch and the end of the period. 
			(not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "PHASE"
        END_FORM
    END_FIELD
 
 

    FIELD  interrupt
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag indicates if the exposure 
                        can be interrupted, where:
                           Y : can be interrupted
                           N : can not be interrupted "
    END_FIELD
 
 

    FIELD  min_interrup
        TYPE            I4
        DESCRIPTION     "This is the minimum exposure interrupt duration.
                        This field is only set if the exposure can be
                        interrupted (interrupt = 'Y')."
        UNITS           "SECONDS"
    END_FIELD
 
 

    FIELD  timetag_type
        TYPE            C1
        DESCRIPTION     "This field indicates the timetag type, where:
                            A : Time is relative to the start of the alignment
                            P : Time is relative to the preceding exposure
                            S : Time is relative to a specified exposure
                         The field defaults to P."
        DISCRETE        "A", "P", "S"
    END_FIELD
 
 

    FIELD  sequence_num
        TYPE            I2
        DESCRIPTION     "This is the sequence number of this exposure within 
                        the alignment.  Sequence numbers should be entered 
                        for all exposures of an alignment, or for no
                        exposures of an alignment.
                        If the sequence numbers are not input by the user, 
                        SCS sequences the exposures by exposure id.  "
    END_FIELD
 
 

    FIELD  reference_ex
        TYPE EXPOSURE_ID_TYPE
        DESCRIPTION     "This is the exposure id of the referenced exposure,
                        as specified by the timetag_type.
                        If the timetag_type is 'S', this field must 
                        be entered.  If the timetag_type is 'P', and
                        this field is blank, the exposure id associated 
                        with the previous sequence number for the 
                        instrument is implied. "
    END_FIELD
 
 

    FIELD  delta_time
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "This field is the delta time of the referenced
                        exposure, as specified by the timetag_type.

                        If the timetag_type is 'A', the delta time is relative
                        to the start of the alignment.
                        If the timetag_type is 'P', the delta time is relative
                        to the start time of the preceding exposure for the 
                        same instrument, as determined by the sequence number.
                        If the timetag_type is 'S', the delta time is relative
                        to the exposure specified in reference_ex.
                        If the timetag_type is 'A' or 'P', a value greater
                        or equal to zero must be entered."
    END_FIELD
 
 

    FIELD  signal_noise
        TYPE            R4
        DESCRIPTION     "This field is the signal to noise ratio requirements,
                        the relationship between background light level and 
                        target intensity. "
        FORM
            NAME         "EGD"
            LABEL        "SIGNAL NOISE RATIO REQUIREMENT"
        END_FORM
    END_FIELD
 
 

    FIELD  max_light
        TYPE            R4
        UNITS           "FLUX"
        DESCRIPTION     "This field is the maximum background light level 
                        (flux) allowed for this exposure to be executed.
                        (particles per sec sq) "
        FORM
            NAME         "EGD"
            LABEL        "MAXIMUM LIGHT LEVEL (flux)"
        END_FORM
    END_FIELD
 
 

    FIELD  est_exp_time
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "This field is the estimated exposure time for this 
                        exposure.
			(not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "ESTIMATED  DURATION"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
 
 

    FIELD  min_est_time
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "This field is the minimum estimated exposure time 
                        for this exposure.
			(not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "MIN EST. DURATION"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
 
 

    FIELD  max_est_time
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "This field is the maximum estimated exposure time 
                        for this exposure.
			(not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "MAX EST. DURATION"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
 
 

    FIELD  calc_exp_tim
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "This field is the calculated exposure time by 
                        exposure time tool.
			(not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "CALCULATED  DURATION"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
 
 

    FIELD  min_calc_tim
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "This field is the minimum calculated exposure time 
                        by exposure time tool. 
			(not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "MIN CALC. DURATION"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
 
 

    FIELD  max_calc_tim
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "This field is the maximum calculated exposure time 
                        by exposure time tool.
			(not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "MAX CALC. DURATION"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
 
 

    FIELD  expndr_tim
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "This is the exposure time calculated by the 
                        instruction expander. 
                        (not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "EXPANDER CALC. DURATION"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
 
 

    FIELD  fgs_scan
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag indicates if a scan is required
                        for FGS astrometry, where:
                            Y : Scan is required;
                                ASTROM_TGT must be set to 'P' or 'R'. 
                            N : Scan is not required
        FORM
            NAME         "EGD"
            LABEL        "FGS SCAN REQUIRED (Y/N)"
        END_FORM
    END_FIELD
 
 

    FIELD  scan_type
        TYPE            C1
        DESCRIPTION     "This field indicates the type of scan to be performed
                        for this exposure, where:
                           C : Continuous scan -- 
                               This is a series of linear scans alternating in
                               direction and offset from one another by a small
                               angle separation (a linear scan is a slew of the
                               ST optical axis from point A to B on the 
                               celestial sphere at a constant commanded rate).
                           D : Dwell scan --
                               This scan is like the continuous scan, with a 
                               specified number of dwell points per line 
                               and time to wait at each dwell point.
                           N : not applicable "
        FORM
            NAME         "EGD"
            LABEL        "SCAN TYPE (C/D/N)"
        END_FORM
        DISCRETE        " ",  "C",  "D",  "N"
    END_FIELD
 
 

    FIELD  scan_coord
        TYPE            C1
        DESCRIPTION     "This flag indicates the scan coordinate
                        frame of reference, where:
                           C : celestial frame (ra-dec),
                           V : vehicle (v2v3). "
        FORM
            NAME         "EGD"
            LABEL        "SCAN COORDINATE FRAME (C/V)"
        END_FORM
        DISCRETE        " ",  "C",  "V"
    END_FIELD
 
 

    FIELD  dwells_line
        TYPE            I2
        DESCRIPTION     "This is the number of dwell points per line for 
                        scan pointing mode. This field is only set if this 
                        is a dwell scan."
        FORM
            NAME         "EGD"
            LABEL        "POINTS PER LINE"
        END_FORM
        RANGE           "1..99"
    END_FIELD
 
 

    FIELD  time_dwell
        TYPE            R4
        UNITS           "SECONDS"
        DESCRIPTION     "This is the wait time (duration) at each dwell point
                        in seconds (1 x 10e-1 precision).  This field is only
                        set if this is a dwell scan. "
        FORM
            NAME         "EGD"
            LABEL        "WAIT TIME PER POINT (secs)"
        END_FORM
    END_FIELD
 
 

    FIELD  df224_pit
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag indicates the setting of a bit in the
                        Process Interface Table (PIT) by the NSSC1 to
                        indicate to the DF224 to start the scan upon
                        activation."
        FORM
            NAME         "EGD"
            LABEL        "DF224 PIT FLAG (Y/N)"
        END_FORM
    END_FIELD
 
 

    FIELD  scan_angle
        TYPE            R4
        UNITS           "DEGREES"
        DESCRIPTION     "This field is the position angle of the scan line.
                        When scan_coord = 'C', the scan coordinate frame of
                        reference is celestial, and the scan_angle is specified 
                        as a counterclockwise angle about the beginning
                        of the first scan, from north at the target to
                        the direction of the first scan. 
                        When scan_coord = 'V', the scan coordinate frame of
                        reference is vehicle, and the scan_angle is specified as
                        a counterclockwise angle from the positive v3-axis to 
                        the direction of the first scan. (1.E-4 precision) "
        FORM
            NAME         "EGD"
            LABEL        "POS. ANGLE SCAN LINE (deg)"
        END_FORM
        RANGE           "0..360"
    END_FIELD
 
 

    FIELD  scan_rate
        TYPE            R4
        UNITS           "ARCSEC/SEC"
        DESCRIPTION     "This field is the commanded constant rate of the
                        line scan (the slew of the ST optical axis from point
                        A to B on the celestial sphere). "
        FORM
            NAME         "EGD"
            LABEL        "SCAN RATE  (arcsec/sec)"
        END_FORM
    END_FIELD
 
 

    FIELD  number_lines
        TYPE            I2
        DESCRIPTION     "This field is the number of lines per scan."
        FORM
            NAME         "EGD"
            LABEL        "NUMBER OF LINES PER SCAN"
        END_FORM
        RANGE           "1..99"
    END_FIELD
 
 

    FIELD  scan_width
        TYPE            R4
        UNITS           "ARCSECONDS"
        DESCRIPTION     "This field is the scan width."
        FORM
            NAME         "EGD"
            LABEL        "SCAN WIDTH (arcsec/sec)"
        END_FORM
        RANGE           "0..3600" 
    END_FIELD
 
 

    FIELD  scan_length
        TYPE            R4
        UNITS           "ARCSECONDS"
        DESCRIPTION     "This field is the scan length."
        FORM
            NAME         "EGD"
            LABEL        "SCAN LENGTH(arcsec/sec)"
        END_FORM
        RANGE

    END_FIELD           "0..3600" 
 
 

    FIELD  angle_sides
        TYPE            R4
        UNITS           "DEGREES"
        DESCRIPTION     "This field is the angle between sides of the scan 
                        parallelogram clockwise angle, about the beginning 
                        of the first scan, from the direction of the first 
                        scan to the side of the scan parallogram. 
                        (1.E-4 precision). "
        FORM
            NAME         "EGD"
            LABEL        "PARALLELOGRAM (arcsec/sec)"
        END_FORM
        RANGE           "0..360"
    END_FIELD
 
 

    FIELD  duration
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "The duration of the scan."
        FORM
            NAME         "EGD"
            LABEL        "TOTAL DURATION"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
 
 

    FIELD  target_id
        TYPE TARGET_ID_TYPE
        FORM
            NAME         "EGD"
            LABEL        "TARGET ID"
        END_FORM
    END_FIELD
 


    FIELD  astrom_tgt
        TYPE            C1
        DESCRIPTION     "This flag indicates the FGS astrometry
                        target type, where:
                           P : primary
                           R : reference
                           N : neither--set to N if not an astrometry exposure.
                        The field defaults to N."
        FORM
            NAME         "EGD"
            LABEL        "FGS ASTR. TARGET TYPE(P/R/N)"
        END_FORM
        DISCRETE        "N",  "P",  "R"
    END_FIELD

 

    FIELD  si_used
        TYPE            C4
        DESCRIPTION     "This field specifies which science instrument is
                        being used for this exposure. The value is left
                        justified."
        FORM
            NAME         "EGD"
            LABEL        "SI USED (CSTR/HSP/HRS/FOC/FOS/NIC/STIS/WFII/WFPC/FGS)"
        END_FORM
        DISCRETE        " ",  "CSTR",  "FGS",  "FOC",  "FOS",  
                        "HRS",  "HSP",  "NIC",  "STIS",  "WFII", "WFPC"
    END_FIELD
 
 

    FIELD  sky_aper
        TYPE            C10
        DESCRIPTION     "This is the slit aperture id used for background light
                        (sky) observation. This field is set by TRANS for the
                        FOS."
        FORM
            NAME         "EGD"
            LABEL        "SLIT APERTURE ID FOR BACKGROUND LIGHT(SKY)"
        END_FORM
    END_FIELD
 
 

    FIELD  coord_id
        TYPE            C10
        DESCRIPTION     "This field is the id of an aperture coordinate system.
                        An aperture coordinate system definition provides
                        the reference point, axes, and orientation of the
                        aperture, the extent of the aperture, and conversion
                        parameters for converting between coordinate system
                        types and for converting to the ST coordinate system.
                        The id specified is restricted to one defined via
                        the ST PDB tape. "
        FORM
            NAME         "EGD"
            LABEL        "COORDINATE SYSTEM ID"
        END_FORM
    END_FIELD
 
 

    FIELD  start_state
        TYPE            C1
        DESCRIPTION     "This field specifies the science instrument start state
                        for this exposure. 
                           H : hold 
                           S : standby
                           O : operate (default).
                        The value currently is defaulting to O."
        FORM
            NAME         "EPF"
            LABEL        "SI STATES (H=HOLD/S=STANDBY/O=OPERATE)
                          START STATE"
        END_FORM
        DISCRETE        "H",  "O",  "S"
    END_FIELD
 
 

    FIELD  stop_state
        TYPE            C1
        DESCRIPTION     "This field specifies the science instrument stop state
                        for this exposure. 
                           H : hold 
                           S : standby
                           O : operate (default).
                        The value currently is defaulting to O.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SI STATES (H=HOLD/S=STANDBY/O=OPERATE)
                          STOP  STATE"
        END_FORM
        DISCRETE        "H",  "O",  "S"
    END_FIELD
 
 

    FIELD  mode
        TYPE            C*18
        DESCRIPTION     "This field represents the instrument mode.
                           HSP:  SCP  = single color photometry
                                 SSP  = star/sky photometry
                                 ARS  = area scan 
                                 DUM  = a dump
                           WFPC: FULL = full-resolution (800x800)
                                 AREA = area-integration (400x400)
                           WFII: FULL = full-resolution 
                                 AREA = area-integration 
                            FOS: The modes specify how the data should be
                                 calibrated.
                                 IMAGE
                                 TARGET ACQUISITION 
                                 SPECTROSCOPY
                                 RAPID-READOUT 
                                 TIME-TAGGED 
                                 TIME-RESOLVED
                                 SPECTROPOLARIMETRY 
                            HRS: DIRECT READOUT
                                 ACCUMULATION 
                                 TARGET ACQUISITION "
        FORM
            NAME         "EPF"
            LABEL        "HSP, WFPC, FOS, HRS, WFII MODE INDICATOR"
        END_FORM
        RANGE            "SCP", "SSP", "ARS", "DUM", "FULL", "AREA",
                         "TARGET ACQUISITION", "SPECTROSCOPY", "RAPID-READOUT",
                         "TIME-TAGGED", "TIME-RESOLVED", "SPECTROPOLARIMETRY",
                         "DIRECT READOUT", "ACCUMULATION", "TARGET ACQUISITION",
                         "IMAGE"
    END_FIELD
 
 

    FIELD  optcrly
        TYPE            C*8
        DESCRIPTION     "This field represents the optical relay.
                        These are the two possible magnifications in which 
                        the FOC operates. 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "OPTICAL RELAY
                            (F48/F96)"
        END_FORM
        DISCRETE        " ",  "F48",  "F96"
    END_FIELD
 
 

    FIELD  smmmode
        TYPE            C*8
        DESCRIPTION     "This field represents the FOC spectrographic mirror 
                         mechanism.
                         (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SPECTROGRAPHIC MIRROR MECHANISM
                            (INBEAM/NOTUSED)"
        END_FORM
        DISCRETE        " ",  "INBEAM",  "NOTUSED"
    END_FIELD
 
 

    FIELD  shtmode
        TYPE            C*8
        DESCRIPTION     "This field represents the FOC shutter mode.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SHUTTER MODE
                            (INBEAM/NOTUSED)"
        END_FORM
        DISCRETE        " ",  "INBEAM",  "NOTUSED"
    END_FIELD
 
 

    FIELD  ledmode
        TYPE            C*8
        DESCRIPTION     "This field represents the FOC calibration led mode.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "CALIBRATION LED MODE
                            (ACTIVE/NOTUSED)"
        END_FORM
        DISCRETE        " ",  "ACTIVE",  "NOTUSED"
    END_FIELD
 
 

    FIELD  pxformt
        TYPE            C*8
        DESCRIPTION     "This field represents the FOC pixel format.
                        (not used by SPSS software)"
        UNITS
        FORM
            NAME         "EPF"
            LABEL        "PIXEL FORMAT
                            (NORMAL/ZOOM)"
        END_FORM
        DISCRETE        " ",  "NORMAL",  "ZOOM"
    END_FIELD
 
 

    FIELD  optelt1
        TYPE            I*2
        DESCRIPTION     "This specifies which FOC filter or optical
                        element was used on wheel 1(f48,f96): 0,...,11. 
                         (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SI OPTICAL ELEMENTS: WHEEL 1"
        END_FORM
    END_FIELD
 
 

    FIELD  optelt2
        TYPE            I*2
        DESCRIPTION     "This specifies which FOC filter or optical
                        element was used on wheel 2(f48,f96): 0,...,11.  
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SI OPTICAL ELEMENTS: WHEEL 2"
        END_FORM
    END_FIELD
 
 

    FIELD  optelt3
        TYPE            I*2
        DESCRIPTION     "This specifies which FOC filter or optical
                        element was used on wheel 3(f96): 0,...,11. 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SI OPTICAL ELEMENTS: WHEEL 3"
        END_FORM
    END_FIELD
 
 

    FIELD  optelt4
        TYPE            I*2
        DESCRIPTION     "This specifies which FOC filter or optical
                        element was used on wheel 4(f96) : 0,...,11.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SI OPTICAL ELEMENTS: WHEEL 4"
        END_FORM
    END_FIELD
 
 

    FIELD  detectob
        TYPE            I*2
        DESCRIPTION     "This holds the number of the HSP detector
                        that was used for data from the object
                        during this observation.  It is one of
                        the five image dissector tubes (numbered
                        from 1 to 5), including the two cste
                        photocathodes, the two bialkali cathodes,
                        and the photomultiplier tube.
                         -1 = No Detector 
                        1,2 = CsTe 
                        3,4 = Bialkali 
                          5 = Photomultiplier
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "OBJECT DETECTOR"
        END_FORM
    END_FIELD
 
 

    FIELD  detectsk
        TYPE            I*2
        DESCRIPTION     "This holds the number of the possible HSP
                        detector that was used for data from the
                        sky (or background) during this observation.
                        It is one of the five image
                        dissector tubes (numbered from 1 to 5),
                        including the two cste photocathodes, the
                        two bialkali cathodes, and the
                        photomultiplier tube.  When mode is SCP or
                        ARS, this field will contain the null value
                        (-1). 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SKY    DETECTOR"
        END_FORM
    END_FIELD
 
 

    FIELD  iszerofr
        TYPE            C*3
        DESCRIPTION     "If the accompanying WFPC or WFII data is a zero
                        frame, this has the value 'YES'.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "ZERO FRAME DATA (YES/NO)"
        END_FORM
        DISCRETE        " ",  "NO",  "YES"
    END_FIELD
 
 

    FIELD  camera
        TYPE            C*10
        DESCRIPTION     "This indicates which WFPC or WFII camera
                        was used to obtain the scientific data.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "CAMERA TYPE (WIDE-FIELD/PLANETARY)"
        END_FORM
        DISCRETE         " ", "WF", "PC"
    END_FIELD
 
 

    FIELD  filter1
        TYPE            I*2
        DESCRIPTION     "This holds the number of the first WFPC or WFII 
                        filter used.  The possible values are 0 to 48 for
                        WFPC (0 meaning the clear filter) and 0 to 67 for
                        WFII.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "FIRST FILTER NUMBER (0..48)"
        END_FORM
        RANGE           "0..67"
    END_FIELD
 
 

    FIELD  filter2
        TYPE            I*2
        DESCRIPTION     "This holds the number of the second WFPC or WFII
                        filter used.  The possible values are are 0 to 48 
                        for WFPC (0 meaning the clear filter) and 0 to 67 for
                        WFII.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SECOND FILTER NUMBER (0..48)"
        END_FORM
        RANGE           "0..67"
    END_FIELD
 
 

    FIELD  si_detector
        TYPE            I*2
        DESCRIPTION     "This is the SI detector used for this exposure.
                        If the configuration specifies more than one HSP
                        detector, the field is set according to the first.
                        The detectors are numbered as follows: 
                            0: FGS, WFS, S/C
                            1: FOC/48
                            2: FOC/96, FOC/288
                            3: FOS/RD
                            4: FOS/BL
                            5: HRS with Digicon 1
                            6: HRS with Digicon 2
                            7: WFC
                            8: PC
                            9: [HSP/UV1]
                           10: [HSP/UV2]
                           11: [HSP/VIS]
                           12: [HSP/POL]
                           13: [HSP/PMT]
                           14: WFPC2
                         (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SI DETECTOR IN USE"
        END_FORM
    END_FIELD
 
 

    FIELD  expected_pkt
        TYPE            I4
        DESCRIPTION     "This is the expected number of source packets. "
        FORM
            NAME         "EPF"
            LABEL        "EXPECTED NO. SOURCE PACKETS"
        END_FORM
    END_FIELD
 
 

    FIELD  control_id
        TYPE            C5
        DESCRIPTION     "This is information on how PODPS is supposed to
                        process the data. The data is stored in five bytes:

                          H/Y/N : Calibration data flag
                            F/P : Output product type  (film/plot)
                         2 bytes: Output format spec  
                            Y/N : Output product holding tank flag "
        FORM
            NAME         "EPF"
            LABEL        "OBSERVATION CONTROL RECORD ID"
        END_FORM
    END_FIELD
 
 

    FIELD  mt_scan_ang
        TYPE            R8
        UNITS           "DEGREES"
        DESCRIPTION     "This is the moving target scan diagonal angle.
                        (not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "SCAN DIAGONAL ANGLE (deg)"
        END_FORM
    END_FIELD
 
 

    FIELD  mt_scan_len
        TYPE            R8
        UNITS           "ARCSECONDS"
        DESCRIPTION     "This is the scan diagonal length.
                        (not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "SCAN DIAGONAL LEN.(arcsec)"
        END_FORM
    END_FIELD
 
 

    FIELD  sampoff
        TYPE            R*4
        DESCRIPTION     "This is the FOC sample offset.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "SAMPLE OFFSET"
        END_FORM
    END_FIELD
 
 

    FIELD  lineoff
        TYPE            R*4
        DESCRIPTION     "This is the FOC line offset.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "LINE OFFSET"
        END_FORM
    END_FIELD
 
 

    FIELD  linepfm
        TYPE            I*2
        DESCRIPTION     "This is the FOC number of lines per frame.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "NUMBER OF LINES PER FRAME"
        END_FORM
    END_FIELD
 
 

    FIELD  samppln
        TYPE            I*2
        DESCRIPTION     "This is the number of samples per line.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "NUMBER OF SAMPLES PER LINE"
        END_FORM
    END_FIELD
 
 

    FIELD  pt_src_flg
        TYPE            C*1
        DESCRIPTION     "This is the HSP point source flag, where P = point
                        (default), and E = extended. 
                        (not used by SPSS software)"
        UNITS
        FORM
            NAME         "EPF"
            LABEL        "POINT SOURCE FLAG
                            (P = Point / E = Extended)"
        END_FORM
        DISCRETE        "E",  "P"
    END_FIELD
 
 

    FIELD  cammode
        TYPE            C*8
        DESCRIPTION     "This is the coronographic apodizer mask.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "CORONOGRAPHIC APODIZER MASK"
        END_FORM
    END_FIELD
 
 

    FIELD  hrs_detector
        TYPE            I*2
        DESCRIPTION     "This is the HRS detector being used to collect the
                        raw data:
                        1 : digicon detector 1 (csi/lif photocathode)
                        2 : digicon detector 2 (cste/mgf2 photocathode) 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "DETECTOR IN USE (1=CsI/LiF/2=CsTe/MgF2)"
        END_FORM
    END_FIELD
 
 

    FIELD  grating
        TYPE            C*9
        DESCRIPTION     "This field stores the HRS grating/echelle mode:
                        G140M,G160M,G200M,G270M,G140L,ECH-A,ECH-B,
                        MIRROR-A1,MIRROR-A2,MIRROR-N1,MIRROR-N2 or
                        NDF = not defined,
                        ERR = error.
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "GRATING/ECHELLE (ECH-A/ECH-B/G140L/G140M/
                                     G160M/G200M/G270M/MIRROR-A1/
                                     MIRROR-A2/MIRROR-N1/MIRROR-N2/
                                     NDF=NOT DEFINED/ERR=ERROR)"
        END_FORM
        DISCRETE        " ",  "ECH-A",  "ECH-B",  "ERR",  "G140L",  
                        "G140M",  "G160M",  "G200M",  "G270M
    END_FIELD
 
 

    FIELD  fos_detector
        TYPE            C*5
        DESCRIPTION     "The field stores the FOS detector being used to 
                        collect the raw data:
                        AMBER : side a digicon (bialkali photocathode),
                        BLUE  : side b digicon (trialkali photocathode),
                        ERROR : error. 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "FOS DETECTOR IN USE 
                              (AMBER=SIDE A/BLUE=SIDE B/ERROR=ERROR)"
        END_FORM
        DISCRETE        " ",  "AMBER",  "BLUE",  "ERROR"
    END_FIELD
 
 

    FIELD  fchnl
        TYPE            I*2
        DESCRIPTION     "This is the first FOS channel to be processed: 
                        0,2,4,...,510 or -1 for error. 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "FIRST CHANNEL TO BE PROCESSED 
                            (-1=ERROR/0,2,4,...,510)"
        END_FORM
    END_FIELD
 
 

    FIELD  nchnls
        TYPE            I*2
        DESCRIPTION     "This is the number of FOS channels to be processed: 
                        2,4,...,512 or -1 for error. 
                        (not used by SPSS software)"
                        
        FORM
            NAME         "EPF"
            LABEL        "NUMBER OF CHANNELS TO BE PROCESSED 
                            (-1=ERROR/2,4,...,512)"
        END_FORM
    END_FIELD
 
 

    FIELD  nxsteps
        TYPE            I*2
        DESCRIPTION     "This is the number of FOS xsteps per ystep: 1,...,32
                        or -1 for error. 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "NUMBER XSTEPS PER YSTEP (-1=ERROR/1..32)"
        END_FORM
    END_FIELD
 
 

    FIELD  overscan
        TYPE            I*2
        DESCRIPTION     "This is the FOS overscan number: 1,2,3,4,...,256
                        or -1 for error. 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "OVERSCAN NUMBER (-1=ERROR/1..256)"
        END_FORM
    END_FIELD
 
 

    FIELD  aper_id
        TYPE            C*3
        DESCRIPTION     "This is the FOS entrance aperture id: A-1,A-2,A-3,A-4,
                        B-1,B-2,B-3,B-4,C-1,C-2,C-3,C-4,or ERR for error. 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "ENTRANCE APERTURE ID 
                             (A-1/A-2/A-3/A-4/B-1/B-2/B-3/B-4/
                              C-1/C-2/C-3/C-4/ERR=ERROR)"
        END_FORM
        DISCRETE        " ",  "A-1",  "A-2",  "A-3",  "A-4",  
                        "B-1",  "B-2",  "B-3",  "B-4",  
                        "C-1",  "C-2",  "C-3",  "C-4", "ERR"  
    END_FIELD
 
 

    FIELD  polar_id
        TYPE            C*1
        DESCRIPTION     "This is the FOS polarizer id: A,B,C
                        or E for error. 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "POLARIZED ID (E=ERROR/A/B/C)"
        END_FORM
        DISCRETE        " ",  "A",  "B",  "C",  "E"
    END_FIELD
 
 

    FIELD  fgwa_id
        TYPE            C*3
        DESCRIPTION     "This is the FOS the disperser id: CAM,H13,H19,H27,H40,
                        H57,H78,L15,L65,PRI, or ERR for error. 
                        (not used by SPSS software)"
        FORM
            NAME         "EPF"
            LABEL        "DISPERSER ID (ERR=ERROR/CAM/H13/H19/H27/H40/
                             H57/H78/L15/L65/PRI)"
        END_FORM
        DISCRETE        " ",  "CAM",  "ERR",  "H13",  "H19",  "H27",  
                        "H40",  "H57",  "H78",  "L15",  "L65", "PRI"
    END_FIELD
 
 

    FIELD  gsss_request
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag indicates whether or not the qexposure
                        data should be sent in a GSSS request.
                        If the value is 'N', data will not be extracted from
                        the corresponding record.  If the value is 'Y',
                        data will be extracted from the corresponding record. 
                        The purpose of this field is to avoid replicating data
                        in the GSSS request (e.g. for duplicate  alignments), 
                        and also to avoid sending data in the GSSS request 
                        which should not be considered when selecting guide
                        stars (e.g. for certain exposures of astrometry 
                        reference stars). "
        FORM
            NAME         "EGD"
            LABEL        "GSSS REQUEST"
        END_FORM
    END_FIELD
 
 

    FIELD  pname
        TYPE            C*6
        DESCRIPTION     "This is the name of the GHRS mosaic pseudo-aperture
                        used to identify a specific mirror to be
                        used during a GHRS spiral search.  This
                        value is generated by TRANS, and is used
                        by SPSS/SCS to fill in the support schedules
                        sent to OSS.
                        (not used by SPSS software)"
        FORM
            NAME         "EGD"
            LABEL        "GHRS MOSAIC PSEUDO-APERTURE NAME"
        END_FORM
    END_FIELD
 
 
END_RECORD
 
 
!------------------------------------------------------------------------------
!
!   RELATION DECLARATION
!
!------------------------------------------------------------------------------
 
 
RELATION  qexposure
 
    TYPE             QEXP_TYPE
 
    DESCRIPTION      "Science Instrument Exposure Data Relation"
 
    SUBSYSTEM_USING  "SPSS", "TRANS", "PODPS"
    FORM
        NAME         "EGD", "EPF"
    END_FORM
 
    INDEX  qexposure_1
        TYPE         unique, clustered
        FIELDS       proposal_id, obset_id, version_num, alignment_id, 
                     exposure_id
    END_INDEX
 
    INDEX  qexposure_2
        TYPE         nonclustered
        FIELDS       target_id
    END_INDEX
 
END_RELATION
 
!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------
 
 
INSTANCE  qexposure
 
    GLOBAL
 
    TYPE        QEXP_TYPE
 
END_INSTANCE

Go to the top.