! /afs/jpl/group/casradar/master_cfg


#-----------------------------------------------------------------------------
# Flyby Setup & IO Pass Information
# spacecraft - specifies the name of a SPICE recognized observer body
# target - specifies the name of a SPICE recognized target body
# data_take_number - Cruise IEB's < 30, Tour IEB's > 30
#                    if larger than 255, it will roll back to 0
# Reset_data_take_number - Use this option when data take number is not properly
# 	        set during uplink process
# target_name - use target
# IO_PDT_configfile - PDT config specifies SPICE files for that sequence
# IO_smtfile_1 - path and file name of SMT file received from IO 
# 		(Science Planning Web Site)
# IO_smtfile_2 - path and file name of SMT file
#                 (often: PEF are 2 Sequences, SMT are 1 seqence)
# IO_peffile - path and file name of PEF file received from IO 
# 		(Science Planning Web Site)
# IEB_number_in_PEF - PEF file can contain multiple IEBs.
#                     If 0 config_merge will prompt user
#-----------------------------------------------------------------------------

spacecraft Cassini
target Dione
data_take_number 147
IO_PDT_configfile /afs/jpl/group/casops/dom/data/main/pdt_config/S34_ssup_psiv1_070802_pdt.cfg
IO_smtfile_1    /afs/jpl/group/casradar/tour/s34/s34_070808.rpt
IO_peffile       /afs/jpl/group/casops/dom/data/seq/S34/pef/z0340c_merge.pef
IEB_number_in_PEF 2 

#-----------------------------------------------------------------------------
# Kernel_Dispaly Parameters (to control plotting)
# plot_tool - specifies whether xmgr or xmgrace is used for making plots
# Valid values for: plot_tool
#   xmgrace - Use xmgrace (this is the default if this keyword is absent)
#   xmgr - alternate older plotting tool
#-----------------------------------------------------------------------------

plot_tool xmgrace

#-----------------------------------------------------------------------------
# RMSS IO Parameters (populated by the config_merge process)
# IEB_Trigger - SCLK value of trigger given in PEF file
#                 This is second trigger (not IDAPT trigger)
# IEB_delta_trigger - Delta trigger time update due to live ivp update
# IDAPT_delta - time prior to IEB_Trigger.  Value always second prior to Trigger
# IEB_duration - time from IEB_Trigger to Halt
# DataVolumeAllocation - time from IEB_Trigger to Halt
# DataRateTime_1 - Time of Data Rate Mode Change
# DataRateTime_2 - Time of Data Rate Mode Change
# DataRateTime_3 - Time of Data Rate Mode Change
# DataRateTime_4 - Time of Data Rate Mode Change
# DataRateTime_5 - Time of Data Rate Mode Change
# DataRateTime_6 - Time of Data Rate Mode Change
# DataRateTime_7 - Time of Data Rate Mode Change
# DataRateTime_8 - Time of Data Rate Mode Change
# DataRateTime_9 - Time of Data Rate Mode Change
# DataRate_1 - The S/C Date Rate starting at correlated DateRateTime
# DataRate_2 - The S/C Date Rate starting at correlated DateRateTime
# DataRate_3 - The S/C Date Rate starting at correlated DateRateTime
# DataRate_4 - The S/C Date Rate starting at correlated DateRateTime
# DataRate_5 - The S/C Date Rate starting at correlated DateRateTime
# DataRate_6 - The S/C Date Rate starting at correlated DateRateTime
# DataRate_7 - The S/C Date Rate starting at correlated DateRateTime
# DataRate_8 - The S/C Date Rate starting at correlated DateRateTime
# DataRate_9 - The S/C Date Rate starting at correlated DateRateTime
# PowerTransitionTime_1 - Time of Power Transition Allocation
# PowerTransitionTime_2 - Time of Power Transition Allocation
# PowerTransitionTime_3 - Time of Power Transition Allocation
# PowerTransitionTime_4 - Time of Power Transition Allocation
# PowerTransitionTime_5 - Time of Power Transition Allocation
# PowerTransitionTime_6 - Time of Power Transition Allocation
# PowerTransitionTime_7 - Time of Power Transition Allocation
# PowerTransitionTime_8 - Time of Power Transition Allocation
# PowerTransitionTime_9 - Time of Power Transition Allocation
# PowerAllocation_1 - Power Level Allocation (ie: 0,55,86)
# PowerAllocation_2 - Power Level Allocation (ie: 0,55,86)
# PowerAllocation_3 - Power Level Allocation (ie: 0,55,86)
# PowerAllocation_4 - Power Level Allocation (ie: 0,55,86)
# PowerAllocation_5 - Power Level Allocation (ie: 0,55,86)
# PowerAllocation_6 - Power Level Allocation (ie: 0,55,86)
# PowerAllocation_7 - Power Level Allocation (ie: 0,55,86)
# PowerAllocation_8 - Power Level Allocation (ie: 0,55,86)
# PowerAllocation_9 - Power Level Allocation (ie: 0,55,86)
#-----------------------------------------------------------------------------

IEB_Trigger 1569793241
IEB_delta_trigger 0 s
IDAPT_delta -30 s
IEB_duration 20970 s
DataVolumeAllocation 0 
DataRateTime_1 1569792911
DataRateTime_2 1569793811
DataRateTime_3 1569803711
DataRateTime_4 1569814511
DataRate_1 7600
DataRate_2 0
DataRate_3 364800
DataRate_4 0
PowerTransitionTime_1 1569792914
PowerTransitionTime_2 1569803753
PowerTransitionTime_3 1569814482
PowerAllocation_1 55 W
PowerAllocation_2 86 W
PowerAllocation_3 55 W

#-----------------------------------------------------------------------------
# Epoch Setup
# epoch_selection - specifies how the epoch time for this config file is set
# Valid values for: epoch_selection
#   absolute - The value specified by epoch_time is used directly
#   closest_flyby - The closest approach time nearest to epoch_time is used
# epoch_accuracy - The precision of the search for the closest flyby time
# epoch_time - The epoch time to use, or the starting point in the search for
#              the epoch time to use.
#-----------------------------------------------------------------------------

epoch_selection absolute
epoch_accuracy 1 ms
epoch_time 2007-272T21:00:03.000

#-----------------------------------------------------------------------------
# SAR Pointing and IVD Setup
# look_direction - Specifies which side to tilt the 5 beams towards
# Valid values for: look_direction
#   right - Look to the right when you look along the velocity direction from
#           behind the spacecraft.
#   left - Look to the left when you look along the velocity direction from
#          behind the spacecraft.
# sc_orientation - Specifies whether plus or minus X should be closest to the
#                  velocity direction during the IVD interval.
#                  ie., resolve the 180 degree ambiguitiy in SAR pointing.
# Valid values for: sc_orientation
#   -x_direction_to_velocity - Hold -X towards the velocity direction
#   +x_direction_to_velocity - Hold +X towards the velocity direction
# ivd_file - the name of the output IVD file to create
# start_time_ivd - Start time of SAR profile - used to create ivd files
# time_step_ivd - used to create ivd files
# end_time_ivd - End time of SAR profile - used to create ivd files
# ivd_time_pad - amount of time to add to the IVD time interval on each side.
#                This creates an IVD file valid for a longer time interval.
# ivd_fractional_second  - determine fractional time in generating IVD
#-----------------------------------------------------------------------------

look_direction left 
sc_orientation  -x_direction_to_velocity
ivd_file RADAR_S34A_SOPU_T36_070618.ivd
start_time_ivd -25 min
time_step_ivd   1.0 s
end_time_ivd  25    min
ivd_time_pad 7 min
ivd_fractional_second .162 s

#-----------------------------------------------------------------------------
# Default Spice Directories
# hasekSPICEdir - Default path to SPICE files on hasek (except ckernels)
# 		Note: Also default for unknown workstation
#                       (according to config_merge)
# casradar2SPICEdir - Default path to SPICE files on casradar2 (except ckernels)
#-----------------------------------------------------------------------------

hasekSPICEdir /home/ras/dat/naif/
casradar2SPICEdir /cas/ancillary/ops/NAIF/

