nmrglue.fileio.bruker.write
- nmrglue.fileio.bruker.write(dir, dic, data, bin_file=None, acqus_files=None, procs_files=None, pprog_file=None, overwrite=False, big=None, isfloat=None, write_prog=True, write_acqus=True, write_procs=False, pdata_folder=False)[source]
Write Bruker files to disk.
- Parameters
- dirstr
Directory to write files to.
- dirdict
Dictionary of Bruker parameters.
- dataarray_like
Array of NMR data
- bin_filestr, optional
Filename of binary file in directory. None uses standard files.
- acqus_fileslist, optional
List of filename(s) of acqus parameter files in directory. None uses standard files.
- procs_filelist, optional
List of filename(s) of procs parameter files (to write out). None uses a list of standard files
- pprog_filestr, optional
Filename of pulse program in directory. None uses standard files.
- overwritebool, optional
Set True to overwrite files, False will raise a Warning if files exist.
- bigbool or None, optional
Endianness of binary file. True for big-endian, False for little-endian, None to determine endianness from Bruker dictionary.
- isfloatbool or None, optional
Data type of binary file. True for float64, False for int32. None to determine data type from Bruker dictionary.
- write_pprogbool, optional
True to write the pulse program file, False prevents writing.
- write_acqusbool, optional
True to write the acqus files(s), False prevents writing.
- write_procsbool, optional
True to write the procs files(s), False prevents writing.
- pdata_folderint, optional
Makes a folder and a subfolder (‘pdata/pdata_folder’) inside the given directory where pdata_folder is an integer. procN and procNs files are stored inside pdata_folder. pdata_folder=False (or =0) does not make the pdata folder and pdata_folder=True makes folder ‘1’.
See also
write_lowmem
Write Bruker files using minimal amounts of memory.
read
Read Bruker files.