nmrglue.fileio.varian.get_block¶
-
nmrglue.fileio.varian.
get_block
(f, pts, nbheaders, dt, read_blockhead=False)[source]¶ Read a single block from Agilent/Varian binary file.
- Parameters
- ffile object
File object of open Agilent/Varian binary file.
- ptsint
Number of points per trace.
- nbheadersint
Number of block header in each block.
- dtdtype
Data type of data in binary file (real type).
- read_blockheadersbool, optional.
True to read the blockheader(s) and return them in the returned dictionary. False (default) ignores blockheader, reading over them.
- Returns
- dicdict, optional
Dictionary of blockheaders, only returned if read_blockheaders is True.
- datandarray of size
Array of read block.