#-----------------------------------------------------------------------------
# Spice File Setup
# spice_directory - Directory where Spice files reside (except ckernels)
#                   If not present, fully qualified names must be used
# tour_ephemeris - SPICE file: the spacecraft ephemeris file
# sclk_kernel - SPICE file: sclk to UTC translation data
# time_kernel - SPICE file: leapseconds data
# instrument_kernel - SPICE file: field of view data for an instrument
# frame_kernel - SPICE file: instrument frame definitions
# planetary_constants_kernel - SPICE file: GM, radii etc for planets
# solarsystem_ephemeris_kernel - SPICE file: ephemeris data for planet
#                                barycenters
# planet_ephemeris_kernel - SPICE file: ephemeris data for specific planet
#-----------------------------------------------------------------------------

spice_directory /home/ras/dat/naif/
tour_ephemeris sp/080117R_SCPSE_07262_07309.bsp
sclk_kernel sclk/cas00114.tsc
time_kernel lsk/naif0008.tls
instrument_kernel ik/cas_radar_v11.ti
frame_kernel fk/cas_v39.tf
planetary_constants_kernel pck/cpck22Jan2008.tpc
solarsystem_ephemeris_kernel sp/080117R_SCPSE_07262_07309.bsp
planet_ephemeris_kernel sp/080117R_SCPSE_07262_07309.bsp

#-----------------------------------------------------------------------------
# Ckernel Names
# ckernel_directory - Directory where C-kernel files reside
#                     If not present, fully qualified names must be used
# ckernel - name of first ckernel file to load
# ckernel_* - optional additional ckernel files to load
#               * is replaced by 1,2,3..
#-----------------------------------------------------------------------------

ckernel /home/ras/dat/naif/ck/07272_07277ra.bc

#-----------------------------------------------------------------------------
# Time Interval Specifications
#   Interval specificiations are epoch relative and consist of three associated
#   keywords (time_step_xx, start_time_xx, end_time_xx where xx is a string
#   identifying a particular interval).
# time_step - The default time step to use
# start_time - Default epoch relative starting time
# end_time - Default epoch relative ending time
#-----------------------------------------------------------------------------

time_step    10 s
start_time   0 min
end_time     360 min

#-----------------------------------------------------------------------------
# Live Update Spice File Setup
# live_update_spice_directory - Directory where updated Spice files reside
#    (except ckernels)  If not present, fully qualified names must be used
# live_update_tour_ephemeris - Live update SPICE file
#                              The spacecraft ephemeris file
# live_update_sclk_kernel - Live update SPICE file
#                           sclk to UTC translation data
# live_update_time_kernel - Live update SPICE file
#                           leapseconds data
# live_update_instrument_kernel - Live update SPICE file
#                                 field of view data for an instrument
# live_update_frame_kernel - Live update SPICE file
#                            instrument frame definitions
# live_update_planetary_constants_kernel - Live update SPICE file
#                                          GM, radii etc for planets
# live_update_solarsystem_ephemeris_kernel - Live update SPICE file
#                                            planet barycenters
# live_update_planet_ephemeris_kernel - Live update SPICE file
#                                      ephemeris data for specific planet
# live_update_merged_ckernel_port2 - Ckernel file to be used by
#    live-ivp-update program, generally considered old ckernel before
#    live ivp update
#-----------------------------------------------------------------------------

live_update_tour_ephemeris x
live_update_sclk_kernel x
live_update_time_kernel x
live_update_instrument_kernel x
live_update_frame_kernel x
live_update_planetary_constants_kernel x
live_update_solarsystem_ephemeris_kernel x
live_update_planet_ephemeris_kernel x

#-----------------------------------------------------------------------------
# RMSS Constants and semi-fixed parameters
# InstDensityNavErrors - Switch the usage of Navigation Errors
#                        in InstructionDensity Routine
# Valid values for: InstDensityNavErrors
#   on - Use nav errors, this is the normal setting
#   off - Don't use nav errors
#        Some small distant targets may need the off setting
# CDS_Cmd_Delay - Time delay between time command in the PEF going to CDS
#                 vs the RADAR execution of that command.
#                 (Expected to be +1 second)
# SoftPowerCycle - Default = enable to allow RMSS to power down if there
# 		is a radiometer division between two Active modes
# 		(If Disabled, RMSS will not power down until last active mode)
# AutoGainCycles - When AutoGain is enabled or a FLTSW autogain
#                  Feature boundary is encountered
#                  RMSS should insert rapid copies of the instruction
#                  to give AutoGain ability to step at the start
# AutoRadCycles - When AutoRad is enabled
#                 RMSS should insert rapid copies of the instruction
#                 to give AutoRAD ability to step at the start
# Calibration_Instruction_Method - RMSS insert calibraion mode
#                                  (rerouted,chirp, leakage, ant only)
#   These can be inserted in 1 of 4 different locations in the IEB timeline
#     0 - Normal Calibration Insert:  Between each mode change.
#     1 - Lumped.Beginning:  Gather all calibrations to be done and insert
#         block at first location only
#     2 - Lumped.Ending:  Gather all calibrations to be done and insert
#         block at last location
#     3 - Lumped.both ends: Gather all calibrations to be done and insert
#         at beginning and a copy at the end
# Max_Scat_Incidence_Used - (default 60) During Scatterometry RMSS will update instruction based on validtime upto normally 60 degress.
#         However if PDT designs go to higher incidence or to reduce FINs the user can adjust this value.
# Calibration_SARH_ANT_Cycles - Allows user to state the number of Ant calibration cycles to be inserted for the calibrartion routines.
# SlowCFSCompression - Percentage (integer: between 0-100) of the Slow_Cfs parameter that RMSS is allowed to compress in order to
#         reduce the number of Slow Field Instructions (SIN).
# BpdGapAdjustPercentage - Percentage (integer: between 0-100) of the amount of the Burst Period that RMSS is allowed to
#         increase the BPD in order to reduce the gap between ILXes. (goes with Bpd_Adjust below)
# Scat_Validtime_Adjust_For_Gaps - (enable or disable) If enabled, RMSS may decrease the VALIDTIME time value (Up to a limit) to
#                 reduce gaps between instruction boundaries (This can be enabled/disabled based on mode)
# Alth_Validtime_Adjust_For_Gaps - (enable or disable) see note above.
# Sarh_Validtime_Adjust_For_Gaps - (enable or disable) see note above.
# Sarl_Validtime_Adjust_For_Gaps - (enable or disable) see note above.
# Scat_Bpd_Adjust_For_Gaps - (enable or disable) If enabled, RMSS may increase Burst Period (BPD) (Up to a limit) to reduce gaps
#                 between instruction boundaries (This can be enabled/disabled based on mode)
# Alth_Bpd_Adjust_For_Gaps - (enable or disable) see note above.
# Sarh_Bpd_Adjust_For_Gaps - (enable or disable) see note above.
# Sarl_Bpd_Adjust_For_Gaps - (enable or disable) see note above.
# RMSS_UserInputFile_1 - Provide a wtk formatted file to overwrite any
#   RMSS create section of the IEB.
#   The User Input File will NOT overwrite Power or TNC instructions.
#   The first file must have the '1' extention,
#   if there are more this extenstion should be incremented
#-----------------------------------------------------------------------------

InstDensityNavErrors on
CDS_Cmd_Delay 1 s
AutoGainCycles 3
AutoRadCycles 4
Calibration_Instruction_Method 1
Max_Scat_Incidence_Used 77
Calibration_SARH_ANT_Cycles 1
SlowCFSCompression 2
BpdGapAdjustPercentage 8 
Scat_Validtime_Adjust_For_Gaps enable
Alth_Validtime_Adjust_For_Gaps enable
Sarh_Validtime_Adjust_For_Gaps enable
Sarl_Validtime_Adjust_For_Gaps enable
Scat_Bpd_Adjust_For_Gaps enable
Alth_Bpd_Adjust_For_Gaps disable
Sarh_Bpd_Adjust_For_Gaps enable
Sarl_Bpd_Adjust_For_Gaps enable

