def write_fid_readback(dic, data, shape, torder):
    tf = tempfile.mktemp(dir=".")
    ng.varian.write_fid(tf, dic, data, torder=torder)
    rdic, rdata = ng.varian.read_fid(tf, shape=shape, torder=torder)
    os.remove(tf)
    assert_array_equal(data, rdata)
    assert dic == rdic
Writeout and readback a Agilent/Varian fid file
dataset/ETHPy150Open jjhelmus/nmrglue/tests/test_agilent.py/write_fid_readback