
! -------------------------------------------------------------------
! Input File for CLKEST
! -------------------------------------------------------------------
! Environment Variables
! ---------------------
ENVIRONMENT 7
  "P" "/aiub"
  "Q" "/aiub2"
  "K" "/aiub_u_camp"
  "X" "/aiub_sw/BERN50/GPS"
  "U" "/u/aiub/bock/GPSUSER"
  "S" "/aiub_savedisk"
  "USER" "bock"
  ## widget = initmenu; pointer = ENVIR_LIST

CAMPAIGN 1  "${P}/HICLKRAP"
  ## widget = initmenu; pointer = ACTIVE_CAMPAIGN

USR_INFO 1  "hugentob"

PCF_INFO 0

! Show general files
! ------------------
SHOWGEN 1  "1"
  ## widget = checkbox

MSG_SHOWGEN 1  "Show all general files"

! General Constants
! -----------------
CONST 1  "${X}/GEN/CONST."
  ## widget = selwin; path = PTH_GEN; maxfiles = 1
  # CONST.

DESCR_CONST 1  "General constants"

! Local Geodetic Datum
! --------------------
DATUM 1  "${X}/GEN/DATUM."
  ## widget = selwin; path = PTH_GEN; maxfiles = 1
  # DATUM.

DESCR_DATUM 1  "Geodetic datum"

! Pole File
! ---------
POLE 1  "${P}/HICLKRAP/ORB/RA_03196.ERP"
  ## widget = selwin; path = DIR_ERP; ext = EXT_ERP; maxfiles = 1
  # RA_$YD+0

DESCR_POLE 1  "A priori pole file"

! Subdaily Pole Model
! -------------------
SUBMOD 1  "${X}/GEN/RAY_96.SUB"
  ## widget = selwin; path = PTH_GEN; ext = EXT_SUB; maxfiles = 1
  # RAY_96

DESCR_SUBMOD 1  "Subdaily pole model"

! Nutation Model
! -------------------
NUTMOD 1  "${X}/GEN/IAU80.NUT"
  ## widget = selwin; path = PTH_GEN; ext = EXT_NUT; maxfiles = 1
  # IAU80

DESCR_NUTMOD 1  "Nutation model"

! Satellite Information
! ---------------------
SATELL 1  "${X}/GEN/SATELLIT."
  ## widget = selwin; path = PTH_GEN; maxfiles = 1
  # SATELLIT.

DESCR_SATELL 1  "Satellite information"

! Receiver information
! --------------------
RECEIVR 1  "${X}/GEN/RECEIVER."
  ## widget = selwin; path = PTH_GEN; maxfiles = 1; emptyallowed = true
  # RECEIVER.

DESCR_RECEIVR 1  "Receiver information"

! Satellite Problems
! ------------------
SATCRUX 1  "${X}/GEN/SAT_2003.CRX"
  ## widget = selwin; path = PTH_GEN; ext = EXT_CRX; maxfiles = 1
  # SAT_$Y+0

DESCR_SATCRUX 1  "Satellite problems"

! Phase Center Eccentricities
! ---------------------------
PHASECC 1  "${X}/GEN/PHAS_IGS.01"
  ## widget = selwin; path = PTH_GEN; maxfiles = 1
  # PHAS_IGS.01

DESCR_PHASECC 1  "Phase center eccentricities"

! -------------------------------------------------------------------
! General Files
! -------------------------------------------------------------------
! General Constants
! -----------------
! Ocean Loading Tables
! --------------------
OCNLOAD 1  "${P}/HICLKRAP/STA/ITRFCODE.BLQ"
  ## widget = selwin; path = DIR_STA; ext = EXT_BLQ; maxfiles = -1
  ## emptyallowed = true
  # ITRFCODE

DESCR_OCNLOAD 1  "Ocean loading tables"

! Some dummy keywords
! -------------------
JPLEPH 0

IONOS 0

ECCENT 0

! -------------------------------------------------------------------
! Input Files
! -------------------------------------------------------------------
! Station Coordinates
! -------------------
COORD 1  "${P}/HICLKRAP/STA/RA_03196.CRD"
  ## widget = selwin; path = DIR_STA; ext = EXT_CRD; maxfiles = 1
  # RA_$YD+0

DESCR_COORD 1  "A priori coordinates"

! Troposphere Estimates
! ---------------------
TROPEST 1  "${P}/HICLKRAP/ATM/RA_03196.TRP"
  ## widget = selwin; path = DIR_TRP; ext = EXT_TRP; maxfiles = 1
  ## emptyallowed = true
  # RA_$YD+0

DESCR_TROPEST 1  "Estimated troposphere values"