#-----------------------------------------------------------------------------
# RMSS Piece-wise constant profiles
# scat_prf_number_points - number of thetai,prf pairs
# scat_thetai_* - incidence angle ranges for corresponding prf
# scat_prf_* - PRF value to use with the corresponding thetai
#   For thetai between thetai_1 and thetai_2, prf_1 is used.
#   For thetai above the final thetai_n, the final prf_n is used.
#   For off-target situations, the final prf_n is used.
# dutycycle_limit_number_points - number of prf,dutycycle limit pairs
# dutycycle_limit_prf_* - PRF value at or above this will be limited to
#   the corresponding duty cycle value.  Limits applied in order so lowest
#   PRF values should be listed first.
#   PRF values between _prf_1 and _prf_2 are limited to _d_1 for dutycycle
#   These limits are only applied to scatterometer mode divisions
# dutycycle_limit_d_* - duty cycle limit value for the corresponding PRF
#   The * is replaced by 1,2,3 ...
#-----------------------------------------------------------------------------

scat_prf_number_points 7
% Below apply only to scatterometer divisions
dutycycle_limit_number_points 2

scat_thetai_1 0 deg
scat_prf_1 1000 Hz
dutycycle_limit_prf_1 0 Hz
dutycycle_limit_d_1 0.75
scat_thetai_2 35 deg
scat_prf_2 900 Hz
dutycycle_limit_prf_2 10000 Hz
dutycycle_limit_d_2 0.75
scat_thetai_3 43 deg
scat_prf_3 800 Hz
scat_thetai_4 48 deg
scat_prf_4 700 Hz
scat_thetai_5 51 deg
scat_prf_5 600 Hz
scat_thetai_6 54 deg
scat_prf_6 500 Hz
scat_thetai_7 60 deg
scat_prf_7 500 Hz

#-----------------------------------------------------------------------------
# Radar Commanding Parameters
# radar mode options:
#   sarh, sarl, altimeter, scatterometer, scatterometer_compressed, radiometer
# Calibration source:
#   0(normal), 1(antenna cal source), 2(noise diode), 3(resitive load)
#   4(rerouted chirp),5(leakage),6(radiometer only),7(transmit only)
#   8(auto gain)
# baq:
#   0(8-2 baq),1(8-1 baq), 2(8-0,no science data),3(ALTL compressed)
#   4(8-4MSB), 5(8-8 straight), 6(ALTL),7(ALTH)
# beam mask
#   00000 : all beams disabled
#   00001: beam 1 only
#   ..
#   00100: beam 3 only
#   11111: all beams only
# Division keywords are identified by suffix letter _a, _b etc.
# div_mode_*
# div_start_time_*
# div_end_time_*
# div_time_step_*
# div_bem_*
# div_baq_*
# div_csr_*
# div_noise_bit_setting_*
# div_bpd_*
# div_dutycycle_*
# div_prf*
# div_tro_*
# div_number_of_pulses_*
# div_n_bursts_in_flight_*
# div_percent_of_BW_*
# div_auto_rad_*
# div_rip_*
# div_max_data_rate_*
# div_interleave_flag_*
# div_interleave_duration_*
#-----------------------------------------------------------------------------

