Read Agilent/Varian files in a directory.
Parameters : | dir : str, optional
fid_file : str, optional
procpar_file : str, optional
read_blockhead : bool, optional
shape : tuple of ints, optional
torder : {None, ‘r’, ‘o’, ‘f’ or a Python function} , optional
as_2d : bool, optional
|
---|---|
Returns : | dic : dict
data : ndarray
|
See also
Notes
The torder parameter describes how the traces on disk should be re-organized to form the NMR data matrix. In most cases this can be determined automatically by examining the order of phase parameters in the procpar file. This is done if torder is set to None. In some cases it must be explicitly provided. Three common cases are:
Name | Ordering of arrays | torder | Notes |
---|---|---|---|
regular | d3, d2, phase2, phase | ‘regular’ or ‘r’ | |
opposite | d3, d2, phase, phase2 | ‘opposite’ or ‘o’ | |
flat | As data exists in file | ‘flat’ or ‘f’ | Valid for 1D or 2D data |
In addition a function which maps indirect dimension index tuples to/from trace numbers as stored on disk can be provided. For reading this function should take 2 arguments: shape, index_tuple and return an integer trace number. For writing this function should again take 2 arguments: shape,trace_number and return the indirect dimension index tuple for the given trace.