Go to the bottom.
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! SDDL Name:	QOLINK.SDDL
!
! Purpose:      This SDDL file defines the qolink relation.
!
! Modification History:
!
!   Date       PR      Who                       Reason
! --------   -------   ---   -------------------------------------------------
! 12/01/94   27329     MRB   Original implementation
! 12/04/95   16760     MRB   Add C output
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
!
 
LANGUAGE  C, FORTRAN, SQL

INCLUDE   ZSPSS_USER_TYPES.SDDL
 
RECORD    QOLINK_TYPE
 
!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------
 
 
    DESCRIPTION       "Exposure to observation linking records in the PODPS 
                       Support Schedule are stored in this relation.
                       Post Observation Data Processing uses this data to 
		       convert and calibrate the observations sent from the
                       spacecraft.

                       PODPS does not need or use the SPSS SU, Obset,
                       Alignment, Exposure structure; they use a program 
                       identifier and observation number.  The program ID 
                       correlates with exactly one proposal ID.  This relation
                       describes the observation number correlation to the 
                       SPSS structure.

                       This data is from the logical SMS.  SMSG/Schedule
                       builds support schedule files for OSS and PODPS from the
                       logical SMS.  OSS uses these files directly.
                       OBSR/Generate uses the PODPS support schedule files to
                       populate this relation and QOLINK. " 
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 
 

    FIELD  proposal_id
        TYPE PROPOSAL_ID_TYPE
    END_FIELD
 
 

    FIELD  program_id
        TYPE PROGRAM_ID_TYPE
    END_FIELD
 
 

    FIELD  obset_id
        TYPE OBSET_ID_TYPE
    END_FIELD
 
 

    FIELD  alignment_id
        TYPE ALIGN_ID_TYPE
    END_FIELD
 
 

    FIELD  exposure_id
        TYPE EXPOSURE_ID_TYPE
    END_FIELD
 
 

    FIELD  version_num
        TYPE VERSION_NUM_TYPE
    END_FIELD
 
 

    FIELD  ob_number
        TYPE            C2
        DESCRIPTION     "Observations are numbered sequentially throughout
                         an observation set and are assigned by SMS/Gen.
                         An ob_number is _NOT_ the same as an obset_ID."
        UNITS           "BASE_36"
        RANGE           "00..ZZ"
    END_FIELD
 
 

    FIELD  ob_start_tim
        TYPE SOGS_CHAR_TIME_TYPE
        DESCRIPTION     "This is the predicted start time of the observation."
    END_FIELD
 
 
END_RECORD
 
 
!------------------------------------------------------------------------------
!
!   RELATION DECLARATION
!
!------------------------------------------------------------------------------
 
 
RELATION  qolink
 
    TYPE             QOLINK_TYPE
 
    DESCRIPTION      "Observation/Exposure Link Data Relation"
 
    SUBSYSTEM_USING  "SCS", "PODPS"
 
    RELATED_FIELDS  "qobservation.*"

    INDEX  qolink_1
        TYPE         clustered
        FIELDS       program_id, obset_id, ob_number
        ATTRIBUTES   ignore_dup_row
    END_INDEX
 
    INDEX  qolink_2
        TYPE         unique, nonclustered
        FIELDS       proposal_id, program_id, obset_id, alignment_id, 
                     exposure_id, ob_number, version_num
    END_INDEX
 
END_RELATION
 
!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------
 
 
INSTANCE  qolink
 
    GLOBAL
 
    TYPE        QOLINK_TYPE
 
END_INSTANCE

Go to the top.