Translate DORADE data to sweep files

#!/bin/csh
#
#script to create sweep files from an dorade format tape
#*********************************************
# these are the variables that need to be changed
# depending on the data
#
# the directory where the sweep files will go
setenv DORADE_DIR ../data
#
# the device name with the data 
setenv SOURCE_DEV /dev/rmt/1bn
#
# the time limits of the data
setenv TIME_LIMITS "09/15/99:15:00 < 09/15/99:15:05"
#
# the names of the correction files...see the web site
# to determine the appropriate cfac files
setenv CFAC_FILES "TF > 990915.1647.cfac.fore \
                   TA > 990915.1647.cfac.aft"
#*********************************************
setenv INPUT_FORMAT "DORADE_FORMAT"
#
setenv OUTPUT_FLAGS "SWEEP_FILES" 
#
setenv NCP_THRESHOLD_VAL "NCP 0.25"
#
setenv ALTITUDE_LIMITS "-5. < 22.5"
#
setenv COMPRESSION_SCHEME "HRD_COMPRESSION"
#
setenv FIRST_GOOD_GATE  2
#
setenv DERIVED_FIELDS "DEFAULT(VR > VRB1 VRB1 > VG  VG > VT) \
                       DUAL_PRT(VS > VQB1 VQB1 > VG  VG > VT)"
#
# year is incorrect on first flight of MAP (RF01)
setenv YEAR_OF_DATA 1999
#
setenv BATCH_MODE
#
# fix for record size bug
setenv OPTIONS "DESC_SEARCH"
#
/localbin/xltrs