#!/bin/csh
#
# This ghn_ca_GTM processing script was created using AGNuS 2.1.
#
# 3D baseline correcting Script.


# base line correcting X
xyz2pipe -in ./pipe_processing/gHNCA%03d.ft3  -x -verb \
| nmrPipe -fn POLY -auto -x1 11ppm -xn 6ppm -ord 1 \
| pipe2xyz -out ./pipe_rebasing/gHNCA%03d.ft4  -x     
# base line correcting Y
xyz2pipe -in ./pipe_rebasing/gHNCA%03d.ft4  -y -verb \
| nmrPipe -fn POLY -auto -ord 3 \
| pipe2xyz -out ./pipe_rebasing/gHNCA%03d.ft5  -y     
# base line correcting Z
xyz2pipe -in ./pipe_rebasing/gHNCA%03d.ft5  -z -verb \
| nmrPipe -fn POLY -auto -ord 1 \
| pipe2xyz -out ./pipe_rebasing/gHNCA%03d.ft6  -z     
#
xyz2pipe -in ./pipe_rebasing/gHNCA%03d.ft6  -y -verb  > ./gHNCA.rebase.pipe
