def lowmem_write_readback(dic, data):
    td = tempfile.mkdtemp(dir=".")
    ng.varian.write_lowmem(td, dic, data)
    rdic, rdata = ng.varian.read_lowmem(td)
    # check value [0,1,...]
    s = tuple(range(data.ndim))
    assert data[s] == rdata[s]
    assert dic == rdic
    shutil.rmtree(td)
lowmemory write out and readback a Agilent/Varian directory.
dataset/ETHPy150Open jjhelmus/nmrglue/tests/test_agilent.py/lowmem_write_readback