Esempio n. 1
0
d, a = pipe.read("1D_freq_real.dat")
d, a = p.fsh(d, a, dir="rs", pts=6.7)
pipe.write("fsh3.glue", d, a, overwrite=True)

# this fails because NMRPipe performs a Hilbert transform? If this is true it
# should be moved to the known_fail.py script.
d, a = pipe.read("1D_freq_complex.dat")
d, a = p.fsh(d, a, dir="ls", pts=9.5)
pipe.write("fsh4.glue", d, a, overwrite=True)

# RFT
# these are off by small amounts, mostly min/max values
d, a = pipe.read("1D_freq_complex.dat")
d, a = p.rft(d, a)
pipe.write("rft9.glue", d, a, overwrite=True)

d, a = pipe.read("1D_freq_real.dat")
d, a = p.rft(d, a)
pipe.write("rft10.glue", d, a, overwrite=True)

d, a = pipe.read("freq_real.ft2")
d, a = p.rft(d, a)
pipe.write("rft11.glue", d, a, overwrite=True)

# HT
# ps90-180 mode doesn't match
d, a = pipe.read("1D_freq_real.dat")
d, a = p.ht(d, a, mode="ps90-180")
pipe.write("ht4.glue", d, a, overwrite=True)
Esempio n. 2
0
d, a = pipe.read("1D_freq_complex.dat")
d, a = p.rft(d, a)
pipe.write("rft9.glue", d, a, overwrite=True)

d, a = pipe.read("1D_freq_real.dat")
d, a = p.rft(d, a)
pipe.write("rft10.glue", d, a, overwrite=True)

d, a = pipe.read("freq_real.ft2")
d, a = p.rft(d, a)
pipe.write("rft11.glue", d, a, overwrite=True)

# HT
# ps90-180 mode doesn't match
d, a = pipe.read("1D_freq_real.dat")
d, a = p.ht(d, a, mode="ps90-180")
pipe.write("ht4.glue", d, a, overwrite=True)

# Integration tests
# process 2D mixed mode data
d, a = pipe.read("time_real.fid")
d, a = p.gmb(d, a, gb=0.1, lb=-8, c=0.5)
d, a = p.zf(d, a, auto=True)
d, a = p.ft(d, a, alt=True)  # BUG glue seems to double the data...?
d, a = p.ps(d, a, p0=0, p1=0)
d, a = p.tp(d, a, hyper=True)
d, a = p.sp(d, a, off=0.5, pow=2, c=0.5)
d, a = p.zf(d, a, auto=True)
d, a = p.ft(d, a, auto=True)
d, a = p.ps(d, a, p0=0, p1=0)
d, a = p.di(d, a)
Esempio n. 3
0
#! /usr/bin/env python
""" Create files for ht unit test """

import nmrglue.fileio.pipe as pipe
import nmrglue.process.pipe_proc as p

d, a = pipe.read("1D_time_real.fid")
d, a = p.ht(d, a)
pipe.write("ht1.glue", d, a, overwrite=True)

d, a = pipe.read("1D_time_real.fid")
d, a = p.ht(d, a, td=True)
pipe.write("ht2.glue", d, a, overwrite=True)

d, a = pipe.read("1D_time_real.fid")
d, a = p.ht(d, a, mode="ps0-0")
pipe.write("ht3.glue", d, a, overwrite=True)

d, a = pipe.read("1D_time_real.fid")
d, a = p.ht(d, a, zf=True)
pipe.write("ht5.glue", d, a, overwrite=True)

d, a = pipe.read("1D_time_real.fid")
d, a = p.ht(d, a, auto=True)
pipe.write("ht6.glue", d, a, overwrite=True)

d, a = pipe.read("freq_real.ft2")
d, a = p.ht(d, a)
pipe.write("ht7.glue", d, a, overwrite=True)

d, a = pipe.read("freq_real.ft2")
Esempio n. 4
0
#! /usr/bin/env python

import nmrglue.fileio.pipe as pipe
import nmrglue.process.pipe_proc as p

d,a = pipe.read("1D_time_real.fid")
d,a = p.ht(d,a)
pipe.write("ht1.glue",d,a,overwrite=True)

d,a = pipe.read("1D_time_real.fid")
d,a = p.ht(d,a,td=True)
pipe.write("ht2.glue",d,a,overwrite=True)

d,a = pipe.read("1D_time_real.fid")
d,a = p.ht(d,a,mode="ps0-0")
pipe.write("ht3.glue",d,a,overwrite=True)

d,a = pipe.read("1D_time_real.fid")
d,a = p.ht(d,a,zf=True)
pipe.write("ht5.glue",d,a,overwrite=True)

d,a = pipe.read("1D_time_real.fid")
d,a = p.ht(d,a,auto=True)
pipe.write("ht6.glue",d,a,overwrite=True)

d,a = pipe.read("freq_real.ft2")
d,a = p.ht(d,a)
pipe.write("ht7.glue",d,a,overwrite=True)

d,a = pipe.read("freq_real.ft2")
d,a = p.ht(d,a,zf=True,td=True)