def write_lowmem(dir, dic, data, fid_file="fid", procpar_file="procpar",
                 torder=None, repack=False, overwrite=False):
    # always find trace ording
    if torder is None:
        torder = find_torder(dic["procpar"], data.shape)

    # write out the fid file
    fname = os.path.join(dir, fid_file)
    write_fid_lowmem(fname, dic, data, torder, repack=repack,
                     overwrite=overwrite)

    # write out procpar file
    write_procpar(os.path.join(dir, procpar_file), dic["procpar"], overwrite)

    return

############
# ordering #
############
Write Agilent/Varian files to a directory using mimimal amounts of memory.
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/varian.py/write_lowmem