%------rad warm-up ----telem only for first ~10 minutes--------------------
div_mode_a radiometer
div_start_time_a 0 min
div_end_time_a 190 min
div_time_step_a 45 min
div_bem_a 11111
div_baq_a 5
div_csr_a 6
div_noise_bit_setting_a 4
div_dutycycle_a 0.38
div_prf_a 1 KHz
div_tro_a 0
div_number_of_pulses_a 8
div_n_bursts_in_flight_a 1
div_percent_of_BW_a 100
div_auto_rad_a on
div_rip_a 34 ms
div_max_data_rate_a 0.992
div_interleave_flag_a off
div_interleave_duration_a 10 min
%--------- rad quick steps-------------------
div_mode_b radiometer
div_start_time_b 190 min
div_end_time_b 195 min
div_time_step_b 1 min
div_bem_b 00100
div_baq_b 5
div_csr_b 6
div_noise_bit_setting_b 4
div_dutycycle_b 0.38
div_prf_b 1 KHz
div_tro_b 0
div_number_of_pulses_b 8
div_n_bursts_in_flight_b 1
div_percent_of_BW_b 100
div_auto_rad_b on
div_rip_b 34 ms
div_max_data_rate_b 0.992
div_interleave_flag_b off
div_interleave_duration_b 10 min
%----------rad raster--
div_mode_c radiometer
div_start_time_c 195 min
div_end_time_c 254 min
div_time_step_c 20 min
div_bem_c 00100
div_baq_c 5
div_csr_c 6
div_noise_bit_setting_c 4
div_dutycycle_c 0.38
div_prf_c 1 KHz
div_tro_c 0
div_number_of_pulses_c 8
div_n_bursts_in_flight_c 1
div_percent_of_BW_c 100
div_auto_rad_c on
div_rip_c 34 ms
div_max_data_rate_c 0.992
div_interleave_flag_c off
div_interleave_duration_c 10 min
%----------rad filler--
div_mode_d radiometer
div_start_time_d 254 min
div_end_time_d 262 min
div_time_step_d 20 min
div_bem_d 00100
div_baq_d 5
div_csr_d 6
div_noise_bit_setting_d 4
div_dutycycle_d 0.38
div_prf_d 1 KHz
div_tro_d 0
div_number_of_pulses_d 8
div_n_bursts_in_flight_d 1
div_percent_of_BW_d 100
div_auto_rad_d on
div_rip_d 34 ms
div_max_data_rate_d 0.992
div_interleave_flag_d off
div_interleave_duration_d 10 min
%--------------scat corner1 ------------------
div_mode_e scatterometer
div_start_time_e 262 min
div_end_time_e 265 min
div_time_step_e 6 s
div_bem_e 00100
div_baq_e 5
div_csr_e 0
div_noise_bit_setting_e 4
div_dutycycle_e 0.70
div_prf_e 4.416666 KHz
div_tro_e 6
div_number_of_pulses_e 190
div_n_bursts_in_flight_e 2
div_percent_of_BW_e 0
div_auto_rad_e on
div_rip_e 34 ms
div_max_data_rate_e 195
div_interleave_flag_e off
div_interleave_duration_e 10 min
%----------ras filler--
div_mode_f radiometer
div_start_time_f 265 min
div_end_time_f 277 min
div_time_step_f 20 min
div_bem_f 00100
div_baq_f 5
div_csr_f 6
div_noise_bit_setting_f 4
div_dutycycle_f 0.38
div_prf_f 1 KHz
div_tro_f 0
div_number_of_pulses_f 8
div_n_bursts_in_flight_f 1
div_percent_of_BW_f 100
div_auto_rad_f on
div_rip_f 34 ms
div_max_data_rate_f 0.992
div_interleave_flag_f off
div_interleave_duration_f 10 min
%--------------scat corner2-----------------
div_mode_g scatterometer
div_start_time_g 277 min
div_end_time_g 280 min
div_time_step_g 6 s
div_bem_g 00100
div_baq_g 5
div_csr_g 0
div_noise_bit_setting_g 4
div_dutycycle_g 0.70
div_prf_g 4.416666 KHz
div_tro_g 6
div_number_of_pulses_g 190
div_n_bursts_in_flight_g 2
div_percent_of_BW_g 0
div_auto_rad_g on
div_rip_g 34 ms
div_max_data_rate_g 200
div_interleave_flag_g off
div_interleave_duration_g 10 min
%----------ras filler--
div_mode_h radiometer
div_start_time_h 280 min
div_end_time_h 292 min
div_time_step_h 20 min
div_bem_h 00100
div_baq_h 5
div_csr_h 6
div_noise_bit_setting_h 4
div_dutycycle_h 0.38
div_prf_h 1 KHz
div_tro_h 0
div_number_of_pulses_h 8
div_n_bursts_in_flight_h 1
div_percent_of_BW_h 100
div_auto_rad_h on
div_rip_h 34 ms
div_max_data_rate_h 0.992
div_interleave_flag_h off
div_interleave_duration_h 10 min
%--------------scat div corner3 ------------------
div_mode_i scatterometer
div_start_time_i 292 min
div_end_time_i 295 min
div_time_step_i 6 s
div_bem_i 00100
div_baq_i 5
div_csr_i 0
div_noise_bit_setting_i 4
div_dutycycle_i 0.70
div_prf_i 4.416666 KHz
div_tro_i 6
div_number_of_pulses_i 190
div_n_bursts_in_flight_i 2
div_percent_of_BW_i 0
div_auto_rad_i on
div_rip_i 34 ms
div_max_data_rate_i 200
div_interleave_flag_i off
div_interleave_duration_i 10 min
%----------ras filler-- 
div_mode_j radiometer
div_start_time_j 295 min
div_end_time_j 307 min
div_time_step_j 20 min
div_bem_j 00100
div_baq_j 5
div_csr_j 6
div_noise_bit_setting_j 4
div_dutycycle_j 0.38
div_prf_j 1 KHz
div_tro_j 0
div_number_of_pulses_j 8
div_n_bursts_in_flight_j 1
div_percent_of_BW_j 100
div_auto_rad_j on
div_rip_j 34 ms
div_max_data_rate_j 0.992
div_interleave_flag_j off
div_interleave_duration_j 10 min
%--------------scat div corner4 ------------------
div_mode_k scatterometer
div_start_time_k 307 min
div_end_time_k 310 min
div_time_step_k 6 s
div_bem_k 00100
div_baq_k 5
div_csr_k 0
div_noise_bit_setting_k 4
div_dutycycle_k 0.70
div_prf_k 4.416666 KHz
div_tro_k 6
div_number_of_pulses_k 190
div_n_bursts_in_flight_k 2
div_percent_of_BW_k 0
div_auto_rad_k on
div_rip_k 34 ms
div_max_data_rate_k 200
div_interleave_flag_k off
div_interleave_duration_k 10 min
%----------ras filler-- 
div_mode_l radiometer
div_start_time_l 310 min
div_end_time_l 325 min
div_time_step_l 20 min
div_bem_l 00100
div_baq_l 5
div_csr_l 6
div_noise_bit_setting_l 4
div_dutycycle_l 0.38
div_prf_l 1 KHz
div_tro_l 0
div_number_of_pulses_l 8
div_n_bursts_in_flight_l 1
div_percent_of_BW_l 100
div_auto_rad_l on
div_rip_l 34 ms
div_max_data_rate_l 0.992
div_interleave_flag_l off
div_interleave_duration_l 10 min
%--------------scat stare tone------------------
div_mode_m scatterometer
div_start_time_m 325 min
div_end_time_m 329 min
div_time_step_m 6 s
div_bem_m 00100
div_baq_m 5
div_csr_m 0
div_noise_bit_setting_m 4
div_dutycycle_m 0.70
div_prf_m 4.416666 KHz
div_tro_m 6
div_number_of_pulses_m 190
div_n_bursts_in_flight_m 2
div_percent_of_BW_m 0
div_auto_rad_m on
div_rip_m 34 ms
div_max_data_rate_m 200
div_interleave_flag_m off
div_interleave_duration_m 10 min
%--------------scat stare chirp ------------------
div_mode_n scatterometer
div_start_time_n 329 min
div_end_time_n 335 min
div_time_step_n 6 s
div_bem_n 00100
div_baq_n 5
div_csr_n 0
div_noise_bit_setting_n 4
div_dutycycle_n 0.70
div_prf_n 2500 Hz
div_tro_n 6
div_number_of_pulses_n 80
div_n_bursts_in_flight_n 2
div_percent_of_BW_n 100
div_auto_rad_n on
div_rip_n 34 ms
div_max_data_rate_n 200
div_interleave_flag_n off
div_interleave_duration_n 10 min
%--------------Recieve only on/off target------------------
div_mode_o scatterometer_compressed
div_start_time_o 335 min
div_end_time_o 345 min
div_time_step_o 12 s
div_bem_o 00100
div_baq_o 3
div_csr_o 1
div_noise_bit_setting_o 4
div_dutycycle_o 0.38
div_prf_o 1.2 KHz
div_tro_o 6
div_number_of_pulses_o 150
div_n_bursts_in_flight_o 1
div_percent_of_BW_o 0
div_auto_rad_o on
div_rip_o 34 ms
div_max_data_rate_o 4.3
div_interleave_flag_o off
div_interleave_duration_o 10 min
%----------ras at the end-- 
div_mode_p radiometer
div_start_time_p 345 min
div_end_time_p 350 min
div_time_step_p 20 min
div_bem_p 00100
div_baq_p 5
div_csr_p 6
div_noise_bit_setting_p 4
div_dutycycle_p 0.38
div_prf_p 1 KHz
div_tro_p 0
div_number_of_pulses_p 8
div_n_bursts_in_flight_p 1
div_percent_of_BW_p 100
div_auto_rad_p on
div_rip_p 34 ms
div_max_data_rate_p 0.992
div_interleave_flag_p off
div_interleave_duration_p 10 min

#-----------------------------------------------------------------------------
# Special Chirp Start Frequency Selection
# Make_csf_integer_multiple_of_prf -(this choice is used only for CW wave) If Yes(yes), chirp start frequency will be adjusted to be an integer multiple of prf if possible or minimize fractional part of csf/prf
# Min_frequency_of_returned_CW_echo - when Make_csf_integer_multiple_of_prf is enabled, chirp start frequency will be scanned in such a way that echo location in the base band is larger than this value : suggested value -100 KHz
# Max_frequency_of_returned_CW_echo - - when Make_csf_integer_multiple_of_prf is enabled, chirp start frequency will be scanned in such a way that echo location in the base band is smaller than this value: suggested value -20 KHz
#-----------------------------------------------------------------------------

%------------------------------
Make_csf_integer_multiple_of_prf Yes
Min_frequency_of_returned_CW_echo  -100 KHz
Max_frequency_of_returned_CW_echo -20 KHz

#-----------------------------------------------------------------------------
# Parameters needed by dlap_generate
# tracking_option - Specifies the general behavior of the spacecraft rotation
#                   about the Y axis during SAR pointing.
# Valid values for: tracking_option
#   target_center - Point -Z at the target spin axis.
#                   If the incidence angle is zero, then this
#                   simply means to point -Z at the target center.
#   target_isodoppler - Point -Z so as to minimize doppler variation in the
#                       cross-track direction.
#   target_pitch_bias - Apply a rotation about spacecraft y-axis away from
# 			isodoppler pointing.  This option is used to increase
# 			alongtrack coverage during Titan tour
#   target_contiguous_coverage - Point -Z so as to fan the 5 beams
#                                perpendicular to the projected
#                                motion of the 5 beams.
# incidence_angle_offset  - Change incidence angle profile from an ideal one
#                          by adding a constant offset angle
# set_azimuth_rotation - Used when tracking_option is set to target_center.
#                        This keyword specifies the azimuth offset to use.
# set_sc_z_rotation - Used when tracking_option is set to target_isodoppler
# 		    This keyword specifies an additional rotation w.r.t
# 		    sc z_axis after isodoppler location is set.
# number_of_local_incidence_angle_changes - number of local incidence angle changes   Each change requires 5 parameters
#                                            absence of this keyword means there is no local incidence angle modification
# Valid values for: number_of_local_incidence_angle_changes
# local_incidence_angle_offset_*  -incidence angle bias
# local_incidence_angle_tr1_*  -start time from ideal pointing  toward bias
# local_incidence_angle_tr1_*  -end of transition to local bias
# local_incidence_angle_tr1_* -begining time from local bias toward ideal pointing
# local_incidence_angle_tr1_*  -end time to reach ideal pointing
# angle_profile_option - Specifies the form of the incidence angle
#                        profile to use 
# Valid values for: angle_profile_option
#   constant_incidence_angle - Use same incidence angle
#                              throughout IVD interval
#   polynomial_fit - Use a polynomial profile fitted in the
#                    least squares sense to points listed in
#                    this config file.
#   sech_function - Use a hyperbolic secant function to model the incidence
#                   angle variation.  This function will fit the c/a incidence
#                   angle, the residual incidence angle at high altitude,
#                   and one mid point value.  Special keywords below control
#                   this model.
#-----------------------------------------------------------------------------

