#!/bin/csh

bruk2pipe -in ./ser -bad 0.0 -noaswap -DMX -decim 24 -dspfvs 12  \
  -xN              1024  -yN               238  \
  -xT               512  -yT               119  \
  -xMODE            DQD  -yMODE  Echo-AntiEcho  \
  -xSW         6613.757  -ySW        12073.649  \
  -xOBS         600.133  -yOBS         150.909  \
  -xCAR           4.725  -yCAR          42.711  \
  -xLAB              1H  -yLAB             13C  \
  -ndim               2  -aq2D          States  \
  -out ./test.fid -verb -ov
.

nmrPipe -in test.fid \
| nmrPipe  -fn SP -off 0.35 -end 0.98 -pow 2 -c 0.5    \
| nmrPipe  -fn ZF -auto                               \
| nmrPipe  -fn FT -auto                               \
| nmrPipe  -fn PS -p0 209 -p1 0.00 -di -verb         \
| nmrPipe  -fn TP                                     \
| nmrPipe  -fn SP -off 0.35 -end 0.98 -pow 2 -c 0.5    \
| nmrPipe -fn LP -ps0-0                                           \
| nmrPipe  -fn ZF -auto                               \
| nmrPipe  -fn FT -auto                              \
| nmrPipe  -fn PS -p0 -90.00 -p1 0.00 -di -verb         \
| nmrPipe -fn TP                                               \
   -ov -out test.ft2

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