! Satellite Standard Orbits
! -------------------------
STDORB 1  "${P}/HICLKRAP/ORB/RA_03196.STD"
  ## widget = selwin; path = DIR_STD; ext = EXT_STD; maxfiles = 1
  # RA_$YD+0

DESCR_STDORB 1  "Standard orbits"

! A priori Satellite Clock File
! -----------------------------
SATCLK 1  "${P}/HICLKRAP/ORB/TP_03196.CLK"
  ## widget = selwin; path = DIR_CLK; ext = EXT_CLK; maxfiles = 1
  ## emptyallowed = true
  # TP_$YD+0

DESCR_SATCLK 1  "Satellite clocks"

! Clock Rinex File to fix on
! --------------------------
CLKRNX 1  "${P}/HICLKRAP/OUT/TP_03196.CLK"
  ## widget = selwin; path = DIR_OUT; ext = EXT_CLK; maxfiles = 1
  ## emptyallowed = true
  # TP_$YD+0

DESCR_CLKRNX 1  "Clock RINEX file"

! P1-C1-biases
! ------------
DCBINP 1  "${P}/HICLKRAP/ORB/P1C1.DCB"
  ## widget = selwin; path = DIR_DCB; ext = EXT_DCB; maxfiles = 1
  ## emptyallowed = true
  # P1C1

DESCR_DCBINP 1  "Code bias input file"