tracking_option target_isodoppler
set_azimuth_rotation 0 deg
set_sc_z_rotation 0 deg
angle_profile_option polynomial_fit

#-----------------------------------------------------------------------------
# When incidence angle profile is constant_incidence_angle
# constant_incidence_angle - the constant incidence angle to use when
#                            angle_profile_option is set to
#                            constant_incidence_angle
#-----------------------------------------------------------------------------

constant_incidence_angle  35  deg

#-----------------------------------------------------------------------------
# When pitch bias option is chosen, the following parameters will be used
# to compute spacecraft attitude 
# inbound_pitch_rate - Average inbound pitch bias rate: deg/min
# outbound_pitch_rate - Average outbound pitch bias rate: deg/min
# pitch_bias_outbound_end_time - End time of pitch bias. After this time, the 
# 				pointing moves back to isodoppler
# pitch_bias_outbound_start_time - Start of pitch bias time for outbound track,
# 				 close to the  closest approach time than
#                                   pitch_bias_outbound_end_time
# pitch_bias_inbound_start_time - Start of pitch bias time for inbound track. 
# 				Close to the closest approach time than
# 				pitch_bias_outbound_end_time
# pitch_bias_inbound_end_time - End of pitch bias time for inbound track.  
# 				Before this time, the pointing is isodoppler
#-----------------------------------------------------------------------------

inbound_pitch_rate 0.6 deg/min
outbound_pitch_rate -0.6 deg/min
pitch_bias_outbound_end_time 30  min
pitch_bias_outbound_start_time 10 min
pitch_bias_inbound_start_time -10 min
pitch_bias_inbound_end_time -30 min

#-----------------------------------------------------------------------------
# When angle profile option is polynomial_fit,
# this incidence angle profile will be used
# polynomial_power - the order of polynomial used to fit the incidence angle
#                    profile points
# number_of_altitude_incidenceAngle_variations - number of points to fit to a
#                                                polynomial profile
# altitude* - altitude point to fit to a polynomial profile
# incidenceAngle* - incidence angle point to fit to a polynomial profile
#-----------------------------------------------------------------------------

altitude1 950.001 km
altitude11 2398.3 km
altitude21 5245.61 km
incidenceAngle1 35.1583 deg
incidenceAngle11 16.7275 deg
incidenceAngle21 12.4807 deg
altitude10 2158.04 km
incidenceAngle10 17.8359 deg
altitude12 2650.72 km
incidenceAngle12 16.1645 deg
altitude13 2913.55 km
incidenceAngle13 16.0165 deg
altitude14 3185.33 km
incidenceAngle14 16.0312 deg
altitude15 3464.79 km
incidenceAngle15 15.8233 deg
altitude16 3750.88 km
incidenceAngle16 14.8667 deg
altitude17 4036.83 km
incidenceAngle17 14.5654 deg
altitude18 4333.05 km
incidenceAngle18 13.548 deg
altitude19 4633.61 km
incidenceAngle19 13.5835 deg
altitude2 967.326 km
incidenceAngle2 34.7643 deg
altitude20 4937.95 km
incidenceAngle20 13.5603 deg
altitude3 1019.17 km
incidenceAngle3 33.6087 deg
altitude4 1104.03 km
incidenceAngle4 31.7946 deg
altitude5 1219.65 km
incidenceAngle5 29.4827 deg
altitude6 1363.24 km
incidenceAngle6 26.8769 deg
altitude7 1531.81 km
incidenceAngle7 24.2019 deg
altitude8 1722.33 km
incidenceAngle8 21.6812 deg
altitude9 1931.94 km
incidenceAngle9 19.511 deg
polynomial_power 8 
number_of_altitude_incidenceAngle_variations 21 

#-----------------------------------------------------------------------------
# When incidence angle Incidence angle sech profile parameters
# when angle_profile_option is sech_function
# angle = angle1 + 2*(angle2-angle1)/{exp( (x-x0)/a) + exp(-(x-x0)/a)}
#  angle1: residual incidence angle at high altitude
#  angle2: desired incidence angel at closest approach
#  a: this parameter will be calculated inside dlap_generate programs
#     and is used to obtain a desired incidence angle
#     at a mid altitude between closest approach (about 950 km) and
#     high altitude (> 4000 km)
#  this function will try to fit incidence angle at CA, residual incidence angle
#  at high altitude,and one mid point value between CA and high altitude
# incidence_angle_at_lowest_altitude - for sech_function model
# mid_altitude - for sech_function model
# incidence_angle_at_mid_altitude - for sech_function_model
# residual_incidence_angle_at_high_altitude - for sech_function model 
#-----------------------------------------------------------------------------

incidence_angle_at_lowest_altitude 35 deg
mid_altitude 2000 km
incidence_angle_at_mid_altitude 20 deg
residual_incidence_angle_at_high_altitude  0 deg

#-----------------------------------------------------------------------------
#  Parameters needed to image a special targeting area specified by (lat, lon)
# target_lat_lon_option - On or Off
# target_isodoppler_pointing - On or Off
# time_at_closest_range_to_target - Time w.r.t. epoch when sc makes a closest approach to the target (lat lon)
# angle_at_closest_range_to_target - Incidence angle at time_at_closed_range_to_target for Isodoppler 
# start_target_lat_lon_tracking - Start time for tracking target_lat_lon before sc approaches targeted positin
# end_target_lat_lon_tracking - End time for tracking target_lat_lon after sc passes targeted position
# target_latitude - Used when tracking_option is set to target_isodopper_lat_lon
# target_longitude - Used when tracking_option is se to target_isodoppler_lat_lon
# off_centered_beam_time_lag - Time lag between beam3 and off-centered beam
#-----------------------------------------------------------------------------

target_lat_lon_option off
target_isodoppler_pointing off
time_at_closest_range_to_target -930.85 s
angle_at_closest_range_to_target 18.0674 deg
start_target_lat_lon_tracking -8 min
end_target_lat_lon_tracking  8  min
target_latitude -10.34 deg
target_longitude 167.66 deg
off_centered_beam_time_lag 2 min 

#-----------------------------------------------------------------------------
# Parameters needed by ieb_param_generate
# Time parameter will use start_time_ieb and end_time_ieb defined in
#  Time Specification 
# Some fixed parameters: long term duty cycle < 0.07
# ieb_file - Specifies ieb file containing time tagged slow/fast fields
# start_time_ieb - If present, used to create ieb file
# end_time_ieb - If present, used to create ieb file
# time_step_ieb - If present, used to create ieb file
# min_bpd
# prf_profile_option - Specifies the form of the prf profile to use
# Valid values for: prf_profile_option
#   constant_prf - Use same prf through IEB interval
#   polynomial_fit - Use a polynomial profile fitted in the least squares
# 	         senses to points listed in this config file
#   lookup_table -  Not implemented yet
#-----------------------------------------------------------------------------

ieb_file di_050_1_psiv_rmss_070810.ieb 
start_time_ieb 0 min
end_time_ieb 360 min
time_step_ieb  1 s
prf_profile_option polynomial_fit

#-----------------------------------------------------------------------------
# When prf_profile_option is constant_prf, this value will be used
# constant_prf_value - the constant prf value to use when prf profile
#    	             option is set  to constant_prf
#-----------------------------------------------------------------------------

constant_prf_value  5000 Hz

#-----------------------------------------------------------------------------
# PRF profile to be used when prf_profile_option is polynomial_fit
# time_prf_polynomial_power - the order of polynomial used to fit the the 
# 		            prf profile points
# number_of_time_prf_variations - number of points to fit to a polynomial
# 				profile
# time_prf* - time for prf 
# prf*      - prf point to fit to a polynomial profile
#-----------------------------------------------------------------------------


