#!/bin/csh
#
# nmrPipe script for processing 3D HNCACB spectrum 
# acquired with the hncacbgp3d pulse sequence
#
# Phasing note: for initial phasing on a single FID, select
# the FOURTH plane (test004.fid) and first FID for max signal
#

xyz2pipe -in ./fid/test%03d.fid -x \
         | nmrPipe -fn POLY -time                       \
         | nmrPipe -fn SP -off 0.5 -end 1 -c 0.5          \
         | nmrPipe -fn ZF -size 1024                    \
         | nmrPipe -fn FT -verb                     \
         | nmrPipe -fn PS -p0 166.0 -p1 0                 \
         | nmrPipe -fn EXT -left -di -sw                \
         | nmrPipe -fn POLY -ord 2                       \
         | nmrPipe -fn ZTP                              \
         | nmrPipe -fn SP -off 0.5 -end 1.0 -c 0.5      \
         | nmrPipe -fn ZF -size 128                     \
         | nmrPipe -fn FT -verb -auto                 \
         | nmrPipe -fn REV -di -sw                \
         | nmrPipe -fn YTP                              \
         | nmrPipe -fn LP -ps0-0 -ord 10                    \
         | nmrPipe -fn SP -off 0.5 -pow 2 -end 1.0 -c 0.5      \
         | nmrPipe -fn ZF -size 128                     \
         | nmrPipe -fn FT -verb -auto                    \
         | nmrPipe -fn REV -di -sw                \
         | nmrPipe -fn ZTP                               \
| nmrPipe -out test.ft2 -ov  

pipe2xeasy -f 0.001 -out hncacb < test.ft2 

# The following line can be substituted for the pipe2xeasy line
# if nmrpipe format processed data are required (e.g. for fine adjustment 
# of phasing params)

#|pipe2xyz -verb -ov -out ./dat/test%03d.dat -x