#!/bin/csh

bruk2pipe -in ./ser -bad 0.0 -noaswap -DMX -decim 24 -dspfvs 12  \
  -xN              1024  -yN                64  -zN                26  \
  -xT               512  -yT                32  -zT                13  \
  -xMODE            DQD  -yMODE  Echo-AntiEcho  -zMODE    States-TPPI  \
  -xSW         7507.508  -ySW         1373.202  -zSW         7801.833  \
  -xOBS         600.133  -yOBS         150.909  -zOBS          60.818  \
  -xCAR           4.725  -yCAR          46.860  -zCAR         118.363  \
  -xLAB              HN  -yLAB             15N  -zLAB              1H  \
  -ndim               3  -aq2D          States                         \
  -out ./fid/test%03d.fid -verb -ov




#
# 3D States-Mode HN-Detected Processing.

xyz2pipe -in fid/test%03d.fid -x -verb \
| nmrPipe  -fn SOL                                  \
| nmrPipe  -fn SP -off 0.5 -end 0.98 -pow 2 -c 0.5  \
| nmrPipe  -fn ZF -auto                             \
| nmrPipe  -fn FT                                   \
| nmrPipe  -fn PS -p0 22  -p1 0.0 -di               \
#| nmrPipe  -fn EXT -left -sw                        \
| nmrPipe  -fn TP                                   \
| nmrPipe -fn LP -ps0-0                                         \
| nmrPipe  -fn SP -off 0.5 -end 0.98 -pow 2 -c 0.5  \
| nmrPipe  -fn ZF -auto                             \
| nmrPipe  -fn FT                                   \
| nmrPipe  -fn PS -p0 -90 -p1 0 -di              \
| pipe2xyz -out ft/test%03d.ft2 -y

xyz2pipe -in ft/test%03d.ft2 -z -verb               \
| nmrPipe -fn LP -ps0-0                                         \
| nmrPipe  -fn SP -off 0.5 -end 0.98 -pow 2 -c 0.5  \
| nmrPipe  -fn ZF -auto                             \
| nmrPipe  -fn FT  -alt                                 \
| nmrPipe  -fn PS -p0 0.0 -p1 0.0 -di               \
| pipe2xyz -out ft/test%03d.ft3 -z


xyz2pipe -in ft/test%03d.ft3 -x -verb \
| nmrPipe -fn POLY -auto                                       \
| pipe2xyz -out ft/test%03d.ft4 -x -ov


xyz2pipe -in ft/test%03d.ft4 -y -verb \
| pipe2xyz -out ft/test%03d.ft5 -z -ov