% This prf profile is modified to be 0.9*low altitude profile
time_prf1 -0 min 
time_prf11 -10 min 
time_prf21 -20 min
prf1 4930.43 Hz
prf11 3854.64 Hz
prf21 2330.77 Hz
time_prf10 -9 min 
prf10 4018.74 Hz
time_prf12 -11 min 
prf12 3674.11 Hz
time_prf13 -12 min 
prf13 3452.78 Hz
time_prf14 -13 min 
prf14 3182.14 Hz
time_prf15 -14 min
prf15 2965.91 Hz
time_prf16 -15 min 
prf16 2843.33 Hz
time_prf17 -16 min
prf17 2620.76 Hz
time_prf18 -17 min
prf18 2576.54 Hz
time_prf19 -18 min
prf19 2446.35 Hz
time_prf2 -1 min 
prf2 4873.17 Hz
time_prf20 -19 min
prf20 2346.18 Hz
time_prf3 -2 min 
prf3 4761.56 Hz
time_prf4 -3 min 
prf4 4667.91 Hz
time_prf5 -4 min 
prf5 4621.73 Hz
time_prf6 -5 min
prf6 4542.98 Hz
time_prf7 -6 min 
prf7 4382.27 Hz
time_prf8 -7 min 
prf8 4261.12 Hz
time_prf9 -8 min 
prf9 4266 Hz
time_prf_polynomial_power 4
number_of_time_prf_variations 21


#-----------------------------------------------------------------------------
# dutycyle and altitude values
# dutycycle_profile_option - Specifies the form of the dutycycle profile 
#   to be used
# Valid values for: dutycycle_profile_option
# constant_dutycycle - Use constant dutycycle value in radar parameter block
# polynomial_fit - Use a polymonial profile in the least squares sense
# 	         to points listed in this config file
#                  It is very unlikely that we are going to use this option
#-----------------------------------------------------------------------------

dutycycle_profile_option constant_dutycycle 

#-----------------------------------------------------------------------------
# Altitude-dependent dutycycle setup 
#   when dutycycle profile option is polynomial_fit
# alt_dutycycle_polynomial_power - the order of polynomial used to fit the 
# 	                      dutycycle profile points
# number_of_altitude_dutycycle_variations - number of points to fit to
#  			                  to a polynomial profile
# alt_dutycycle1 - altitude point to fit a polynomial profile
# dutycycle1      - dutycycle point to fit a polynomial profile
# alt_dutycycle2 - altitude point to fit a polynomial profile
# dutycycle2      - dutycycle point to fit a polynomial profile
# alt_dutycycle3 - altitude point to fit a polynomial profile
# dutycycle3      - dutycycle point to fit a polynomial profile
# alt_dutycycle4 - altitude point to fit a polynomial profile
# dutycycle4      - dutycycle point to fit a polynomial profile
# alt_dutycycle5 - altitude point to fit a polynomial profile
# dutycycle5      - dutycycle point to fit a polynomial profile
#-----------------------------------------------------------------------------

alt_dutycycle_polynomial_power 2 
number_of_altitude_dutycycle_variations 3 
alt_dutycycle1 1000 km
dutycycle1 0.6
alt_dutycycle2 2000 km
dutycycle2 0.65
alt_dutycycle3 4000 km
dutycycle3 0.70

#-----------------------------------------------------------------------------
# Parameters needed to set attenuator for scatterometer(ALTL) mode
# cal_gaindB_altl - gain setting when calibration was performed
# cal_radar_buffer_std_deviation_altl - standard deviation of radar buffer output (8-8 bits)
# squared_deviation_of_system_noise_input_at_ALTL - measured squared deviation of 8-8 straight radar buffer data with the system noise and ALTL bandwidth
# squared_deviation_of_system_noise_input_at_ALTH - measured squared deviation of 8-8 straight radar buffer data with the system noise and ALTH bandwidth
# squared_deviation_of_system_noise_input_at_SARL - measured squared deviation of 8-8 straight radar buffer data with the system noise and SARL bandwidth
# squared_deviation_of_system_noise_input_at_SARH - measured squared deviation of 8-8 straight radar buffer data with the system noise and SARH bandwidth
#-----------------------------------------------------------------------------

cal_gaindB_altl  8 
cal_radar_buffer_std_deviation_altl  20.3
squared_deviation_of_system_noise_input_at_ALTL 1.7e18 s/J 
squared_deviation_of_system_noise_input_at_ALTH 1.7e18 s/J 
squared_deviation_of_system_noise_input_at_SARL 1.7e18 s/J 
squared_deviation_of_system_noise_input_at_SARH 1.7e18 s/J 

#-----------------------------------------------------------------------------
# Antenna pattern configuration
# beam_pattern_source - specifies how the beam pattern will be determined
# Valid values for: beam_pattern_source
#   file - Read beam patterns from files specifed by subsequent keywords
#   sinc_model - Compute beam patterns from a sinc model using parameters
#                specified in subsequent keywords.
# beam_azi_1 - Beam 1 azimuth beamwidth
# beam_azi_2 - Beam 2 azimuth beamwidth
# beam_azi_3 - Beam 3 azimuth beamwidth
# beam_azi_4 - Beam 4 azimuth beamwidth
# beam_azi_5 - Beam 5 azimuth beamwidth
# beam_elev_1 - Beam 1 elevation beamwidth
# beam_elev_2 - Beam 2 elevation beamwidth
# beam_elev_3 - Beam 3 elevation beamwidth
# beam_elev_4 - Beam 4 elevation beamwidth
# beam_elev_5 - Beam 5 elevation beamwidth
# beam_maxdB_gain1 - Beam 1 maximum gain (dB)
# beam_maxdB_gain2 - Beam 2 maximum gain (dB)
# beam_maxdB_gain3 - Beam 3 maximum gain (dB)
# beam_maxdB_gain4 - Beam 4 maximum gain (dB)
# beam_maxdB_gain5 - Beam 5 maximum gain (dB)
# beam_mindB_gain - Beam gain value reported for out of range angles
# beam_pattern_directory - full path to the directory containing beam patterns
# beam_1_pattern_file - name of file containing pattern data for beam 1
# beam_2_pattern_file - name of file containing pattern data for beam 2
# beam_3_pattern_file - name of file containing pattern data for beam 3
# beam_4_pattern_file - name of file containing pattern data for beam 4
# beam_5_pattern_file - name of file containing pattern data for beam 5
#-----------------------------------------------------------------------------

beam_pattern_source file 
beam_azi_1  0.35 deg
beam_azi_2  0.35 deg
beam_azi_3  0.35 deg
beam_azi_4  0.35 deg
beam_azi_5  0.35 deg
beam_elev_1 1.35 deg
beam_elev_2 1.35 deg
beam_elev_3 0.35 deg
beam_elev_4 1.35 deg
beam_elev_5 1.35 deg
beam_maxdB_gain1 44.2
beam_maxdB_gain2 44.2
beam_maxdB_gain3 50.7
beam_maxdB_gain4 44.2
beam_maxdB_gain5 44.2
beam_mindB_gain  20.0  
beam_1_pattern_file /home/ras/dat/beam_patterns/beam1.042402.dat
beam_2_pattern_file /home/ras/dat/beam_patterns/beam2.042402.dat
beam_3_pattern_file /home/ras/dat/beam_patterns/beam3.042402.dat
beam_4_pattern_file /home/ras/dat/beam_patterns/beam4.042402.dat
beam_5_pattern_file /home/ras/dat/beam_patterns/beam5.042402.dat

#-----------------------------------------------------------------------------
# Back scattering model specification
# Muhleman_backscatt_model_k1 - Muhleman model back scattering coefficient
# Muhleman_backscatt_model_k2 - Muhleman model back scattering coefficient
#-----------------------------------------------------------------------------

Muhleman_backscatt_model_k1 0.0188
Muhleman_backscatt_model_k2 0.111

