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


# base line correcting X
xyz2pipe -in ./lp1/HNCACB%03d.ft3  -x -verb \
| nmrPipe -fn POLY -auto -ord 1 \
| pipe2xyz -out ./pipe_rebasing/HNCACB%03d.ft4  -x     
# base line correcting Y
xyz2pipe -in ./pipe_rebasing/HNCACB%03d.ft4  -y -verb \
| nmrPipe -fn POLY -auto -ord 1 \
| pipe2xyz -out ./pipe_rebasing/HNCACB%03d.ft5  -z     
# base line correcting Z
xyz2pipe -in ./pipe_rebasing/HNCACB%03d.ft5  -z -verb \
| nmrPipe -fn POLY -auto -ord 1 \
| pipe2xyz -out ./pipe_rebasing/HNCACB%03d.ft6  -z     
#
xyz2pipe -in ./pipe_rebasing/HNCACB%03d.ft6  -y -verb  > ./HNCACB.rebase.pipe