! -------------------------------------------------------------------
! Observation Files
! -------------------------------------------------------------------
! List of Input Code Header Files (Col 1)
! -------------------------------
OBSFIL 105
  "${P}/HICLKRAP/OBS/ALBH1960.CZH"
  "${P}/HICLKRAP/OBS/ALGO1960.CZH"
  "${P}/HICLKRAP/OBS/ALIC1960.CZH"
  "${P}/HICLKRAP/OBS/ALRT1960.CZH"
  "${P}/HICLKRAP/OBS/AMC21960.CZH"
  "${P}/HICLKRAP/OBS/ANKR1960.CZH"
  "${P}/HICLKRAP/OBS/AOML1960.CZH"
  "${P}/HICLKRAP/OBS/AREQ1960.CZH"
  "${P}/HICLKRAP/OBS/ARTU1960.CZH"
  "${P}/HICLKRAP/OBS/ASC11960.CZH"
  "${P}/HICLKRAP/OBS/ASPA1960.CZH"
  "${P}/HICLKRAP/OBS/AUCK1960.CZH"
  "${P}/HICLKRAP/OBS/BAHR1960.CZH"
  "${P}/HICLKRAP/OBS/BAKO1960.CZH"
  "${P}/HICLKRAP/OBS/BILI1960.CZH"
  "${P}/HICLKRAP/OBS/BJFS1960.CZH"
  "${P}/HICLKRAP/OBS/BOGT1960.CZH"
  "${P}/HICLKRAP/OBS/BOR11960.CZH"
  "${P}/HICLKRAP/OBS/BRMU1960.CZH"
  "${P}/HICLKRAP/OBS/BRUS1960.CZH"
  "${P}/HICLKRAP/OBS/CAGZ1960.CZH"
  "${P}/HICLKRAP/OBS/CAS11960.CZH"
  "${P}/HICLKRAP/OBS/CEDU1960.CZH"
  "${P}/HICLKRAP/OBS/CHAT1960.CZH"
  "${P}/HICLKRAP/OBS/CHPI1960.CZH"
  "${P}/HICLKRAP/OBS/CHUR1960.CZH"
  "${P}/HICLKRAP/OBS/COCO1960.CZH"
  "${P}/HICLKRAP/OBS/CONZ1960.CZH"
  "${P}/HICLKRAP/OBS/CORD1960.CZH"
  "${P}/HICLKRAP/OBS/CRO11960.CZH"
  "${P}/HICLKRAP/OBS/DARW1960.CZH"
  "${P}/HICLKRAP/OBS/DAVR1960.CZH"
  "${P}/HICLKRAP/OBS/DUBO1960.CZH"
  "${P}/HICLKRAP/OBS/DWH11960.CZH"
  "${P}/HICLKRAP/OBS/EISL1960.CZH"
  "${P}/HICLKRAP/OBS/FAIR1960.CZH"
  "${P}/HICLKRAP/OBS/FLIN1960.CZH"
  "${P}/HICLKRAP/OBS/FORT1960.CZH"
  "${P}/HICLKRAP/OBS/GLPS1960.CZH"
  "${P}/HICLKRAP/OBS/GODZ1960.CZH"
  "${P}/HICLKRAP/OBS/GOPE1960.CZH"
  "${P}/HICLKRAP/OBS/GUAT1960.CZH"
  "${P}/HICLKRAP/OBS/HERT1960.CZH"
  "${P}/HICLKRAP/OBS/HOB21960.CZH"
  "${P}/HICLKRAP/OBS/HOFN1960.CZH"
  "${P}/HICLKRAP/OBS/HOLM1960.CZH"
  "${P}/HICLKRAP/OBS/HRAO1960.CZH"
  "${P}/HICLKRAP/OBS/IISC1960.CZH"
  "${P}/HICLKRAP/OBS/INVK1960.CZH"
  "${P}/HICLKRAP/OBS/IRKJ1960.CZH"
  "${P}/HICLKRAP/OBS/JAMA1960.CZH"
  "${P}/HICLKRAP/OBS/KARR1960.CZH"
  "${P}/HICLKRAP/OBS/KELY1960.CZH"
  "${P}/HICLKRAP/OBS/KERG1960.CZH"
  "${P}/HICLKRAP/OBS/KHAJ1960.CZH"
  "${P}/HICLKRAP/OBS/KOKB1960.CZH"
  "${P}/HICLKRAP/OBS/KOSG1960.CZH"
  "${P}/HICLKRAP/OBS/KOUR1960.CZH"
  "${P}/HICLKRAP/OBS/LPGS1960.CZH"
  "${P}/HICLKRAP/OBS/MAC11960.CZH"
  "${P}/HICLKRAP/OBS/MALI1960.CZH"
  "${P}/HICLKRAP/OBS/MAS11960.CZH"
  "${P}/HICLKRAP/OBS/MAT11960.CZH"
  "${P}/HICLKRAP/OBS/MAW11960.CZH"
  "${P}/HICLKRAP/OBS/MCM41960.CZH"
  "${P}/HICLKRAP/OBS/MKEA1960.CZH"
  "${P}/HICLKRAP/OBS/MSKU1960.CZH"
  "${P}/HICLKRAP/OBS/MTKA1960.CZH"
  "${P}/HICLKRAP/OBS/NKLG1960.CZH"
  "${P}/HICLKRAP/OBS/NLIB1960.CZH"
  "${P}/HICLKRAP/OBS/NOT11960.CZH"
  "${P}/HICLKRAP/OBS/NOUM1960.CZH"
  "${P}/HICLKRAP/OBS/NRIL1960.CZH"
  "${P}/HICLKRAP/OBS/NTUS1960.CZH"
  "${P}/HICLKRAP/OBS/NYA11960.CZH"
  "${P}/HICLKRAP/OBS/OHI31960.CZH"
  "${P}/HICLKRAP/OBS/ONSA1960.CZH"
  "${P}/HICLKRAP/OBS/PIMO1960.CZH"
  "${P}/HICLKRAP/OBS/QAQ11960.CZH"
  "${P}/HICLKRAP/OBS/RABT1960.CZH"
  "${P}/HICLKRAP/OBS/RBAY1960.CZH"
  "${P}/HICLKRAP/OBS/RESO1960.CZH"
  "${P}/HICLKRAP/OBS/REYK1960.CZH"
  "${P}/HICLKRAP/OBS/RIOG1960.CZH"
  "${P}/HICLKRAP/OBS/SANT1960.CZH"
  "${P}/HICLKRAP/OBS/SCH21960.CZH"
  "${P}/HICLKRAP/OBS/STJO1960.CZH"
  "${P}/HICLKRAP/OBS/SUNM1960.CZH"
  "${P}/HICLKRAP/OBS/SUTH1960.CZH"
  "${P}/HICLKRAP/OBS/THTI1960.CZH"
  "${P}/HICLKRAP/OBS/THU31960.CZH"
  "${P}/HICLKRAP/OBS/TIDB1960.CZH"
  "${P}/HICLKRAP/OBS/TIXI1960.CZH"
  "${P}/HICLKRAP/OBS/TOW21960.CZH"
  "${P}/HICLKRAP/OBS/TSKB1960.CZH"
  "${P}/HICLKRAP/OBS/UNB11960.CZH"
  "${P}/HICLKRAP/OBS/UNSA1960.CZH"
  "${P}/HICLKRAP/OBS/WHIT1960.CZH"
  "${P}/HICLKRAP/OBS/WTZR1960.CZH"
  "${P}/HICLKRAP/OBS/YARR1960.CZH"
  "${P}/HICLKRAP/OBS/YELL1960.CZH"
  "${P}/HICLKRAP/OBS/YSSK1960.CZH"
  "${P}/HICLKRAP/OBS/ZAMB1960.CZH"
  "${P}/HICLKRAP/OBS/ZIMJ1960.CZH"
  "${P}/HICLKRAP/OBS/ZIMM1960.CZH"
  ## widget = selwin; path = DIR_CZH; ext = EXT_CZH; maxfiles = 999
  # SELECTED

OBSFIL_TXT_COL_1 1  "Observation files (code)"

MSG_OBSFIL 1 "Observation files"