#-----------------------------------------------------------------------------
# Parameters to be used by amb_geom_cal
# time_step_sar - If present, used to run SAR simulation
# start_time_sar - If present, used to run SAR simulation
# end_time_sar - If present, used to run SAR simulation
#-----------------------------------------------------------------------------

time_step_sar 1 min 
start_time_sar  -14 min 
end_time_sar 14 min 

#-----------------------------------------------------------------------------
# Parameters to set up 4 ambiguity patches near the imaged area
# number_of_dop_bins - Used by performance_cal , set number of dop bins inside
# 	             the process window
# number_of_range_bins - Used by performance_cal, set number of range bins
# 		     inside the process window
# number_of_dop_patches - Used by performance_cal, set number of dop patches
# 	               separated by prf from the process window
# number_of_range_patches - Used by performance_cal, set number of range patches
# 			separated by c * pri/2 from the process window
#-----------------------------------------------------------------------------

number_of_dop_bins  20 
number_of_range_bins 20  

#-----------------------------------------------------------------------------
# Parameters to set up a global range-doppler grid 
# To calculate radar geometry factors based on range and doppler grids,
# we  need to  set ranges of range and doppler
#  delta_doppler = +-2 * max_prf
#  delta_range = +- 2* (c * max_pri(=1/min_prf))/2
#  then, frequency and range resolutions are determined by grid size N
#  frequency resolution of grid cells: 2* 2 * max_prf/grid
#  range     resolution of grid cells:  2* 2 * (c * max_pri(1/min_prf)/2)/grid
# 	                  max_prf and min_prf
# Number_of_range_doppler_grid - Used by amb_geom_cal to set up global grid
# 		          whose range/doppler extents are determined by
# ambiguity_search_max_prf -Used by amb_geom_cal to set extent of doppler axis
# 	                 + - max_prf w.r.t. boresight doppler shift
# ambiguity_search_min_prf - Used by amb_geom_cal to set extent of range axis
# 	                + - c *max_prf(/min_prf)/2 w.r.t. boresight range
# calculate_mirror_ambiguity - Used by amb_geom_cal to calculate radar echo
# 	                   from mirror location that has the same range/doppler
# 			   as the target location
# Valid values for: calculate_mirror_ambiguity
# Yes - calculate radar return echo from mirror location
# No -  do not consider radar return echo from mirror location
#-----------------------------------------------------------------------------

Number_of_range_doppler_grid 200
ambiguity_search_max_prf  6.0 KHz
ambiguity_search_min_prf  2.0 KHz
calculate_mirror_ambiguity No 

#-----------------------------------------------------------------------------
# Parameters to be used by amb_param_scan
# pulse_bandwidth_ratio
# usable_area_search_max_prf - Set maximum prf 
# usable_area_search_min_prf - Set minimum prf 
# usable_area_number_of_prf_steps - Used by amb_param_scan, search usable area
# 	 			using prf values from min_prf to max_prf 
# 				at an interval of 
# 			       (max_prf - min_prf)/number_of_prf_steps 
# usable_area_search_max_pulsegate - Set maximum pulsegate 
# usable_area_search_min_pulsegate - Set minimum pulsegate 
# usable_area_number_of_pulsegate_steps - Used by amb_param_scan, search usable 
# 				area using pulsegate values
# 				from min_pulsegate to max_pulsegate 
# 				at an interval of 
#                      (max_pulsegate - min_pulsegate)/number_of_pulsegate_steps 
#-----------------------------------------------------------------------------

pulse_bandwidth_ratio 0.8 
usable_area_search_max_prf 6.0 KHz
usable_area_search_min_prf 2.0 KHz
usable_area_number_of_prf_steps 41
usable_area_search_max_pulsegate  50 km
usable_area_search_min_pulsegate  20 km
usable_area_number_of_pulsegate_steps 6 

#-----------------------------------------------------------------------------
#  Requirements for a pixel to be "usable" 
# signal_to_amb_ratiodB - Usable area should have a signal to amb ratio > + 14 dB
# noise_equivalent_sigma0dB - Usable area should have a sigma0 < - 10 dB
# min_oneway_gaindB_wrt_peak - Usable area should have a gain > -5 dB
#-----------------------------------------------------------------------------

signal_to_amb_ratiodB 14
noise_equivalent_sigma0dB -10
min_oneway_gaindB_wrt_peak -5

#-----------------------------------------------------------------------------
# Radar Parameters
# Pt - Transmitted power (46.2 W)
# Tsys - System noise temperature (1000 K)
# dutycycle_per_burst - long term dutycycle (< 7 %)
# constant_dutycycle_value - constant dutycycle value to be used 
# carrier_frequency - Ku band frequency (13.78 GHz)
# stalo_frequency - stable local oscillator frequency (10 MHz)
#-----------------------------------------------------------------------------

Pt    46.2 W
Tsys  800 K
dutycycle_per_burst 0.069
constant_dutycycle_value 0.7
carrier_frequency 13.78 GHz

#-----------------------------------------------------------------------------
# DOWNLINK Processing File Setup
# ccsds_sci_file - Downlinked science only CCSDS file
# egse_file_from_ccsds - Output of decode_ccsds program run 
# egse_filename - Downlinked binary file from spacecrfat
# L1B_A_filename - Active mode file name(Scatterometry,Altimetry or SAR)
# L1B_P_filename - Passive mode file name(Radiometer)
# ras_filename - compressed BAQ threshold and RAW data
# burst_ordered_ieblist - bursted ordered ieblist filename
# L1I_filename - SAR Processor burst-by-burst output file
# t_feed_filename - Filename for external temperature telemetry 
# 		  E-2507.gph  or NONE if not available
# t_hga_filename  - Filename for external temperature telemetry 
# 		  E-2505.gph  or NONE if not available
# t_scwg_filename - Filename for external temperature telemetry 
# 		  E-2503.gph  or NONE if not available
# Adjust_TFI_in_units_of_sclk - change TFI (active mode nominal value 1)
# zero_range_time_delay_scatt - positive delay in generating pulse after
#                         receiving command  in scatt mode
# zero_range_time_delay_alth - positive delay in generating pulse after
#                         receiving command  in alth mode
# zero_range_time_delay_sarh - positive delay in generating pulse after
#                         receiving command  in sarh mode
# zero_range_time_delay_sarl - positive delay in generating pulse after
#                         receiving command  in sarl mode
# Show_sclk_adjust_message - when want to see all sclk correction, set 1
#-----------------------------------------------------------------------------

ccsds_sci_file /home/ras/dat/tour/s34/di_050_1/raw/di_050_1_psiv_rmss_070810.sfdu
egse_filename /home/ras/dat/tour/s34/di_050_1/raw/di_050_1_psiv_rmss_070810_001.01Oct07_2059
L1B_A_filename di_050_1_run1.lbdr
L1B_P_filename di_050_1_run1.sbdr
ras_filename di_050_1.ras
burst_ordered_ieblist  di_050_1_burst.ieb

L1I_filename pts_t16.l1i
t_feed_filename /home/ras/dat/tour/s34/di_050_1/raw/anc1/E-2507.gph  
t_hga_filename  /home/ras/dat/tour/s34/di_050_1/raw/anc1/E-2505.gph  
t_scwg_filename /home/ras/dat/tour/s34/di_050_1/raw/anc1/E-2503.gph 
Adjust_TFI_in_units_of_sclk 1
zero_range_time_delay_scatt 2e-6 s
zero_range_time_delay_alth 6.35e-6 s
zero_range_time_delay_sarh 10e-6 s
zero_range_time_delay_sarl 10.5e-6 s

#-----------------------------------------------------------------------------
# Preprocessor Archiving (PDS) Parameters
# BODP_PRODUCT_VERSION_ID  - Version number of LBDR/SBDR/ABDR product for 
#                            PDS archiving
# BODP_SOFTWARE_VERSION_ID - Version number of LBDR/SBDR/ABDR product for 
#                            PDS archiving
# FLYBY_ID        - Flyby name used in DESCRIPTION field in PDS label
# MISSION_PHASE_NAME - Value for same keyword in PDS label
# PRODUCER_FULL_NAME - Value for same keyword in PDS label
# CHECK_PDS_STRING_LENGTHS - 1: Check that string values that are being 
#                               written to PDS labels conform to maximum 
#                               lengths specified by PDS standard.
#                            0: Disable checking.
#                            If keyword not present, processor will behave
#                            as if it had been set to "1."
#-----------------------------------------------------------------------------

