!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! SDDL Name:	NSO_SA_PARAMS.SDDL
!
! Purpose:      This include file contains observation parameters from 
!               SCIHDR and ASTR_HDR statements.
!
! Modification History:
!
!   Date       OPR      Who                       Reason
! --------   -------    ---   -------------------------------------------------
! 11/07/86    12072           Addition of new Data Group 2 parameters
! 09/28/89    16371     SCS   increase number of instruments from six to eight
!                             This is to cover 5 instruments and 3 FGS's 
! 01/31/90    17662     GA    missed some arrays in 16371      
! 07/08/91    20825     RW    add parallel target identifier
! 12/16/94    27329     MRB   Original SDDL implementation
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
!
 
LANGUAGE	FORTRAN

INCLUDE         ZSPSS_USER_TYPES.SDDL
 
RECORD  NSO_SA_OBS_TYPE
 
!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------
 
 
    DESCRIPTION     "Science and astrometry observation parameters"
 
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 
 

    FIELD  start_tm
        DESCRIPTION     "observation start time. 'START_TM' or
                        'loadby' time from scihdr; 'start' from
                        astrhdr. "
        TYPE            I4
 
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 
    END_FIELD
 
 

    FIELD  obs_dur
        DESCRIPTION     "observation duration. "
        TYPE            I4
    END_FIELD
 
 

    FIELD  align_ra
        DESCRIPTION     "alignment right ascension value. "
        TYPE            R8
    END_FIELD
 
 

    FIELD  align_dec
        DESCRIPTION     "alignment declination value. "
        TYPE            R8
    END_FIELD
 
 

    FIELD  align_v2
        DESCRIPTION     "alignment v2 value."
        TYPE            R8
    END_FIELD
 
 

    FIELD  align_v3
        DESCRIPTION     "alignment v3 value. "
        TYPE            R8
    END_FIELD
 
 

    FIELD  align_pa
        DESCRIPTION     "alignment position angle."
        TYPE            R8
    END_FIELD
 
 

    FIELD  inst_id
        DESCRIPTION     "instrument identifier"
        TYPE            C4
    END_FIELD
 
 

    FIELD  exp_pkts
        DESCRIPTION     "number of packets."
        TYPE            I4
    END_FIELD
 
 

    FIELD  obs_id
        DESCRIPTION     "observation identifier."
        TYPE            C2
    END_FIELD
 
 

    FIELD  word11_14
        DESCRIPTION     "word 11/14 value."
        TYPE            I2
    END_FIELD
 
 

    FIELD  align_id
        DESCRIPTION     "alignment identifier."
        TYPE ALIGN_ID_TYPE
    END_FIELD
 
 

    FIELD  exps_id
        DESCRIPTION     "exposure identifier."
        TYPE            C2
    END_FIELD
 
 

    FIELD  cntl_rec
        DESCRIPTION     "control record identifier."
        TYPE            C5
    END_FIELD
 
 

    FIELD  slew_ra
        DESCRIPTION     "slew ending right ascension."
        TYPE            R8
    END_FIELD
 
 

    FIELD  slew_dec
        DESCRIPTION     "slew ending declination. "
        TYPE            R8
    END_FIELD
 
 

    FIELD  slew_pa
        DESCRIPTION     "slew ending position angle."
        TYPE            R8
    END_FIELD
 
 

    FIELD  slew_pa_fnd
        DESCRIPTION     "true if a position angle was specified on
                        the last slew block.  if false, need to
                        calculate nominal position angle."
        TYPE            L4
    END_FIELD
 
 

    FIELD  slew_v2_off
        DESCRIPTION     "ending v2 target offset from aperture center. "
        TYPE            R8
    END_FIELD
 
 

    FIELD  slew_v3_off
        DESCRIPTION     "ending v3 target offset from aperture center."
        TYPE            R8
    END_FIELD
 
 

    FIELD  slew_ref_v2
        DESCRIPTION     "aperture center offset from v1 axis. "
        TYPE            R8
    END_FIELD
 
 

    FIELD  slew_ref_v3
        DESCRIPTION     "aperture center offset from v1 axis."
        TYPE            R8
    END_FIELD
 
 

    FIELD  slew_ap_id
        DESCRIPTION     "aperture used for slew end alignment."
        TYPE            C10
    END_FIELD
 
 

    FIELD  slew_new_ap
        DESCRIPTION     "true if aperture identifier has been set and
                        ref_v2 and _v3 must be updated before use."
        TYPE            L4
    END_FIELD
 
 

    FIELD  slew_time
        DESCRIPTION     "the time of the last slew block, in seconds
                        since 1/1/80. Needed to calculate nominal pa."
        TYPE            R8
    END_FIELD
 
 

    FIELD  tardist
        DESCRIPTION     "distance to target from center of earth,"
        TYPE            R8
    END_FIELD
 
 

    FIELD  mt_flag
        DESCRIPTION     "moving target flag. "
        TYPE            C1
    END_FIELD
 
 

    FIELD  par_target1
        DESCRIPTION     "parallel target name - part 1. "
        TYPE            C8
    END_FIELD
 
 

    FIELD  par_target2
        DESCRIPTION     "parallel target name - part 2. "
        TYPE            C8
    END_FIELD
 
 
END_RECORD
 
RECORD  NSO_SA_PROC_TYPE
 
!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------
 
 
    DESCRIPTION     "Science and astrometry processing parameters"
 
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 
 

    FIELD  num_inst
        DESCRIPTION     "number of instruments processed; "
        TYPE            I4
    END_FIELD
 
 

    FIELD  pdp_rec
        DESCRIPTION     "record number of podps temporary file "
        DIMENSION       8
        TYPE            I4
    END_FIELD
 
 

    FIELD  oss1_rec
        DESCRIPTION     "record number of oss type 1 record
                        in temporary file."
        DIMENSION       8
        TYPE            I4
    END_FIELD
 
 

    FIELD  oss3_rec
        DESCRIPTION     "record number of oss type 3 record
                        in temporary file."
        DIMENSION       8
        TYPE            I4
    END_FIELD
 
 

    FIELD  old_start
        DESCRIPTION     "saved observation start time."
        DIMENSION       8
        TYPE            I4
    END_FIELD
 
 

    FIELD  instrument
        DESCRIPTION     "names of instruments."
        DIMENSION       8
        TYPE            C4
    END_FIELD
 
 

    FIELD  gen_dur
        DESCRIPTION     "generate observation duration flag;
                        if .TRUE. then obs. dur. must be
                        generated for this observation."
        DIMENSION       8
        TYPE            L4
    END_FIELD
 
 
END_RECORD
 
 
!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------
 
 
INSTANCE  nso_sa_obs
 
    FILE
    TYPE        NSO_SA_OBS_TYPE
    GLOBAL
 
END_INSTANCE
 
 
!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------
 
 
INSTANCE  nso_sa_proc
 
    FILE
    TYPE        NSO_SA_PROC_TYPE
    GLOBAL
 
END_INSTANCE