! Extensions of the Code Obs Files (Col 2)
! --------------------------------
OBSFIL_EXT_COL_2 1  "CZO"
  ## widget = initmenu; pointer = EXT_CZO

OBSFIL_PTH_COL_2 1  "${P}/HICLKRAP/OBS/"
  ## widget = initmenu; pointer = DIR_CZO

OBSFIL_TXT_COL_2 0

! Extensions of the Phase Header Files (Col 3)
! ------------------------------------
OBSFIL_EXT_COL_3 1  "PZH"
  ## widget = initmenu; pointer = EXT_PZH

OBSFIL_PTH_COL_3 1  "${P}/HICLKRAP/OBS/"
  ## widget = initmenu; pointer = DIR_PZH

OBSFIL_TXT_COL_3 1  "Observation files (phase)"

! Extensions of the Phase Obs Files (Col 4)
! ---------------------------------
OBSFIL_EXT_COL_4 1  "PZO"
  ## widget = initmenu; pointer = EXT_PZO

OBSFIL_PTH_COL_4 1  "${P}/HICLKRAP/OBS/"
  ## widget = initmenu; pointer = DIR_PZO

OBSFIL_TXT_COL_4 0

! -------------------------------------------------------------------
! Output Files
! -------------------------------------------------------------------
! Satellite Clock Rinex Output File
! ---------------------------------
CLKINF 1  "${P}/HICLKRAP/OUT/TQ_03196.CLK"
  ## widget = lineedit; path = DIR_RXC; ext = EXT_RXC; maxfiles = -1
  # TQ_$YD+0

DESCR_CLKINF 1  "RINEX Clock File"

! Satellite Clock Bernese Output File
! -----------------------------------
CLKRES 1  "${P}/HICLKRAP/ORB/TQ_03196.CLK"
  ## widget = lineedit; path = DIR_CLK; ext = EXT_CLK; maxfiles = 1
  # TQ_$YD+0

DESCR_CLKRES 1  "Satellite Clock File (Bernese Format)"

! List of Problem Epochs
! ----------------------
EPOCHS 1  "${P}/HICLKRAP/OUT/EPO03196.TQQ"
  ## widget = lineedit; path = DIR_OUT; ext = NO_EXT; maxfiles = -1
  # EPO$YD+0.TQQ

DESCR_EPOCHS 1  "Missing Epochs"

! Clock and Clock Differences
! ---------------------------
CLKDIFF 1  "${P}/HICLKRAP/OUT/TQ_03196.CKD"
  ## widget = lineedit; path = DIR_OUT; ext = NO_EXT; maxfiles = -1
  # TQ_$YD+0.CKD

DESCR_CLKDIFF 1  "Clock and Clock differences"

! Detailed Combination Info File
! ------------------------------
CMBINFO 1  "${P}/HICLKRAP/OUT/test.IFO"
  ## widget = lineedit; path = DIR_OUT; ext = NO_EXT; maxfiles = -1
  # test.IFO

DESCR_CMBINFO 1  "Detailed Combination Information"

! Program Output File
! -------------------
SYSOUT 1  "${P}/HICLKRAP/OUT/TQ_03196.OUT"
  ## widget = lineedit; path = DIR_OUT; ext = EXT_OUT; maxfiles = -1
  # TQ_$YD+0

DESCR_SYSOUT 1  "Program output"

! Error Message File (blank: same as output file name)
! ------------------
SYSERR 1  "${U}/WORK/ERRCLK.MSG"
  ## widget = lineedit; path = PTH_ERR; ext = EXT_ERR; maxfiles = -1
  # ERRCLK

DESCR_SYSERR 1  "Error message"

! Title
! -----
TITLE 1  "CLKEST"
  ## widget = lineedit

MSG_TITLE 1 "Title line"

! -------------------------------------------------------------------
! Processing Options
! -------------------------------------------------------------------
! 1. GENERAL PROCESSING OPTIONS
!    --------------------------
! Sampling (sec)
SAMPLING 1  "30"
  ## widget = lineedit

MSG_SAMPLING 1 "Sampling of data"

! Maximum difference of equal epochs (sec)
DTSIM 1  "0.1"
  ## widget = lineedit

MSG_DTSIM 1 "Max diff. of equal epochs"

! Linear Combination to be Used
LINCOMB 1  "L3"
  ## widget = combobox; editable = false; cards = L1 L2 L3

MSG_LINCOMB 1 "Linear Combination"

! Reference Clock
! ---------------
RADIO_SUM 1  "1"
  ## widget = radiobutton; group = SYNCHR

RADIO_SAT 1  "0"
  ## widget = radiobutton; group = SYNCHR; radiokeys = REFSAT

REFSAT 1  "14"
  ## widget = lineedit

