Go to the bottom.
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! SDDL Name:	QBS_OBSET.SDDL
!
! Purpose:      This SDDL file defines the qbs_obset relation.
!
! Modification History:
!
!   Date       PR      Who          Reason
! --------   -------   ---   -------------------------------------------------
! 11/16/94   27329     RJS   Original implementation
! 03/12/96   19344     MRB   Removed four obsolete fields, marked 3 for deletion
! 04/10/96   31028     MRB   Removed fields facility, reference, and software
! 05/10/96   31409     NLC   Added field: prev_roll_fl
! 03/07/97   33001     sxt   Removed orient_req field
! 01/07/98   35442     sfs   Added field override_rec_id, original_scenario,
!                            and last_rr_opt.
! 02/16/98   35967     mmb   Updated documentation for ref_targ_id, critic_type.
! 03/13/98   30633     egb   Add related_fields for new qbpcs_def fields;
!			     no actual change to this table, documentation only.
! 04/13/98   36218     sfs   Add include_in_same_gs field.
! 04/12/99   38760     bao   GSC Incompleteness
! 06/30/99   39354     sfs   Fixed override descriptions.
! 05/17/00   38527     bao   GS_REQUEST needs to be able to accept a particular
!                            GS Pair to use
! 06/13/00   37231     bao   Scheduling FHST Updates Project
! 03/28/01   31178     dpj   parallax_fl needed 3rd state
! 08/10/01   33750     dpj   new field update_success
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!

LANGUAGE	C, FORTRAN, SQL

INCLUDE         ZSPSS_USER_TYPES.SDDL
 
RECORD  QBSOBS_TYPE
 
