#!/bin/sh

#       $HOME/.lcmodel/varian/preprocessors/truncate (30 April 2010)

# NUNFIL is the number of complex pairs in the time-domain data that will be 
# used.

# Varian and Bruker users often acquire too many points, where the signal 
# has decayed into the noise far before the end.  This is signaled by the 
# diagnostic "warning STARTV 24" (please read its entry in Sec 12.2 of the
# LCModel manual).  You can truncate your time data by setting NUNFIL below.  
# (You do not have to do anything to your data files; you only need to set 
# NUNFIL below.)

# Edit the next line.  (Do not leave any spaces around the "="):

NUNFIL=1024

# Do not make any changes below.

# 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 "nunfil= $NUNFIL"  >>  $CP_START

exit 0