RADIO_LST 1  "0"
  ## widget = radiobutton; group = SYNCHR

RADIO_STA 1  "0"
  ## widget = radiobutton; group = SYNCHR; radiokeys = REFSTA

REFSTA 1  "1"
  ## widget = lineedit

! One Sat has to be Observed by min. Number of Stations
MINSTAT 1  "3"
  ## widget = spinbox; range = 1 20 1

MSG_MINSTAT 1 "Minimum of Stations"

! Atmosphere: Tropospheric Model
! ------------------------------
TROPOS 1  "SAASTAMOINEN"
  ## widget = combobox; editable = false
  ## cards = SAASTAMOINEN HOPFIELD ESSEN-FROOME MARINI-MUR NIELL DRY_SAAST DRY_HOPFIELD DRY_NIELL NONE

MSG_TROPOS 1 "Troposphere model"

! Check for missing troposphere values
CHKTROP 1  "1"
  ## widget = checkbox; activeif = TROPEST /= _

MSG_CHKTROP 1 "Remove obs with missing trp"

! Combination algorithm
CMBSEL 1  "TRIDIAG"
  ## widget = combobox; editable = false; cards = TRIDIAG SUM_CONDITION

MSG_CMBSEL 1 "Combination algorithm"

! Constrain on a-priori clock
IFIX 1  "1"
  ## widget = checkbox; activeif = CMBSEL == TRIDIAG

MSG_IFIX 1 "Fix on a-priori clocks"

! Remove non-fixed data pieces
REMOVE 1  "1"
  ## widget = checkbox; activeif = CMBSEL == TRIDIAG AND IFIX == 1

MSG_REMOVE 1 "Remove non-fixed data pieces"

! Remove clocks farther away from fixing epoch than dtfix (min)
DTFIX 1  "10"
  ## widget = lineedit; activeif = CMBSEL == TRIDIAG AND IFIX == 1

MSG_DTFIX 1 "Remove clocks t gt tfix"

! Allign with a-priori clock
ALLIGN 1  "1"
  ## widget = checkbox

MSG_ALLIGN 1 "Allign with a-priori clocks"

! Maximum Zenith Delay (Deg)
MAXZEN 1  "80"
  ## widget = spinbox; range = 70 90 1

MSG_MAXZEN 1 "Max. Zenith Distance (deg)"

! 2. CODE PROCESSING
!    ---------------
! Max. Tolerated Term "Observed-Computed" (Meter)
OMCMXC 1  "100000."
  ## widget = lineedit

MSG_OMCMXC 1 "Max tolerated term ``obs-comp''"

! A Priori Sigma of Zenith Code Observation
!APRSIC 1  "0"
!APRSIC 1  "0.50"
APRSIC 1  "0.5"
  ## widget = lineedit

MSG_APRSIC 1 "A priori sigma of zenith code observation"

! Use code
USECODE 1  "0"
  ## widget = checkbox

MSG_USECODE 1 "Use code observations"

! Max. Clock Residual Tolerated (Meter)
RESMXC 1  "0.8"
  ## widget = lineedit

MSG_RESMXC 1 "Max. clock residual tolerated"

! Max. rms Tolerated for Successful Clock Estimation
RMSMXC 1  "0.1"
  ## widget = lineedit

MSG_RMSMXC 1 "Max. rms tolerated for successful clock estimation"

! Max. Number of Iterations if rms Exceeded
MAXITC 1  "3"
  ## widget = spinbox; range = 1 10 1

MSG_MAXITC 1 "Max. number of iterations if rms exceeded"

! 3. PHASE PROCESSING FOR CLOCK DIFFERENCE ESTIMATION
!    ------------------------------------------------
! Max. Tolerated Term "Observed-Computed" (Meter)
OMCMAX 1  "100.00"
  ## widget = lineedit

MSG_OMCMAX 1 "Max tolerated term ``obs-comp''"

! A Priori Sigma of Phase Difference Observation
!APRSIP 1  "200.002"
APRSIP 1  "0.002"
  ## widget = lineedit

MSG_APRSIP 1 "A priori sigma of phase difference observation"

! Max. Clock Residual Tolerated (Meter)
RESMXP 1  "0.01"
  ## widget = lineedit

MSG_RESMXP 1 "Max. tolerated residual"

! Max. rms Tolerated for Successful Clock Estimation
RMSMXP 1  "0.001"
  ## widget = lineedit

MSG_RMSMXP 1 "Max. tolerated rms for clock estimation"

! Max. Number of Iterations if rms Exceeded
MAXITP 1  "4"
  ## widget = spinbox; range = 1 10 1

MSG_MAXITP 1 "Max. number of iterations if rms exceeded"

! -------------------------------------------------------------------
! Time Window
! -------------------------------------------------------------------
! Use observation window
USEWIN 1  "1"
  ## widget = checkbox