BODP_PRODUCT_VERSION_ID 01
BODP_SOFTWARE_VERSION_ID V1.0
FLYBY_ID Dione_S34
PRODUCER_FULL_NAME  Inst_Lead_Charles_Elachi_contact_Bryan_Stiles

#-----------------------------------------------------------------------------
# GENERATE_GEOMETRY_FILE keywords
# intermediate_geometry_file - File containing geometry arrays used to speedup
#                              geometry calculations currently used by sar_proc,
#                              point_target_sim, and l0_l1b. Created by
#                              generate_geometry_file
# geometry_time_step - Time step used to create geometry file. 
#-----------------------------------------------------------------------------

intermediate_geometry_file tmp.gf

#-----------------------------------------------------------------------------
# DEBUGINFO debugging and warning keywords
# debug_filename - Filename to write debugging info 
# debug_routine_name_1 - first routine to debug ...
# debug_routine_name_2 - 
# debug_routine_name_3 - 
# debug_level_1 - debugging level for first routine
# debug_level_2 -
# debug_level_3 -
# ENABLE_ALL_WARNINGS - turns on/off (1/0) verbose warning messages
#-----------------------------------------------------------------------------

debug_filename main.dbg
debug_routine_name_1 main
debug_level_1 1 
ENABLE_ALL_WARNINGS 0

#-----------------------------------------------------------------------------
# Radiometer Processor Parameters
# Number_of_targets - Number of targets for cruise or tour sequence
# target_1 - Extra target in addition to main target set by target_keyword
# cold_sky_Temperature - cold sky temperature
# cold_sky_average_time - cold sky calibration time duration
# target_temperature - target temperature 
# norm_rl_count : expected RL count when Trlotmp=300 K, 262000 
# radiometer_cal_gain : radiometer calibrated gain using Saturn, 206.2 1/(K s)
# receiver_temperature : 550 K
# min_beam_distance - Distance between limb direction and boresight in units of beam oneway 3dB
# cold_sky_cal_polynomial_fit_order : nth polynomial fitting
# maximum_separation_bet_cold_sky_meas : time between cold sky calibration
# radiometer_delta_tau - Parameter for performed radiometer normalization 0 s
# radiometer_offset - Parameter for performed radiometer normalization 3550
# noise_diode_delta_tau - noise diode integration time offset
# resistive_load_delta_tau - resistive load integration time offset
# ND_Rip - Noise Diode Radiometric integration time (used in RMSS)
# Max_ND_Rip - Maximum Noise Diode Radiometric integration time when auto rad is on
# RL_Rip - Resistive Load Radiometric integration time (used in RMSS)
# Max_RL_Rip - Maximum Resistive Load Radiometric integration time when auto rad is on
#-----------------------------------------------------------------------------

radiometer_delta_tau -1.175 ms
radiometer_offset 3550
noise_diode_delta_tau -0.12 ms
resistive_load_delta_tau -0.0405 ms
ND_Rip 5 ms
Max_ND_Rip 8 ms
RL_Rip 25 ms
Max_RL_Rip 40 ms

#-----------------------------------------------------------------------------
# Orphaned keywords:
# Need to add these to master config file!
#-----------------------------------------------------------------------------

Alth_Force_Div_Time_Step disable
Sarh_Force_Div_Time_Step disable
Sarl_Force_Div_Time_Step disable
Scat_Force_Div_Time_Step disable
bld230beampatterndir /home/jpl/richw/dat/cassini/beam_patterns/
bld300beampatterndir /home/ras/dat/beam_patterns/
erisSPICEdir /home/ras/dat/naif/
sciop3SPICEdir /cas/ancillary/ops/NAIF/
sciop5SPICEdir /cas/ancillary/ops/NAIF/
zero_range_time_delay 9.8e-6 s


# Keywords accessed by: 
#   CDS_Cmd_Delay
#   DataRateTime_1
#   DataRateTime_2
#   DataRateTime_3
#   DataRateTime_4
#   DataRate_1
#   DataRate_2
#   DataRate_3
#   DataRate_4
#   IDAPT_delta
#   IEB_Trigger
#   IEB_delta_trigger
#   Max_ND_Rip
#   Max_RL_Rip
#   ND_Rip
#   PowerAllocation_1
#   PowerAllocation_2
#   PowerAllocation_3
#   PowerTransitionTime_1
#   PowerTransitionTime_2
#   PowerTransitionTime_3
#   RL_Rip
#   altitude1
#   altitude10
#   altitude11
#   altitude12
#   altitude13
#   altitude14
#   altitude15
#   altitude16
#   altitude17
#   altitude18
#   altitude19
#   altitude2
#   altitude20
#   altitude21
#   altitude3
#   altitude4
#   altitude5
#   altitude6
#   altitude7
#   altitude8
#   altitude9
#   angle_profile_option
#   beam_1_pattern_file
#   beam_2_pattern_file
#   beam_3_pattern_file
#   beam_4_pattern_file
#   beam_5_pattern_file
#   beam_maxdB_gain3
#   beam_mindB_gain
#   beam_pattern_source
#   ckernel_1
#   ckernel_2
#   dutycycle_limit_d_1
#   dutycycle_limit_d_2
#   dutycycle_limit_number_points
#   dutycycle_limit_prf_1
#   dutycycle_limit_prf_2
#   end_time
#   epoch_accuracy
#   epoch_selection
#   epoch_time
#   frame_kernel
#   ieb_file
#   incidenceAngle1
#   incidenceAngle10
#   incidenceAngle11
#   incidenceAngle12
#   incidenceAngle13
#   incidenceAngle14
#   incidenceAngle15
#   incidenceAngle16
#   incidenceAngle17
#   incidenceAngle18
#   incidenceAngle19
#   incidenceAngle2
#   incidenceAngle20
#   incidenceAngle21
#   incidenceAngle3
#   incidenceAngle4
#   incidenceAngle5
#   incidenceAngle6
#   incidenceAngle7
#   incidenceAngle8
#   incidenceAngle9
#   instrument_kernel
#   ivd_time_pad
#   number_of_altitude_incidenceAngle_variations
#   number_of_time_prf_variations
#   planet_ephemeris_kernel
#   planetary_constants_kernel
#   polynomial_power
#   prf1
#   prf10
#   prf11
#   prf12
#   prf13
#   prf14
#   prf15
#   prf16
#   prf17
#   prf18
#   prf19
#   prf2
#   prf20
#   prf21
#   prf3
#   prf4
#   prf5
#   prf6
#   prf7
#   prf8
#   prf9
#   prf_profile_option
#   sc_orientation
#   scat_prf_1
#   scat_prf_2
#   scat_prf_3
#   scat_prf_4
#   scat_prf_5
#   scat_prf_6
#   scat_prf_7
#   scat_prf_number_points
#   scat_thetai_1
#   scat_thetai_2
#   scat_thetai_3
#   scat_thetai_4
#   scat_thetai_5
#   scat_thetai_6
#   scat_thetai_7
#   sclk_kernel
#   set_azimuth_rotation
#   set_sc_z_rotation
#   solarsystem_ephemeris_kernel
#   spacecraft
#   spice_directory
#   start_time
#   target
#   target_lat_lon_option
#   time_kernel
#   time_prf1
#   time_prf10
#   time_prf11
#   time_prf12
#   time_prf13
#   time_prf14
#   time_prf15
#   time_prf16
#   time_prf17
#   time_prf18
#   time_prf19
#   time_prf2
#   time_prf20
#   time_prf21
#   time_prf3
#   time_prf4
#   time_prf5
#   time_prf6
#   time_prf7
#   time_prf8
#   time_prf9
#   time_prf_polynomial_power
#   time_step
#   tour_ephemeris
#   tracking_option
