#!/bin/csh
#
# This noesyhsqcetgp3d processing script was created using AGNuS 2.1.
#
# 3D Processing Script.


xyz2pipe -in ./pipe_conversion/C13_noesy_HSQC%03d.fid  -x -verb \
| nmrPipe  -fn POLY -time  \
| nmrPipe  -fn SP -off 0.45 -end 0.98 -pow 2 -c 0.5  \
| nmrPipe  -fn ZF -auto   \
| nmrPipe  -fn FT   \
| nmrPipe  -fn PS -p0 57 -p1 20 -di    \
| nmrPipe  -fn TP  \
| nmrPipe  -fn SP -off 0.45 -end 0.98 -pow 2 -c 0.5  \
| nmrPipe  -fn ZF -auto   \
| nmrPipe  -fn FT -alt   \
| nmrPipe  -fn PS -p0 7 -p1 0 -di    \
| pipe2xyz -out ./pipe_processing/C13_noesy_HSQC%03d.ft2  -y -ov -verb      

xyz2pipe -in  ./pipe_processing/C13_noesy_HSQC%03d.ft2  -z  -verb    \
| nmrPipe  -fn SP -off 0.45 -end 0.98 -pow 2 -c 0.5  \
| nmrPipe  -fn ZF -auto   \
| nmrPipe  -fn FT -alt   \
| nmrPipe  -fn PS -p0 0 -p1 0 -di    \
| pipe2xyz -out ./pipe_processing/C13_noesy_HSQC%03d.ft3  -z  -ov -verb     

xyz2pipe -in ./pipe_processing/C13_noesy_HSQC%03d.ft3 -x -verb               \
| nmrPipe  -fn POLY -auto -x1 10.5ppm -xn 4.9ppm -ord 2 \
| nmrPipe  -fn POLY -auto -x1 4.60ppm -xn -0.0ppm -ord 2 \
| nmrPipe  -fn EXT -x1 10ppm -xn -0.0ppm -sw      \
| pipe2xyz -out pipe_base/simnoesy%03d.ft4 -x
xyz2pipe -in pipe_base/simnoesy%03d.ft4  -y -verb               \
| nmrPipe  -fn POLY -auto -ord 1  \
| pipe2xyz -out pipe_base/simnoesy%03d.ft5 -y
xyz2pipe -in pipe_base/simnoesy%03d.ft5  -z -verb          \
| nmrPipe  -fn POLY -auto -x1 10.5ppm -xn 4.74ppm -ord 1   \
| nmrPipe  -fn POLY -auto -x1 4.74ppm -xn -0.0ppm -ord 1   \
| nmrPipe  -fn EXT -x1 10.5ppm -xn -0.0ppm -sw      \
| pipe2xyz -out pipe_base/simnoesy%03d.ft6 -z

xyz2pipe -in pipe_base/simnoesy%03d.ft6 -x -verb > sim_noesy.pipe
showhdr -verb pipe_base/simnoesy%03d.ft6 > sim_noesy.header