MSG_USEWIN 1 "Use Observation Window"

RADIO_1 1  "0"
  ## widget = radiobutton; group = WINDOW
  ## radiokeys = SESSION_YEAR SESSION_STRG

MSG_RADIO_1 1 "Defined by session number, year and table"

RADIO_2 1  "1"
  ## widget = radiobutton; group = WINDOW

MSG_RADIO_2 1 "Defined by start and end time"

SESSION_TABLE 1  "${P}/HICLKRAP/STA/SESSIONS.SES"
  ## widget = initmenu; pointer = SESSION_TABLE

DESCR_SESSION_TABLE 1  "Session table"

YR4_INFO 1  "2003"
  ## widget = comment
  # $Y+0

SES_INFO 1  "1960"
  ## widget = comment
  # $S+0

SESSION_YEAR 1  "2003"
  ## widget = lineedit; multilineallowed = true; emptyallowed = false
  # $Y+0

MSG_SESSION_YEAR 1 "Year for sessions def. the time window"

SESSION_STRG 1  "1960"
  ## widget = lineedit; multilineallowed = true; emptyallowed = false
  # $S+0

MSG_SESSION_STRG 1 "Sessions defining the time window"

STADAT 1  "2003 07 15"
  ## widget = lineedit; activeif = RADIO_2 = 1; check_type = date
  # $YMD_STR+0

MSG_STADAT 1 "Start of time window (year month day)"

STATIM 1  "00 00 00"
  ## widget = lineedit; emptyallowed = false
  ## activeif = RADIO_2 = 1 AND STADAT / _; check_type = time

MSG_STATIM 1 "Start of time window (hour min. sec.)"

ENDDAT 1  "2003 07 15"
  ## widget = lineedit; activeif = RADIO_2 = 1; check_type = date
  # $YMD_STR+0

MSG_ENDDAT 1 "End of time window (year month day)"

ENDTIM 1  "23 59 30"
  ## widget = lineedit; emptyallowed = false
  ## activeif = RADIO_2 = 1 AND ENDDAT / _; check_type = time

MSG_ENDTIM 1 "End of time window (hour min. sec.)"

! -------------------------------------------------------------------
! Output File Comments
! -------------------------------------------------------------------
! Title of Bernese clock file
! ---------------------------
TITCLK 1  "HIGH RATE SATELLITE CLOCKS (30 SECONDS)"
  ## widget = lineedit

MSG_TITCLK 1 "Title of file"

! Rinex header information
! ------------------------
RUNBY 1  "AIUB/CODE"
  ## widget = lineedit

MSG_RUNBY 1 "Run by"

ACRONYM 1  "COD"
  ## widget = lineedit

MSG_ACRONYM 1 "Acronym"

AGENCY 1  "CENTER FOR ORBIT DETERMINATION IN EUROPE"
  ## widget = lineedit

MSG_AGENCY 1 "Agency"

COMMENT 1  "HIGH RATE CLOCK VALUES BASED ON PHASE MEASUREMENTS"
  ## widget = uniline

MSG_COMMENT 1 "Comment"

! Write station clocks to Rinex
! -----------------------------
RADIO_ALL 1  "1"
  ## widget = radiobutton; group = WRTCLK

MSG_RADIO_ALL 1 "Write all station clocks"

RADIO_FIX 1  "0"
  ## widget = radiobutton; group = WRTCLK

MSG_RADIO_FIX 1 "Write station clocks at fixing epochs"

RADIO_SPC 1  "0"
  ## widget = radiobutton; group = WRTCLK

MSG_RADIO_SPC 1 "Write clocks for stations in special list"

RADIO_NOT 1  "0"
  ## widget = radiobutton; group = WRTCLK

MSG_RADIO_NOT 1 "Write no station clocks (except reference)"

COPYRNX 1  "1"
  ## widget = checkbox

MSG_COPYRNX 1 "Copy clocks from input rinex file to output"

MISSRNX 1  "0"
  ## widget = checkbox; activeif = COPYRNX == 1

MSG_MISSRNX 1 "Do not write clocks missing in input rinex file at fixing epochs"

! Reference Clock Station for Clock Files
! ---------------------------------------
RADIO_RXC 1  "1"
  ## widget = radiobutton; group = REFCLK

MSG_RADIO_RXC 1 "Reference clock from Clock RINEX file"

RADIO_AUTO 1  "0"
  ## widget = radiobutton; group = REFCLK

MSG_RADIO_AUTO 1 "Reference clock automatically"

RADIO_RLST 1  "0"
  ## widget = radiobutton; group = REFCLK

MSG_RADIO_RLST 1 "Reference clock from list"

RADIO_RSTA 1  "0"
  ## widget = radiobutton; group = REFCLK; radiokeys = RNXSTA