!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------
 
    DESCRIPTION    "This is the master relation for observation set data 
		    in the PMDB.
 
		    An observation set is a collection of one or more
                    alignments that are grouped together based on FGS pointing
                    requirements.  That is, if multiple alignments can all be
                    executed using the same guide star pair, they are grouped
                    into the same observation set.  
 
		    The commands PMDB/UPDATE, CCLIST/CREATE, and CALENDAR/*, 
		    Guide Star processing, and other SPSS commands access most 
		    of the fields in this relation."
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 
 

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

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

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

    FIELD  target_opp
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to indicate if this observation
                        set is a target of opportunity observation set."
        FORM
            NAME         "BGD"
            LABEL        "TARGET OF OPPORTUNITY     (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  parallel_can
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to indicate if this observation
                        set is a parallel scheduling candidate. If set to 'Y', 
			the SU defined for this obset should be flagged as 
			a parallel."
        RELATED_FIELDS  "qscheduling.parallel_su"
        FORM
            NAME         "BGD"
            LABEL        "PARALLEL CANDIDATE        (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  expos_time
        TYPE            I4
        DESCRIPTION     "This field specifies the proposer estimated exposure
                        time for this observation set. This value is used to set
                        the minimun guide star usability window."
        FORM
            NAME         "BGD"
            LABEL        "ESTIMATED EXPOSURE TIME"
        END_FORM
    END_FIELD
 

    FIELD  calc_ex_time
        TYPE            I4
        DESCRIPTION     "This field specifies the total exposure time for this
                        observation set.  It is calculated from all exposure
                        times in this observation set (sum of estimated exposure
                        times)."
        FORM
            NAME         "BGD"
            LABEL        "CALC. EXPOSURE TIME"
        END_FORM
    END_FIELD
 

    FIELD  pri_proposer
        TYPE            I2
        DESCRIPTION     "This field specifies the observation set priority
                        assigned by the proposer (range 1-100, where
                        100 is the highest priority)"
	RELATED_FIELDS  "qscheduling.priority"
        FORM
            NAME         "BGD"
            LABEL        "PROPOSER PRIORITY LEVEL (1-100)"
        END_FORM
        RANGE           "1..100"
    END_FIELD
 

    FIELD  priority
        TYPE            I2
        DESCRIPTION     "This field specifies the observation set priority
			assigned by TAC/director (range 1-100, where
                        100 is the highest priority). The SU default
                        priority is based on this field."
        FORM
            NAME         "BGD"
            LABEL        "TAC/DIR  PRIORITY LEVEL (1-100)"
        END_FORM
        RANGE           "1..100"
    END_FIELD
 

    FIELD  num_exposure
        TYPE            I2
        DESCRIPTION     "This field specifies the proposer expected number of
                        exposures for this observation set."
        FORM
            NAME         "BGD"
            LABEL        "EXPECTED NUM. OF EXPOSURES"
        END_FORM
    END_FIELD
 

    FIELD  num_observ
        TYPE            I2
        DESCRIPTION     "This field specifies the proposer expected number of
                        observations for this observation set."
        FORM
            NAME         "BGD"
            LABEL        "EXPECTED NUM. OF OBSERVATIONS"
        END_FORM
    END_FIELD
 

    FIELD  repeated
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to indicate if this is a repeated
                        observation set.  This field is always 'N'."
        FORM
            NAME         "BGD"
            LABEL        "REPEAT OBSET (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  num_repeat
        TYPE            I2
        DESCRIPTION     "This field is always 0 and maps to repeat field above."
        RELATED_FIELDS  "qbs_obset.repeated"
        FORM
            NAME         "BGD"
            LABEL        "NUM. OF REPETITIONS"
        END_FORM
    END_FIELD
 

    FIELD  order_spec
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field indicates if this observation set must be 
			 scheduled before or after another observation.  This
			 field is always 'N'."
        FORM
            NAME         "BGD"
            LABEL        "ORDER SPECIFIC OBSET     (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  recorder
        TYPE            C1
        DESCRIPTION     "This field specifies the usage of tape recorder.
                        'U' = used, 'N' = not used, 'B' = used for backup."
        RELATED_FIELDS  "qreadout.tape_mode" "qalignment.tape_recordr"

        FORM
            NAME         "BGD"
            LABEL        "TAPE RECORDER USAGE     (U/N/B)"
        END_FORM
        DISCRETE        "B",  "N",  "U"
    END_FIELD
 

    FIELD  ac_ephemeris
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field indicates if accurate ST ephemeris data
                        is required. "
        FORM
            NAME         "BGD"
            LABEL        "ACCURATE ST EPH REQ.      (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  accuracy_eph
        TYPE            R4
        DESCRIPTION     "This field specifies the accuracy of the ST ephemeris
                        data required."
        UNITS           "KILOMETER"
        FORM
            NAME         "BGD"
            LABEL        "ACCURACY (km)"
        END_FORM
    END_FIELD
 

    FIELD  ac_clock
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field indicates if an accurate S/C clock offset
                        is required. "
        FORM
            NAME         "BGD"
            LABEL        "ACCURATE ST EPH REQ.      (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  accuracy_clk
        TYPE            R4
        DESCRIPTION     "This field specifies the accuracy of the S/C clock
                        offset that is required.  This field is set if
                        QBSOBSET.ac_clock = 'Y'."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "ACCURATE S/C CLOCK OFFSET REQ. ACCURACY (secs)"
        END_FORM
    END_FIELD
 

    FIELD  ground_coord
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field indicates if this observation set must be 
			 coordinated with ground observations."
    END_FIELD
 

    FIELD  critic_type
        TYPE            C1
        DESCRIPTION     "This field is used to indicate the type of criticality,
                        where
                            'T' = Time critical.
                            'P' = Phase critical, or Phase and Time critical.
                            'N' = Not applicable (default)."
        FORM
            NAME         "BGD"
            LABEL        "TIME/PHASE CRITICAL    (T/P/N)"
        END_FORM
        DISCRETE        "N",  "P",  "T"
    END_FIELD
 

    FIELD  absolute_tm
        TYPE SOGS_CHAR_TIME_TYPE
        DESCRIPTION     "This field specifies the absolute date/time for start
                        of the observation set."
        FORM
            NAME         "BGD"
            LABEL        "OBSET ABSOLUTE START TIME"
        END_FORM
    END_FIELD
 

    FIELD  init_epoch
        TYPE            R8
        DESCRIPTION     "This field specifies the initial epoch for special
                        phase of periodic phenomenon. SECONDS from 1980."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "INITIAL_EPOCH"
        END_FORM
    END_FIELD
 

    FIELD  period_sph
        TYPE            R8
        DESCRIPTION     "This field specifies the period for special phase
                        of periodic phenomenon."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "PERIOD"
        END_FORM
    END_FIELD
 

    FIELD  phase_sph
        TYPE            R4
        DESCRIPTION     "This field specifies the phase for special phase of
                        periodic phenomenon.  The phase is the time between
                        the initial epoch and the start of phase critical
                        window."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "PHASE (Time between initial epoch and start of phase
                         critical window)"
        END_FORM
    END_FIELD
 

    FIELD  critic_flag
        TYPE            C1
        DESCRIPTION     "This field is the time criticality flag where
                        'R' = reserved time critical.  This means that
                              the observation set must be scheduled in the
                              time critical window and no other obsets
                              can be scheduled in the same window.
                        'T' = time critical.  This means that the observation
                              schedule obset in time critical window but other
                              obsets may be scheduled also.
                        'N' = not time critical. This means that the observation
                              set may be scheduled at any time. Time critical
                              windows are ignored."
	RELATED_FIELDS  "qscheduling.critical_flg"
        FORM
            NAME         "BGD"
            LABEL        "TIME CRITICAL FLAG     (R/T/N)"
        END_FORM
        DISCRETE        "N",  "R",  "T"
    END_FIELD
 

    FIELD  algn_time
        TYPE            I4
        DESCRIPTION     "This field specifies the total alignment time
                         summed over all alignments in this observation set."
        FORM
            NAME         "BGD"
            LABEL        "CALC. ALIGN TIME"
        END_FORM
    END_FIELD
 

    FIELD  interleave
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field indicates if interleavers are allowed with 
			 this observation set.   A 'Y' means that this obset 
			 can be interrupted and interleaved. An 'N' means that 
			 interleavers are not allowed.  It is assumed by SPSS
			 that if the obset is non-interruptible, it is also 
			 non-interleavable."
        FORM
            NAME         "BGD"
            LABEL        "INTERLEAVERS ALLOWED     (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  interrupt
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to indicate if this observation
                        set must be scheduled as a whole entity or can be
                        interrupted for SAA, occultations, etc.  Any obset 
			that is non-interruptible is assumed by SPSS to also be
                        non-interleavable."
	RELATED_FIELDS  "qalignment.interrupt"
        FORM
            NAME         "BGD"
            LABEL        "INTERRUPTION ALLOWED     (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  min_duration
        TYPE            I4
        DESCRIPTION     "This field specifies the minimum time the observation
                        set can be interrupted.  This is set when
                        QBS_OBSET.interrupt = 'Y'."
        RELATED_FIELDS  "qbs_obset.interrupt"
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "MIN. DURATION"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
   

    FIELD  pcs_mode
        TYPE PCS_MODE_TYPE
        DESCRIPTION     "This field specified the mode used by the Pointing
                         Control System (PCS) during the observation set.
                         Allowed values are:
                         'FGS'  - Fine Guidance Sensors are locked onto
                                  guide stars.
                         'FHST' - Fixed Head Star Trackers are locked onto
                                  reference stars.
                         'GYRO' - Gyroscopes are used to maintain pointing
                         'BOTH' - FGS and FHST (very rarely used)"
        FORM
            NAME         "BGD"
            LABEL        "PCS MODE"
        END_FORM
        DISCRETE         "FGS", "FHST", "GYRO", "BOTH"
    END_FIELD
 

    FIELD  scenario_acq
        TYPE GSACQ_SCENARIO_NAME_TYPE
        DESCRIPTION     "This field specifies the scenario name for the guide
                        star acquisition associated with this obset."
        FORM
            NAME         "BGD"
            LABEL        "SCENARIO NAME"
        END_FORM
    END_FIELD


    FIELD  original_scenario
        TYPE GSACQ_SCENARIO_NAME_TYPE
        DESCRIPTION     "This field specifies the scenario name for the guide
                        star acquisition associated with this obset as  
                        populated by TRANS.  Field 'scenario_acq' contains the
                        value in use."
    END_FIELD
 

    FIELD  last_rr_opt
        TYPE            C1
        DESCRIPTION     "This field specifies the roll range option used
                        in the guide star request.
                        'C' = Centerlineable, 'A' = Acquisition, or 
                        'G' = Guidestar"
        RELATED_FIELDS  "qbacqs.rr_opt"
        DISCRETE        "C",  "A",  "G"
    END_FIELD


    FIELD  prim_fhst
        TYPE            C1
        DESCRIPTION     "This field specifies the primary FHST id (1,2, or 3)
                        to use for the PCS acquisition.  This field is set if 
			the QBS_OBSET.pcs_mode is 'FHST' or 'BOTH'."
        RELATED_FIELDS  "qbs_obset.pcs_mode"
        FORM
            NAME         "BGD"
            LABEL        "PRIMARY   FHST       (1/2/3)"
        END_FORM
        DISCRETE        " ",  "1",  "2",  "3"
    END_FIELD
 

    FIELD  second_fhst
        TYPE            C1
        DESCRIPTION     "This field specifies the secondary FHST id (1,2, or 3)
                        to use for the PCS acquisition.  This field is set
                        if QBS_OBSET.pcs_mode 'FHST' or 'BOTH'."
        RELATED_FIELDS  "qbs_obset.pcs_mode"
        FORM
            NAME         "BGD"
            LABEL        "SECONDARY FHST       (1/2/3)"
        END_FORM
        DISCRETE        " ",  "1",  "2",  "3"
    END_FIELD
 

    FIELD  delay_data
        TYPE            I4
        DESCRIPTION     "This field specifies the time in seconds to delay
                        before taking data after a guide star acquisition. 
                        This is specified relative to the guide star
                        acquisition start time."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "DELAY BEFORE TAKING DATA AFTER GSSS ACQUISITION"
        END_FORM
    END_FIELD
 

    FIELD  saa_model
        TYPE SAA_MODEL_TYPE
        DESCRIPTION     "This field specifies the id of the SAA model (02,99)
                        which defines the region in which the FGS/FHST must
                        not be operated while the ST vehicle nadir lies in
                        the region.  It defaults to a database value dependent
                        on PCS mode if qbssad_saa_def = 'Y'.  The field is
                        not used if the SAA avoidance check
                        QBS_OBSET.saa_flag = 'N'."
        RELATED_FIELDS  "qbs_obset.saa_flag"
        FORM
            NAME         "BGD"
            LABEL        "MODEL ID"
        END_FORM
        RANGE           "02..99"
    END_FIELD
 

    FIELD  saa_ovr
        TYPE            C1
        DESCRIPTION     "This field defines the SAA model override flag.
                        A 'Y' means that the user input override value is to
                        be used (do not set default), while an 'N' means that
                        the SAA model is to a database value dependent on PCS
                        mode.  It is not used if the SAA avoidance check flag
                        QBS_OBSET.saa_flag = 'N'."
        RELATED_FIELDS  "qbs_obset.saa_flag" "qalignment.saa_ovr"

    END_FIELD
 

    FIELD  recovery_tm
        TYPE            I4
        DESCRIPTION     "This field specifies the SAA exit recovery time.
                        Upon exit from the saa region, the FGS/FHST must be
                        allowed time to recover before it can be used.
                        Defaults to a database value dependent on PCS mode.
                        This field is not used if the SAA avoidance check
                        flag QBS_OBSET.saa_flag = 'N'."
        RELATED_FIELDS  "qbs_obset.saa_flag"
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "RECOVERY TIME"
        END_FORM
    END_FIELD
 

    FIELD  recovery_ovr
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field will indicate whether the SAA exit recovery
                        time will be overriden by the user ('Y') or if the
                        database value that is dependent of PCS mode is to be
                        used ('N')."
    END_FIELD
 

    FIELD  seq_target
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to indicate if alignments sequence
                        must be maintained within this observation set. This
			is always 'Y'."
        FORM
            NAME         "BGD"
            LABEL        "ORDER CRITICAL TARGET/ALGN (Y/N)"
        END_FORM
    END_FIELD
  

    FIELD  fov_required
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to indicate if FOV data is required
                        from GSSS for OSS.  This is always 'N'."
    END_FIELD
 

    FIELD  fov_scan_ra
        TYPE            R*8
        DESCRIPTION     "This field specifies, together with
                        QBS_OBSET.fov_scan_dec, the FOV scan center position
                        in the heliocentric coordinate system relative to the
                        mean equator and equinox at the beginning of julian
                        epoch j2000.0."
        UNITS           "DEGREES"
        RELATED_FIELDS  "qbs_obset.fov_scan_dec"
        RANGE           "0..360"
    END_FIELD
 

    FIELD  fov_scan_dec
        TYPE            R*8
        DESCRIPTION     "This field specifies, together with
                        QBS_OBSET.fov_scan_ra, the FOV scan center position
                        in the heliocentric coordinate system relative to the
                        mean equator and equinox at the beginning of julian
                        epoch j2000.0."
        UNITS           "DEGREES"
        RANGE           "-90..90"
        RELATED_FIELDS  "qbs_obset.fov_scan_ra"
    END_FIELD
 

    FIELD  fov_scan_ext
        TYPE            R*8
        DESCRIPTION     "This field specifies the dimension of a side of a
                        square FOV."
        UNITS           "ARCSECS"
        RANGE           "0..3600"
    END_FIELD
 

    FIELD  fov_tape
        TYPE            C6
        DESCRIPTION     "This field specifies the base 36 tape id used to
                        indicate the tape identification of the magnetic tape
                        to be used for ST FOV data.  It is the human-readable
                        paper on the outside of the tape.  This data item will
                        be ignored if the FOV required flag -
                        QBS_OBSET.fov_required is set to 'N'.  Possible values
                        range from '000000' to 'ZZZZZZ'"
        RELATED_FIELDS  "qbs_obset.fov_required"
    END_FIELD
 

    FIELD  fov_tape_lbl
        TYPE            C6
        DESCRIPTION     "This field specifies the base 36 tape label used to
                        indicate the tape label of the magnetic tape to be
                        used for ST FOV data. This is the computer-readable
                        record in the tape.  This data item will be ignored
                        if the fov required flag QBS_OBSET.fov_required is set
                        to 'N'"
        RELATED_FIELDS  "qbs_obset.fov_required"
    END_FIELD
 

    FIELD  brit_object
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field specifies whether bright object alerts are
                        to be provided by GSSS.  If 'Y', GSSS will search its
                        databases for possible bright objects and supply any
                        such information to sogs. If 'N', no search for bright
                        objects is performed and no bright object alerts are
                        generated."
        FORM
            NAME         "BGD"
            LABEL        "BRIGHT OBJECT          (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  parall_targ
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to indicate whether or not GSSS
                        is requested to search its databases for possible new
                        parallel targets.  This field is obsoelte and is 
			always 'N'."
        FORM
            NAME         "BGD"
            LABEL        "PARALLEL TARGETS       (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  ready_for_gs
        TYPE            C1
        DESCRIPTION     "This field is used to indicate if the observation
                        set is ready for guide star request.
                            'Y' = it is ready.
                            'N' = it is not ready.
                            'C' = it is complete. UPDATES are not allowed."
        FORM
            NAME         "BGD"
            LABEL        "READY FOR GSSS REQUEST  (Y/N/C)"
        END_FORM
        DISCRETE        "C",  "N",  "Y"
    END_FIELD
 

    FIELD  fov_status
        TYPE            C1
        DESCRIPTION     "This field is used to indicate if FOV data was
                        requested or received from GSSS, where
                           'Q' = fov was requested,
                           'C' = fov data was received,
                           'N' = fov data was not requested."
    END_FIELD
 

    FIELD  bo_searched
        TYPE            C1
        DESCRIPTION     "This field indicates whether or not GSSS performed a 
			search of its data bases for bright objects in any 
			macro aperture during the execution of the observation 
			set. Possible values are:
			   'Y' = A bright object search was performed
			   'N' = No bright object search was done
			   'I' = A search was performed, but incompletely.
                                 Some bright objects possibly undetected"
        FORM
            NAME         "BGD"
  	    LABEL        "BRIGHT OBJECT       (Y/N/I)"        
        END_FORM
	DISCRETE	"Y", "N", "I"	
    END_FIELD
 

    FIELD  bo_limiting_mag
	TYPE    	R4
        DESCRIPTION	"This field is the magnitude of the faintest object
			(i.e., the object with the maximum magnitude) that was
			checked for bright object alerts. It is specified in 
			the FGS system". 
    END_FIELD


    FIELD  pltrg_srched
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field indicates whether or not GSSS performed a
                        search of its data bases for possible new parallel
                        targets during the execution of the observation set."
        FORM
            NAME         "BGD"
            LABEL        "PARALLEL TARGETS       (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  ready_flag
        TYPE            C1
        DESCRIPTION     "See description in qscheduling.ready_flag for more
			 details on this identical observation level field."
	RELATED_FIELDS  "qscheduling.ready_flag"
        FORM
            NAME         "BGD"
            LABEL        "READY FOR SCHED/PASS  (D/N/P/S)"
        END_FORM
        DISCRETE        "D",  "N",  "P",  "S"
    END_FIELD
 

    FIELD  pntg_update
        TYPE FULL_SOGS_CHAR_TIME_TYPE
        DESCRIPTION     "This field specifies the date of the last update of
                        ST pointing data.  Set when the PMDB/UPDATE function
                        was successfully executed for this observation set."
        FORM
            NAME         "BGD"
            LABEL        "DATE OF LAST PMDB/UPDATE OBSET"
        END_FORM
    END_FIELD
 

    FIELD  wndw_update
        TYPE FULL_SOGS_CHAR_TIME_TYPE
        DESCRIPTION     "This field specifies the date of the last update of
                        the observation set calculated windows. It is set when
                        the PMDB/UPDATE function was successfully executed 
                        for the scheduling unit associated with this
                        observation set."
        FORM
            NAME         "BGD"
            LABEL        "LAST UPDATE OF OBSET WINDOWS CALCULATED"
        END_FORM
    END_FIELD
 

    FIELD  ra_v1ref
        TYPE            R8
        UNITS           "DEGREES"
        DESCRIPTION     "This field specifies the right ascension of the v1
                        position.  It is the vector average of the target
                        positions (using the ref. POINT for area targets)
                        of all targets in this observation set. It is
                        specified in the heliocentric coordinate system
                        relative to the mean equator and equinox at the
                        beginning of julian epoch j2000.0."
        RANGE           "0..360"
    END_FIELD
 

    FIELD  dec_v1ref
        TYPE            R8
        UNITS           "DEGREES"
        DESCRIPTION     "This field specifies the declination of the v1
                        position.  It is the vector average of the target
                        positions (using the ref. POINT for area targets)
                        of all targets in this observation set. It is
                        specified in the heliocentric coordinate system
                        relative to the mean equator and equinox at the
                        beginning of julian epoch j2000.0."
        RANGE           "-90..90"
    END_FIELD
 

    FIELD  orbit_file
        TYPE            C15
        DESCRIPTION     "This field specifies the ST orbit ephemeris file name,
                        and has the format fffffffff;vvvvv.  It is used in
                        tools to derive target visibility windows."
        FORM
            NAME         "BGD"
            LABEL        "ST ORBIT EPHEMERIS FILE"
        END_FORM
    END_FIELD
 

    FIELD  ref_targ_id
        TYPE TARGET_ID_TYPE
        DESCRIPTION     "This field specifies the v1 reference axis target ID
			for targets which contain only moving targets.  It 
			identifies which moving target will be used as the 
			reference target for the specification of V3-axis 
			position angle ranges.  The field will be blank if not 
			applicable.
        FORM
            NAME         "BGD"
            LABEL        "V1 REFERENCE TARGET ID"
        END_FORM
    END_FIELD
 

    FIELD  prev_acq_fl
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to indicate whether this observation
                        set uses the previous observations set's guide stars.
                        This means that a guide star acquisition is not required
                        for this obset. A 'Y' means that this observation set
                        relies on the previous observation set's PCS
                        acquisition."
        FORM
            NAME         "BGD"
            LABEL        "PREVIOUS OBSET ACQUISITION FLAG"
        END_FORM
    END_FIELD
 

    FIELD  prev_acq_typ
        TYPE            C1
        DESCRIPTION     "This field specifies the previous acquisition type.
                            'N' = not applicable (default).
                            'P' = primary pcs acquisition indicating subsequent
                                  obsets use the same pair.
                            'B' = benign pcs reacquisition that uses same pair
                                  as the last acquisition.
                            'S' = secondary pcs acquisition occurring between
                                  primary acquisition and the reacquisition
                                  of the primary pair.
                            'R' = reacquisition of the primary pair."
        FORM
            NAME         "BGD"
            LABEL        "PREVIOUS ACQ. TYPE (B/N/P/R/S)"
        END_FORM
        DISCRETE        " ",  "B",  "N",  "P",  "R",  "S"
    END_FIELD
 

    FIELD  include_in_same_gs
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "If this field is set to 'N', then this obset will
                        be excluded from being merged with other obsets,
                        for a guide star request, via any alignment-level
                        offset sequences within this obset, as described by
                        qaoffset.offset_id."
        RELATED_FIELDS  "qaoffset.offset_id"
    END_FIELD


    FIELD  parallax_fl
        TYPE            C1
        DESCRIPTION     "This field is the ST parallax correction flag.
                        'Y' = Correct for parallax on the vehicle
                        'N' = Correct for parallax by Instruction Management
                              in the SMS
                        'A' = No parallax correction shall be done at all.
                              ('A' is for Absence.) 
        FORM
            NAME         "BGD"
            LABEL        "PARALLAX CORRECTION FLAG"
        END_FORM
        DISCRETE        "A",  "N",  "Y"
    END_FIELD
 

    FIELD  reacq_type
        TYPE            C1
        DESCRIPTION     "This field specifies the PCS reacquisition type:
                            'N' = noslew,
                            'S' = slew,
                            'C' = computed."
        FORM
            NAME         "BGD"
            LABEL        "REACQ. TYPE (N=Noslew/S=Slew/C=Computed)"
        END_FORM
        DISCRETE        "C",  "N",  "S"
    END_FIELD
 

    FIELD  reacq_det_tm
        TYPE            I4
        DESCRIPTION     "This field specifies the PCS reacquisition
                        determination time."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "REACQ. DETERMINATION"
        END_FORM
    END_FIELD
 

    FIELD  reacq_sn
        TYPE GSACQ_SCENARIO_NAME_TYPE
        DESCRIPTION     "This field specifies the PCS reacquisition scenario
                         name."
        FORM
            NAME         "BGD"
            LABEL        "SCENARIO NAME"
        END_FORM
    END_FIELD
 

    FIELD  reacq_co_ovr
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field indicates whether or not user-specified
                        reaquisition time coefficients are to be used instead
                        of defaults.
                          'Y' = use user input coefficients,
                          'N' = use default coefficients. Note that the reacq.
                        coef. defaults are the same as the acquisition
                        coef. defaults."
        FORM
            NAME         "BGD"
            LABEL        "OVERRIDE FLAG           (Y/N)"
        END_FORM
    END_FIELD
 

     FIELD  acq_co_ovr
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This is the PCS acquisition time coefficient override
                        flag, where
                            'Y' = use user input coefficients,
                            'N' = use default coefficients."
        FORM
            NAME         "BGD"
            LABEL        "OVERRIDE FLAG        (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  reacq_tm_nsl
        TYPE            I4
        DESCRIPTION     "This field specifies the PCS reacquisition time for
                        a 'noslew' type reacquisition."
        UNITS           "SECONDS"
	RELATED_FIELDS  "qbpcs_def.reacq_tm_nsl"
        FORM
            NAME         "BGD"
            LABEL        "REACQ. TIME FOR NOSLEW"
        END_FORM
    END_FIELD
 

    FIELD  max_slew_int
        TYPE            R4
        DESCRIPTION     "This field specifies the maximum slew angle allowed
                        for an interleaver."
        UNITS           "DEGREES"
        FORM
            NAME         "BGD"
            LABEL        "MAX SLEW (deg)"
        END_FORM
        RANGE
    END_FIELD
 

    FIELD  max_int_dur
        TYPE            I4
        DESCRIPTION     "This field specifies the maximum time an observation
                        set may be interrupted, as measured from the end of
                        the last science activity before the interruption
                        to the start of the first science activity after the
                        interruption."
        RELATED_FIELDS  "qbs_obset.interrupt" "qalignment.max_int_dur"

        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "MAX. DURATION"
        END_FORM
    END_FIELD
 

    FIELD  phase_duratn
        TYPE            R4
        DESCRIPTION     "This field specifies the phase critical window
                        duration if this is a phase critical obset."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "PHASE WINDOW DURATION"
        END_FORM
    END_FIELD
 

    FIELD  reacq_tm_slw
        TYPE            I4
        DESCRIPTION     "This field specifies the time calculated for all
                        slew angles between 0 and QBS_OBSET.max_slew_int.
                        The calculation maximizes the PCS REACQ. quadratic
                        over that interval."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "REACQ. TIME FOR SLEW"
        END_FORM
        RELATED_FIELDS  "qbs_obset.max_slew_int"
    END_FIELD
 

    FIELD  min_slew
        TYPE            R4
        DESCRIPTION     "This field specifies the minimum slew angle to be
                        used in calculating the PCS acquisition time. The
                        computed value will only be used if greater than
                        this value."
        UNITS           "DEGREES"
        FORM
            NAME         "BGD"
            LABEL        "MIN SLEW ANGLE FOR PCS ACQUISITION"
        END_FORM
    END_FIELD
 

    FIELD  numfhsts
        TYPE            C1
        DESCRIPTION     "This field specifies the number of FHSTs required to
                        be visible during the observation set. This field may
                        specify from 1-3 FHSTs are required.  If the 
                        pcs acquisition override flag is set to 'N'. this
                        field is set to QBPCSDEF.numfhsts."
        FORM
            NAME         "BGD"
            LABEL        "NUMBER OF FHSTS REQUIRED"
        END_FORM
        DISCRETE        "0",  "1",  "2",  "3"
        RELATED_FIELDS  "qbpcs_def.numfhsts"
    END_FIELD
 

    FIELD  acqcoef1
        TYPE            R4
        UNITS           "SECONDS"
        DESCRIPTION     "This field specifies the first coefficient of the
                        guide star acquisition time model. If the
                        pcs acquisition override flag is 'N', its value is
                        set to QBPCS_DEF.acqcoef1.  The guide star acquisition
                        time is computed from the ST position uncertainty U
                        and the pitch/yaw error coefficient for the obset
                        atterror to be :
                        acqcoef1 + acqcoef2 * (u + atterror ** acqcoef3)."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "COEF.'1' (sec)"
        END_FORM
        RELATED_FIELDS  "qbpcs_def.acqcoef1" "qbs_obset.acq_co_ovr"

    END_FIELD
 

    FIELD  acqcoef2
        TYPE            R4
        DESCRIPTION     "This field specifies the second coefficient of the
                        guide star acquisition time model. If the
                        pcs acquisition override flag is 'N', its value is
                        set to QBPCS_DEF.acqcoef2."
        UNITS           "SECONDS/ARCSECONDS"
        FORM
            NAME         "BGD"
            LABEL        "COEF.'2' (sec/arcsec**(coef.'3')"
        END_FORM
        RELATED_FIELDS  "qbpcs_def.acqcoef2" "qbs_obset.acq_co_ovr"

    END_FIELD
 

    FIELD  acqcoef3
        TYPE            R4
        DESCRIPTION     "This field specifies the third coefficient of the
                        guide star acquisition time model.  If the
                        pcs acquisition override flag is 'N', its value is
                        set to QBPCS_DEF.acqcoef3."
        FORM
            NAME         "BGD"
            LABEL        "COEF.'3'"
        END_FORM
        RELATED_FIELDS  "qbpcs_def.acqcoef3" "qbs_obset.acq_co_ovr"

    END_FIELD
 

    FIELD  rollerror
        TYPE            R4
        DESCRIPTION     "This field specifies the roll error coefficient of
                        the ST position uncertainty model associated with the
                        PCS mode.  If the pcs acquisition override flag is 'N',
                        its value is set to QBPCS_DEF.rollerror."
        UNITS           "ARCSECONDS"
        FORM
            NAME         "BGD"
            LABEL        "ROLL ERROR COEFFICIENT (arcsec)"
        END_FORM
        RELATED_FIELDS  "qbpcs_def.rollerror" "qbs_obset.acq_co_ovr"

    END_FIELD
 

    FIELD  rollrate
        TYPE            R4
        DESCRIPTION     "This field specifies the roll error degradation
                        coefficient of the ST position uncertainty model
                        associated with the PCS mode. If the pcs acquisition
                        override flag is 'N', its value is set to
                        QBPCS_DEF.rollrate."
        UNITS           "ARCSECONDS/SECOND"
        FORM
            NAME         "BGD"
            LABEL        "ROLL RATE COEFFICIENT (arcsec/sec)"
        END_FORM
        RELATED_FIELDS  "qbpcs_def.rollrate" "qbs_obset.acq_co_ovr"

    END_FIELD
 

    FIELD  atterror
        TYPE            R4
        DESCRIPTION     "This field specifies the pitch/yaw error coefficient
                        of the ST position uncertainty model associated with
                        the PCS mode. If the pcs acquisition override flag is
                        'N', its value is set to QBPCS_DEF.atterror."
        UNITS           "ARCSECONDS"
        FORM
            NAME         "BGD"
            LABEL        "ATTITUDE ERROR COEFFICIENT (arcsec)"
        END_FORM
        RELATED_FIELDS  "qbpcs_def.atterror" "qbs_obset.acq_co_ovr"

    END_FIELD
 

    FIELD  attrate
        TYPE            R4
        DESCRIPTION     "This field specifies the pitch/yaw error degradation
                        coefficient of the ST position uncertainty model
                        associated with the PCS mode.  If the pcs acquisition
                        override flag is 'N', its value is set to
                        QBPCS_DEF.attrate."
        UNITS           "ARCSECONDS/SECOND"
        FORM
            NAME         "BGD"
            LABEL        "ATTITUDE RATE COEFFICIENT (arcsec/sec)"
        END_FORM
        RELATED_FIELDS  "qbpcs_def.attrate" "qbs_obset.acq_co_ovr"

    END_FIELD
 

    FIELD  reacqcoef1
        TYPE            R4
        DESCRIPTION     "This field specifies the first coefficient of the
                        guide star acquisition time model. If the pcs
                        reacquisition override flag is 'N', its value is set to
                        QBPCS_DEF.reacqcoef1."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "COEF. '1'(sec)"
        END_FORM
        RELATED_FIELDS  "qbpcs_def.reacqcoef1" "qbs_obset.reacq_co_ovr"

    END_FIELD
 

    FIELD  reacqcoef2
        TYPE            R4
        DESCRIPTION     "This field specifies the second coefficient of the
                        guide star acquisition time model. If the pcs
                        reacquisition override flag is 'N', its value is set to
                        QBPCS_DEF.reacqcoef2."
        UNITS           "SECONDS/ARCSECONDS"
        FORM
            NAME         "BGD"
            LABEL        "COEF. '2'(sec/arcsec**(coef '3')"
        END_FORM
        RELATED_FIELDS  "qbpcs_def.reacqcoef2" "qbs_obset.reacq_co_ovr"

    END_FIELD
 

    FIELD  reacqcoef3
        TYPE            R4
        DESCRIPTION     "This field specifies the third coefficient of the
                        guide star acquisition time model. If the pcs
                        reacquisition override flag is 'N', its value is set to
                        QBPCS_DEF.reacqcoef3."
        FORM
            NAME         "BGD"
            LABEL        "COEF. '3'"
        END_FORM
        RELATED_FIELDS  "qbpcs_def.reacqcoef3" "qbs_obset.reacq_co_ovr"

    END_FIELD
 

    FIELD  fhstroll
        TYPE            C1
        DESCRIPTION     "This field controls the scheduling of fhst roll
                        updates when slewing from the observation set:
                           'N' = do not do an FHST update,
                           'D' = schedule an FHST update as required by
                                 scheduling algorithm (default),
                           'Y' = schedule an FHST roll update."
        FORM
            NAME         "BGD"
            LABEL        "FHST ROLL SCHED.     (Y/N/D)"
        END_FORM
        DISCRETE        "D",  "N",  "Y"
    END_FIELD
 

    FIELD  fhstfull
        TYPE            C1
        DESCRIPTION     "This field controls the scheduling of FHST full updates
                        following a slew to the observation set:
                           'N' = do not do an FHST update,
                           'D' = schedule an FHST update,
                                 as required by scheduling algorithm (default),
                           'Y' = schedule an FHST full update."
        FORM
            NAME         "BGD"
            LABEL        "FHST FULL SCHED.     (Y/N/D)"
        END_FORM
        DISCRETE        "D",  "N",  "Y"
    END_FIELD
 

    FIELD  fhstroll1
        TYPE            C1
        DESCRIPTION     "This field specifies the FHST which cannot be used
                        to schedule an FHST update before a slew from the
                        observation set. If two FHSTS (FHSTROLL1,FHSTROLL2) are
                        specified, then only a 1-FHST roll update will be
                        scheduled. IF neither are specified, then all three
                        fhsts will be considered for FHST update
                        scheduling."
        FORM
            NAME         "BGD"
            LABEL        "FHST ROLL ID NOT USABLE"
        END_FORM
        DISCRETE        "1",  "2",  "3"
    END_FIELD
 

    FIELD  fhstroll2
        TYPE            C1
        DESCRIPTION     "This field specifies the FHST which cannot be used
                        to schedule an FHST update before a slew from the
                        observation set. If two FHSTs (FHSTROLL1,FHSTROLL2) are
                        specified, then only a 1-FHST roll update will be
                        scheduled. IF neither are specified, then all three
                        FHSTs will be considered for FHST update
                        scheduling."
        FORM
            NAME         "BGD"
            LABEL        "ADDITIONAL ROLL ID NOT USABLE"
        END_FORM
        DISCRETE        "1",  "2",  "3"
    END_FIELD
 

    FIELD  fhstfull1
        TYPE            C1
        DESCRIPTION     "This field specifies the FHST which cannot be used
                        to schedule an FHST full update (before or after a
                        slew).  If specified, only the other 2 FHSTs can be
                        considered for scheduling.  If none is specified, all
                        three FHSTs will be considered for FHST update
                        scheduling."
        FORM
            NAME         "BGD"
            LABEL        "FHST FULL ID NOT USABLE"
        END_FORM
        DISCRETE        "1",  "2",  "3"
    END_FIELD
 

    FIELD  pcsgap
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field specifies whether a gap between the PCS
                        acquisition and the first alignment of the
                        observation set which cannot be done in parallel
                        with a slew is allowed. A gap may result if an
                        FHST update is required after a slew, but the delay
                        between the latest time the update can be scheduled
                        and the latest start time of the PCS acquisition
                        activity exceeds FHSTDEL2."
        FORM
            NAME         "BGD"
            LABEL        "PCS/SCIENCE GAP ALLOWED"
        END_FORM
        RELATED_FIELDS  "widcr_parms.fhstdel1" "qboverrides.fhstdel1"

    END_FIELD
 

    FIELD  reconf_time
        TYPE            I4
        DESCRIPTION     "This field specifies the time required to configure
                        the PCS prior to a slew"
        UNITS           "SECONDS"
        RELATED_FIELDS  "qbpcs_def.reconf_time"
        FORM
            NAME         "BGD"
            LABEL        "PCS RECONFIG. TIME (PRIOR TO SLEW)"
        END_FORM
    END_FIELD
 

    FIELD  slew_set_tim
        TYPE            I4
        DESCRIPTION     "This field specifies the time to permit settling of
                        the solar arrays"
        UNITS           "SECONDS"
	RELATED_FIELDS  "qbpcs_def.slew_set_tim"
        FORM
            NAME         "BGD"
            LABEL        "SLEW SETTLING TIME"
        END_FORM
    END_FIELD
 

    FIELD  si_motion_fl
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to denote whether an SI
                        reconfiguration activity which sets the mechanism
                        motion flag may be scheduled in parallel with the
                        observation set."
        FORM
            NAME         "BGD"
            LABEL        "SI MOTION FLAG           (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  max_pos_delt
        TYPE            R8
        DESCRIPTION     "This field is the calculated maximum positive
                        offset from nominal roll for all of the alignments
                        in the obset."
    END_FIELD
 

    FIELD  max_neg_delt
        TYPE            R8
        DESCRIPTION     "This field is the calculated maximum negative offset
                        from nominal roll for all of the alignments in the
                        obset."
    END_FIELD
 

    FIELD  data_set_id
        TYPE            C3
        DESCRIPTION     "This fields specifies the unique data set
                        item relative to this observation set as related to
                        the guide star acquisition data in the relation
                        WGACQUIS."
    END_FIELD
 

    FIELD  min_sep_dur
        TYPE            I4
        DESCRIPTION     "This field specifies the minimum separation time
                        between this obset and the next obset.  Separation
                        is measured from the start of the first alignment of
                        this obset to the start of the first alignment of
                        the next obset."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "MIN. SEP. DURATION"
        END_FORM
    END_FIELD
 

    FIELD  max_sep_dur
        TYPE            I4
        DESCRIPTION     "This field specifies the maximum separation time
                        between this obset and the next obset.  Separation
                        is measured from the start of the first alignment of
                        this obset to the start of the first alignment of
                        the next obset."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "MAX. SEP. DURATION"
        END_FORM
    END_FIELD
 

    FIELD  saa_flag
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to indicate if the SAA avoidance
                        check is to be executed for the PCS, where
                        'Y' = check the saa avoidance restriction;
                        'N' = do not check."
	RELATED_FIELDS  "qalignment.saa_flag"
        FORM
            NAME         "BGD"
            LABEL        "SAA CHECK FLAG         (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  pcs_max_dur
        TYPE            I4
        DESCRIPTION     "This field specifies the maximum PCS acquisition
                        duration."
        FORM
            NAME         "BGD"
            LABEL        "PCS MAX. DURATION"
        END_FORM
    END_FIELD
 

    FIELD  al_next_orbt
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is used to indicate that if the alignment
                        is not interruptible and if the science of the first
                        targeted alignment of this obset cannot be scheduled
                        entirely in the same orbit as the PCS acquisition, 
			then schedule the science in the next orbit if possible.

                        'Y' = attempt to schedule the science in the next
                              orbit,
                        'N' = do not attempt."
        FORM
            NAME         "BGD"
            LABEL        "SCHEDULING IN NEXT ORBIT ALLOWED (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  par_allowed
        TYPE PAR_ALLOWED_TYPE
	RELATED_FIELDS	 "qscheduling.par_allowed",
			 "qalignment.par_allowed"
        FORM
            NAME         "BGD"
            LABEL        "PARALLELS ALLOWED TYPE  (Y/N/I/A)"
        END_FORM
    END_FIELD
 

    FIELD  max_ob_dur
        TYPE            I4
        DESCRIPTION     "This field specifies the maximum elapsed time measured
                        from the start of the first alignment to the end of
                        the last alignment including sams, reacquisitions,
                        and interruptions of both the alignments and obset. "
	RELATED_FIELDS	 "qscheduling.max_ob_dur",
			 "qalignment.max_al_dur"
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "MAX. OBSET DURATION"
        END_FORM
    END_FIELD
 

    FIELD  hoff_acq_typ
        TYPE            C4
        DESCRIPTION     "This field specifies whether handoff of PCS control
                        may be scheduled, and if so whether it is to another
                        pair of guide stars ('SGSH' = simple guide star
                        handoff), or for gyro control ('GYRO').  A blank
                        value is the same as 'NONE'.  Type 'CGSH' - classical
                        guide star handoffs is supported by the CALENDAR/
                        ADDCAND software but disallowed by PMDB/UPDATE at this
                        time."
        FORM
            NAME         "BGD"
            LABEL        "TYPE      (GYRO/SGSH/CGSH/NONE)"
        END_FORM
        DISCRETE        " ",  "CGSH",  "GYRO",  "NONE",  "SGSH"
    END_FIELD
  

    FIELD  handoff_ssn
        TYPE GSACQ_SCENARIO_NAME_TYPE
        DESCRIPTION     "This field is the simple GS handoff acquisition
                        scenario name.  It specifies the scenario name used
                        to define the acquisition time parameters. "
        FORM
            NAME         "BGD"
            LABEL        "SIMPLE SCENARIO"
        END_FORM
    END_FIELD
 
 

    FIELD  handoff_csn
        TYPE GSACQ_SCENARIO_NAME_TYPE
        DESCRIPTION     "This field is the classical GS handoff acquisition
                        scenario name.  It specifies the scenario name used
                        to define the acquisition time parameters. "
        FORM
            NAME         "BGD"
            LABEL        "CLASSICAL SCENARIO"
        END_FORM
    END_FIELD
 

    FIELD  handoff_mser
        TYPE            R4
        DESCRIPTION     "This field specifies the maximum search radius for
                        a GS handoff acquisition.  It is used in the
                        calculation of the duration of a GS handoff
                        acquisition activity."
        UNITS           "ARCSECONDS/SECOND"
        FORM
            NAME         "BGD"
            LABEL        "MAXIMUM SEARCH RADIUS (arcsec/sec)"
        END_FORM
    END_FIELD
 

    FIELD  handoff_sdur
        TYPE            I4
        DESCRIPTION     "This field is the calculated duration of a simple GS
                        handoff acquisition activity."
        UNITS           "ARCSECONDS/SECOND"
        FORM
            NAME         "BGD"
            LABEL        "SIMPLE DURATION"
        END_FORM
    END_FIELD
 

    FIELD  handoff_cdur
        TYPE            I4
        DESCRIPTION     "This field is the calculated duration of classical
                        GS handoff acquisition activity. "
        UNITS           "ARCSECONDS/SECOND"
        FORM
            NAME         "BGD"
            LABEL        "CLASSICAL DURATION"
        END_FORM
    END_FIELD
 

    FIELD  handoff_dur_ovr
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag is used to allow the user force planning
                        and scheduling to use the fields handoff_sdur or
                        handoff_cdur as the duration of handoff activities
                        rather than computing the values as a function of
                        accumulated errors.  This is in effect the handoff
                        durations override flag.
                          'Y' = use user input durations,
                          'N' = let software compute durations. "
        FORM
            NAME         "BGD"
            LABEL        "OVERRIDE FLAG             (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  acq_overhead
        TYPE            I4
        DESCRIPTION     "This field specifies the duration of the overhead
                        portion of the guide star acquistion activity. This
                        portion of the activity is allowed to overlap slews
                        and FGS non-visibility periods."
        UNITS           "SECONDS"
        FORM
            NAME         "BGD"
            LABEL        "ACQUISITION OVERHEAD TIME"
        END_FORM
    END_FIELD


    FIELD  override_rec_id
        TYPE            I4
        DESCRIPTION     "This field specifies the default QBACQS record number
                        to be used for this observation set."
    END_FIELD
 

    FIELD  rcq_overhead
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "This field specifies the duration of the overhead
                        portion of the guide star reacquistion. This portion
                        is allowed to overlap maneuvers and FGS non-visibility
                        periods."
        FORM
            NAME         "BGD"
            LABEL        "REACQUISITION OVERHEAD TIME"
        END_FORM
    END_FIELD
 

    FIELD  prev_roll_fl
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag indicates whether an obset is required
                        to use the previous obset's orientation. In that case
                        the value will be Y; otherwise it will be N.
                        The default is N.  This flag is only meaningful
                        for subsequent obsets of a multi-obset SU (OPR 31173)."

        FORM
            NAME         "BGD"
            LABEL        "PREVIOUS ORIENTATION FLAG"
        END_FORM
    END_FIELD


    FIELD  use_gs_pair_id
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag indicates whether a specified guide star
                         pair should be selected and used, as opposed to
                         selecting and using all pairs that satisfy the obser-
                         vation set's accessibility criteria."

        RELATED_FIELDS  "qbs_obset.gs_pair_id"
        FORM
            NAME         "BGD"
            LABEL        "USE GS PAIR FLAG"
        END_FORM
    END_FIELD


    FIELD  gs_pair_id
        TYPE GS_PAIR_ID_TYPE
        DESCRIPTION     "This field specifies the id of the only guide star
                         pair which is to be selected for use."

        RELATED_FIELDS  "qbs_obset.use_gs_pair_id"
        FORM
            NAME         "BGD"
            LABEL        "GS PAIR ID"
        END_FORM
    END_FIELD


    FIELD  use_fhst_stars
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag specifies whether reference stars should be 
			requested from the FHST Reference Star System and used
			to create acquisition datasets for the observation set. 
			The default is 'N' for moving-target obsets and 'Y' 
			otherwise."

        FORM
            NAME         "BGD"
            LABEL        "USE FHST STARS FLAG"
        END_FORM
    END_FIELD


    FIELD  update_success
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag specifies whether pmdb -update -type=obset 
			was successful.  The flag will be set to 'N' upon
                        pmdb -update entry, and set to 'Y' only if no errors
                        were found during the update."
    END_FIELD
	
END_RECORD
 
!------------------------------------------------------------------------------
!
!   RELATION DECLARATION
!
!------------------------------------------------------------------------------
 
RELATION  qbs_obset
 
    TYPE             QBSOBS_TYPE
 
    DESCRIPTION      "Observation Set Relation"
 
    SUBSYSTEM_USING  "SPSS", "TRANS", "PODPS"

    FORM
        NAME         "BGD"
    END_FORM
 
    INDEX  qbs_obset_1
        TYPE         unique, clustered
        FIELDS       proposal_id, obset_id, version_num
    END_INDEX
 
END_RELATION
 
!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------
 
 
INSTANCE  qbs_obset
 
    GLOBAL
 
    TYPE        QBSOBS_TYPE
 
END_INSTANCE

Go to the top.