#!/bin/csh

bruk2pipe -in ./ser -bad 0.0 -noaswap -DMX -decim 16 -dspfvs 12  \
  -xN              1024  -yN               160  \
  -xT               512  -yT                80  \
  -xMODE            DQD  -yMODE  Echo-AntiEcho  \
  -xSW         8389.262  -ySW         2736.727  \
  -xOBS         600.133  -yOBS          60.818  \
  -xCAR           4.754  -yCAR         115.566  \
  -xLAB              1H  -yLAB             15N  \
  -ndim               2  -aq2D          States-TPPI  \
  -out ./test.fid -verb -ov


nmrPipe -in test.fid \
| nmrPipe  -fn SP -off 0.5 -end 0.98 -pow 2 -c 1.0    \
| nmrPipe  -fn ZF -auto                               \
| nmrPipe  -fn FT -auto                               \
| nmrPipe  -fn PS -p0 -108 -p1 0.00 -di -verb         \
| nmrPipe  -fn TP                                     \
| nmrPipe -fn LP -fb                                           \
| nmrPipe  -fn SP -off 0.5 -end 0.98 -pow 2 -c 0.5    \
| nmrPipe  -fn ZF -auto                               \
| nmrPipe  -fn FT -auto                               \
| nmrPipe  -fn PS -p0 90 -p1 0.00 -di -verb         \
   -ov -out test.ft2

#convert to nmrview format
pipe2xyz -nv -out hsqc.nv < test.ft2