MSG_RADIO_RSTA 1 "Reference clock name"

REFCLK 1  "HRAO"
  ## widget = lineedit; activeif = RADIO_RSTA == 1

MSG_REFCLK 1 "Reference clock name"

REFLIST 1  "HRAO"
  ## widget = uniline

MSG_REFLIST 1 "Stations"

! Stations to be written to CLKRNX file
! -------------------------------------
STALIST 6

MSG_STALIST 1 "Stations"
  "AMC2"
  "NPLD"
  "PTBA"
  "PTBB"
  "USNO"
  "USNB"
  ## widget = uniline

ERRMRG 1  "0"


# BEGIN_PANEL NO_CONDITION #####################################################
# CLKEST 1: Clock Estimation, Input Files                                      #
#                                                                              #
# GENERAL FILES                                                                #
#   Show all general files  > % <                                              # SHOWGEN
#                                                                              #
# INPUT                                                                        #
#   A priori pole file > %%%%%%%% <        Ocean loading tables > %%%%%%%% <   # POLE   OCNLOAD
#   Standard orbits    > %%%%%%%% <        A priori coordinates > %%%%%%%% <   # STDORB COORD
#   Satellite clocks   > %%%%%%%% <        Est.troposphere val. > %%%%%%%% <   # SATCLK TROPEST
#   Clock RINEX file   > %%%%%%%% <        Code bias input file > %%%%%%%% <   # CLKRNX DCBINP
#                                                                              #
# INPUT FILES                                                                  #
#   Observation files  > %%%%%%%% <                                            # OBSFIL
# END_PANEL ####################################################################


# BEGIN_PANEL SHOWGEN = 1 ######################################################
# CLKEST 1.1: General Files                                                    #
#                                                                              #
# GENERAL INPUT FILES                                                          #
#   General constants       > %%%%%%%%%%%% <                                   # CONST
#   Subdaily pole model     > %%%%%%%% <                                       # SUBMOD
#   Nutation model          > %%%%%%%% <                                       # NUTMOD
#   Satellite information   > %%%%%%%%%%%% <                                   # SATELL
#   Receiver information    > %%%%%%%%%%%% <                                   # RECEIVR
#   Geodetic datum          > %%%%%%%%%%%% <                                   # DATUM
#   Phase center offsets    > %%%%%%%%%%%% <                                   # PHASECC
#                                                                              #
# MENU SETTINGS                                                                #
#   Selected campaign       > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% <   # CAMPAIGN
#   Selected session          year> %%%% <  session> %%%% <                    # YR4_INFO SES_INFO
#   Session table           > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% <   # SESSION_TABLE
#                                                                              #
# END_PANEL ####################################################################


# BEGIN_PANEL NO_CONDITION #####################################################
# CLKEST 2: Output Files                                                       #
#                                                                              #
# OUTPUT FILES                                                                 #
#   RINEX Clock File                                          > %%%%%%%% <     # CLKINF
#   Satellite Clock File (Bernese Format)                     > %%%%%%%% <     # CLKRES
#   Clock and Clock Differences                               > %%%%%%%%%%%% < # CLKDIFF
#   Missing Epochs                                            > %%%%%%%%%%%% < # EPOCHS
#   Detailed Combination Information                          > %%%%%%%%%%%% < # CMBINFO
#   Program Output File                                       > %%%%%%%% <     # SYSOUT
#   Error messages      (blank: same as output)               > %%%%%%%% <     # SYSERR
# END_PANEL ####################################################################


# BEGIN_PANEL NO_CONDITION #####################################################
# CLKEST 3.1: Options                                                          #
#    TITLE    > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% <        # TITLE
#                                                                              #
#    OBSERVATION SELECTION                                                     #
#      Max. Zenith Distance  (deg)    > %%%% <                                 # MAXZEN
#      Use Observation Window         > % <                                    # USEWIN
#      Sampling of data            > %%%% < sec                                # SAMPLING
#      Max diff. of equal epochs   > %%%% < sec                                # DTSIM
#      Linear Combination             > %% <                                   # LINCOMB
#      Minimum of Stations            > % <                                    # MINSTAT
#       observing one satellite                                                #
#                                                                              #
# END_PANEL ####################################################################


# BEGIN_PANEL USEWIN = 1 #######################################################
# CLKEST 3.2: Observation Window                                               #
#                                                                              #
#   > % <    Year> %%%% <  Session> %%%% <                                     # RADIO_1 SESSION_YEAR SESSION_STRG
#                                                                              #
#                      START                            END                    #
#            yyyy mm dd     hh mm ss         yyyy mm dd     hh mm ss           #
#   > % <  > %%%%%%%%%% < > %%%%%%%% <     > %%%%%%%%%% < > %%%%%%%% <         # RADIO_2 STADAT  STATIM   ENDDAT  ENDTIM
# END_PANEL ####################################################################


