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 :

f : file object

File object of open Agilent/Varian binary file.

pts : int

Number of points per trace.

nbheaders : int

Number of block header in each block.

dt : dtype

Data type of data in binary file (real type).

read_blockheaders : bool, optional.

True to read the blockheader(s) and return them in the returned dictionary. False (default) ignores blockheader, reading over them.

Returns :

dic : dict, optional

Dictionary of blockheaders, only returned if read_blockheaders is True.

data : ndarray of size

Array of read block.

Previous topic

nmrglue.fileio.varian.get_nblocks

Next topic

nmrglue.fileio.varian.get_nblocks_ntraces

This Page