#!/bin/sh
#
#       $HOME/.lcmodel/ge*/preprocessors/change-phase-priors (20 April 2003)
#
#      Changes the priors for phase corrections (DEGZER DEGPPM SDDEGZ SDDEGP) 
# in the file cpStart to the values of (DEGZER_NEW  DEGPPM_NEW  SDDEGZ_NEW 
# SDDEGP_NEW).
#
#      The standard bin2raw sets the expectation values DEGZER=DEGPPM=0 and
# the standard deviations to SDDEGZ=3 & SDDEGP=1.  Thus, they are strongly 
# constrained to be very small, which is correct for standard automated PROBE 
# sequences.
#
#      You should only use this Preprocessor if you have a non-standard
# sequence that produces data needing larger phase corrections.
#
#      You can set the new priors below.  To allow complete freedom
# (effectively no prior information), you can use the default LCModel values 
# of DEGZER_NEW=DEGPPM_NEW=0  SDDEGZ_NEW=999. and SDDEGP_NEW=20.
#      (However, as explained in the LCModel manual, you can usually 
# experimentally determine a smaller SDDEGP_NEW with an appropriate DEGPPM.)
#      There must be no white space on either side of the "=":
#
DEGZER_NEW=0.0
DEGPPM_NEW=0.0
SDDEGZ_NEW=999.0
SDDEGP_NEW=20.0
#
#     Normally you do not have to read anything further in this script.  If
# you want to modify or write your own preprocessor, then see the General
# Instructions in $HOME/.lcmodel/doc/preprocessors/README.txt
#
#=============================================================================
#=============================================================================
#
CP_START="$1"
echo "degzer= $DEGZER_NEW
degppm= $DEGPPM_NEW
sddegz= $SDDEGZ_NEW
sddegp= $SDDEGP_NEW"  >>  $CP_START
#
exit 0