# BEGIN_PANEL NO_CONDITION #####################################################
# CLKEST 3.3: Options                                                          #
#                                                                              #
#    TROPOSPHERE                                                               #
#      Model                          > %%%%%%%%%%%%% <                        # TROPOS
#      Remove obs with missing trp    > % <                                    # CHKTROP
#                                                                              #
#    CLOCK COMBINATION                                                         #
#      Combination algorithm          > %%%%%%%%%%%%% <                        # CMBSEL
#      Use code observations          > % <                                    # USECODE
#      Fix on a-priori clocks         > % <                                    # IFIX
#      Remove non-fixed data pieces   > % <                                    # REMOVE
#      Remove clocks t gt tfix     > %%%% < min                                # DTFIX
#      Allign with a-priori clocks    > % <                                    # ALLIGN
#                                                                              #
# END_PANEL ####################################################################


# BEGIN_PANEL NO_CONDITION #####################################################
# CLKEST 4: Screening Options                                                  #
# OPTIONS FOR CODE PROCESSING                                                  #
#    Max tolerated term ``obs-comp''                        > %%%%%%%%%%% <    # OMCMXC
#    A priori sigma of zenith code observation                    > %%%%% <    # APRSIC
#    Max. clock residual tolerated                                > %%%%% <    # RESMXC
#    Max. rms tolerated for successful clock estimation           > %%%%% <    # RMSMXC
#    Max. number of iterations if rms exceeded                        > % <    # MAXITC
#                                                                              #
# OPTIONS FOR PHASE PROCESSING                                                 #
#    Max tolerated term ``obs-comp''                        > %%%%%%%%%%% <    # OMCMAX
#    A priori sigma of phase difference observation               > %%%%% <    # APRSIP
#    Max. tolerated residual                                      > %%%%% <    # RESMXP
#    Max. tolerated rms for clock estimation                      > %%%%% <    # RMSMXP
#    Max. number of iterations if rms exceeded                        > % <    # MAXITP
#                                                                              #
# END_PANEL ####################################################################


# BEGIN_PANEL  CLKINF / _ ######################################################
# CLKEST 5.1: Write Rinex Clock File                                           #
#                                                                              #
# WRITE STATION CLOCKS                                                         #
#  > % <Write all station clocks                                               # RADIO_ALL
#  > % <Write clocks for stations in special list                              # RADIO_SPC
#  > % <Write station clocks at fixing epochs                                  # RADIO_FIX
#  > % <Write no station clocks (except reference)                             # RADIO_NOT
#    Copy clocks from input rinex file to output                      > % <    # COPYRNX
#    Do not write clocks missing in input rinex file at fixing epochs > % <    # MISSRNX
#                                                                              #
# RINEX HEADER INFORMATION                                                     #
#    Run by > %%%%%%%%%%%%%%%%%%%% <                                           # RUNBY
#    Acronym> %%% <                                                            # ACRONYM
#    Agency > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% <        # AGENCY
#                                                                              #
#    Comment> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% <   # COMMENT
#                                                                              #
# END_PANEL ####################################################################


# BEGIN_PANEL RADIO_SPC = 1 AND CLKRES / _ #####################################
# CLKEST 5.2: List of Clocks for Output CLKRNX File                            #
#                                                                              #
#   Stations   > %%%% <                                                        # STALIST
#                                                                              #
# END_PANEL ####################################################################


# BEGIN_PANEL  CLKINF / _ OR CLKRES / _ ########################################
# CLKEST 5.3: Reference Clock for Clock Files                                  #
#                                                                              #
# REFERENCE CLOCK STATION                                                      #
#  > % <Reference clock from Clock RINEX file (if not available, automatically)# RADIO_RXC
#  > % <Reference clock automatically                                          # RADIO_AUTO
#  > % <Reference clock from list                                              # RADIO_RLST
#  > % <Reference clock name        > %%%% <                                   # RADIO_RSTA REFCLK
#                                                                              #
# END_PANEL ####################################################################


# BEGIN_PANEL CLKINF / _ OR CLKRES / _  AND RADIO_RLST = 1 #####################
# CLKEST 5.4: List of Reference Clocks for Output Clock File                   #
#                                                                              #
#   Stations   > %%%% <       (in order of precedency)                         # REFLIST
#                                                                              #
# END_PANEL ####################################################################


# BEGIN_PANEL  CLKRES / _ ######################################################
# CLKEST 5.5: Write Bernese Clock File                                         #
#                                                                              #
# TITLE OF FILE                                                                #
#      > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% <    # TITCLK
#                                                                              #
# END_PANEL ####################################################################
