Go to the bottom.
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! SDDL Name:	QBWINDOWS.SDDL
!
! Purpose:      This SDDL file defines the qbwindows relation.
!
! Modification History:
!
!   Date       OPR      Who                       Reason
! --------   -------    ---   -------------------------------------------------
! 11/16/94    27329     RJS   Original implementation. Documentation on window
!                             types were collected from the 'SPSS Windows'
!                             document written by S. Wissler.
!
! 09/27/96    32176     PAP   Added critic_flg to the unique index qbwindows_1
! 10/18/96    32176     MRB   Changed file format so tools worked properly
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
 
LANGUAGE	FORTRAN, SQL

INCLUDE         ZSPSS_USER_TYPES.SDDL
 
RECORD  QBWIND_TYPE
 
!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------
 
    DESCRIPTION       "This relation stores the start and end times of
                       windows that are read into the C&C list by the command
                       CCLIST/CREATE and used by the scheduling process to
                       restrict the times when observation set and alignment
                       level activities can be scheduled.

                       These windows are generated by the command
                       PMDB/UPDATE/TYPE=SU and are classified into the
                       following categories or window types: 

				US    - User Supplied Windows
				TV    - Target Visibility 
				SN/SO - Normal and Off-normal Windows
				RN/RO - Guide Star Restricted Normal  
					and Off-normal Windows
				DN/DO - Derived Normal and Off-normal Windows
				PC    - Phase Critical Windows
				MT    - Moving Target Windows

                       Constraints used by PMDB/UPDATE to generate the
                       windows are retrieved from the PDB relation
                       widcr_parms, the GS acquisition data relation WGACQUIS,
                       and the observation set data relation QBS_OBSET.  In
                       addition, ST roll constraints are obtained from the
                       PDB namelist file WONMRL.NML."
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 

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

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

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

    FIELD  window_type
        TYPE            C2
        DESCRIPTION     "This field specifies the window type, where

                        'US' = user supplied window.  US windows are supplied
                               by the user as time intervals over which an
                               observation must be done. These windows are
                               considered to be time critical. The windows
                               are input to SPSS via TRANS and stored in the
                               relation QBWINDOWS, and are used by the
                               scheduling process to restrict alignment level
                               activities.

                        'TV' = target visibility window. Target visibility
                               windows are the intersection of the sun
                               avoidance, anti-sun avoidance, and moon
                               avoidance windows.  These windows are used byt
                               the scehduling process to restrict observation
                               set level activities. The avoidance constraint
                               angles come from the PDB relation WIDCR_PARMS.

                               The fields in widcr_parms are:

                                    sun avoidance:      sun_avoi_ang
                                    anti-sun avoidance: asun_avdang
                                    moon avoidance:     mon_avoi_ang

                               The above avoidance angles can be overriden at
                               the observation set level. The overrides are in
                               the relation QBOVERRIDES and the fields are:

                                    sun avoidance:      sun_avoid
                                    anti-sun avoidance: asun_avoid
                                    moon avoidance:     moon_avoid

                        'SN' = ST normal roll window. See the description for
                               'SO' windows below.
                        'SO' = ST off-normal roll window.

                               ST normal and off-normal roll windows
                               are restrictions imposed for scheduling an
                               observation set that are based on the
                               spacecraft orientation with respect to 'nominal
                               roll' and the 'solar array incidence angle'.

                               Nominal roll is defined as the V3 position
                               angle which places the sun in the V1-V3 plane.
                               Any other V3 position angle is considered
                               off-nominal.

                               The solar array incidence angle is the angle
                               between the normal vector of the surface of
                               the solar arrays and the Sun.

                               ST Roll windows are determined by intervals
                               where:

                               1) Solar Arrays are not shadowed by the ST body

                                  This constraint is a power constraint. If
                                  the solar arrays are shadowed by the
                                  high-gain antennas, there is less power
                                  available to charge the ST's batteries.
                                  This condition only occurs at high
                                  off-nominal roll angles.

                                  These constraints are located in the
                                  namelist file SPSSLIB:WONMRL.NML

                              2) Sun - Solar Array incidence angle is less
                                 than the normal or off-normal limit.

                                  This constraint is also a power constraint.
                                  The closer the incidence angle is to zero,
                                  the more power is available to charge the
                                  ST's batteries. As the V1-Sun angle
                                  approaches 90 degrees, the incidence angle
                                  drops regardless of the roll angle, thus
                                  the roll angle can be greater for higher
                                  V1-sun angles.

                                  These constraints are located in the
                                  relation WIDCR_PARMS in the following fields:

                                  normal incidence angle:             norm_inc
                                  maximum off-normal incidence angle: max_inc

                                  The maximum off-normal incidence angle can be
                                  overriden at the observation set level. The
                                  override is in QBOVERRIDES:

                                  maximum off-normal incidence angle: max_inc

                        'PC' = phase critical window.  Phase critical windows
                               are periodic windows computed from parameters
                               input by the proposer and stored in the
                               following QBS_OBSET fields:

                               initial epoch: init_epoch
                               period:        period_sph
                               phase:         period_sph

                               These windows are used to represent such
                               astronomical events that are periodic in nature,
                               such as variable stars.  They are used by the
                               scheduling process to restrict alignment level
                               activities.

                        'RN' = Guide star restricted normal roll window.
                               See the description for 'RO' windows below.

                        'RO' = Guide star restricted off-normal roll window.
                               The RN/RO windows are computed within intervals
                               defined by the SN/SO windows and within the
                               roll ranges imposed by the guide star pairs
                               contained in the acquisition data sets
                               (WGACQUIS) and alignment level orientations
                               (offset from nominal and range). The individual
                               RN/RO windows for each acquisition data set are
                               written to the relation WGRESWND to be
                               used by CCLIST/CREATE for scheduling. The
                               individual RN/RO windows are unioned together
                               and written to the relation QBWINDOWS as RN/RO
                               windows and intersected with other windows to
                               form the DN/DO windows.

                        'DN' = Derived normal window. See the description of
                               'DO' windows below.

                        'DO' = Derived off-normal window. Derived normal
                               windows and off Normal windows are the
                               intersection of the target visibility(TV),
                               ST normal/off-normal (SN/SO) and the union of
                               the guide star restricted normal/off-normal
                               (RN/RO) windows.

                        'MT' = Moving target window. MT windows are time
                               intervals computed by MOSS and stored in the
                               relation QBWINDOWS. The windows are read into
                               the C&C list by CCLIST/CREATE and used by SPSS
                               to restrict the alignment level activities.
                               The windows may be visibility related, such as
                               planetary occultation, or user preferred
                               viewing intervals."

        RELATED_FIELDS  "widcr_parms.sun_avoi_ang" "widcr_parms.asun_avdang" "widcr_parms.mon_avoi_ang" "widcr_parms.norm_inc" "widcr_parms.max_inc" "qboverrides.sun_avoid" "qboverrides.asun_avoid" "qboverrides.moon_avoid" "qboverrides.max_inc" "qbs_obset.init_epoch" "qbs_obset.period_sph" "qbs_obset.period_sph" "wgreswnd.*" "wgacquis.str_tim_usbl" "wgacquis.end_tim_usbl"

        FORM
            NAME         "BWD"
            LABEL        "WINDOW TYPE"
        END_FORM
        DISCRETE        "DN",  "DO", "MT", "PC",  "SN",  "SO",
                        "TV",  "US", "MN", "MO"
    END_FIELD
 

    FIELD  critic_flg
        TYPE            C1
        DESCRIPTION     "This field is the window criticality flag where
                        'C' = the window is time critical, i.e. the
                              obset should be scheduled within the
                              window.
                        'P' = the window is preferred. The obset
                              should be scheduled within the window if
                              possible but may be outside it.
                              Preferred windows should be a subset of a
                              critical window - used operationally.
                              Set when window_type = 'US'."
        FORM
            NAME         "BWD"
            LABEL        "TIME CRITICAL"
        END_FORM
        DISCRETE        "C",  "P"
    END_FIELD
 

    FIELD  window_beg
        TYPE SOGS_INT_TIME_TYPE
        DESCRIPTION     "This field is the window begin time."
        FORM
            NAME         "BWD"
            LABEL        "START TIME"
        END_FORM
    END_FIELD
 

    FIELD  window_end
        TYPE SOGS_INT_TIME_TYPE
        DESCRIPTION     "This field is the window end time."
        FORM
            NAME         "BWD"
            LABEL        "STOP TIME"
        END_FORM
    END_FIELD
 
END_RECORD
 
!------------------------------------------------------------------------------
!
!   RELATION DECLARATION
!
!------------------------------------------------------------------------------
 
RELATION  qbwindows
 
    TYPE             QBWIND_TYPE
 
    DESCRIPTION      "Observation Set Windows Data Relation"
 
    SUBSYSTEM_USING  "SPSS", "TRANS"

    FORM
        NAME         "BWD"
    END_FORM
 
    INDEX  qbwindows_1
        TYPE         unique, clustered
        FIELDS       proposal_id, obset_id, version_num, window_type,
                     critic_flg, window_beg, window_end
    END_INDEX
 
END_RELATION
 
!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------
 
INSTANCE  qbwindows
 
    GLOBAL
 
    TYPE        QBWIND_TYPE
 
END_INSTANCE

Go to the top.