nmrglue.fileio.varian.get_nblocks

nmrglue.fileio.varian.get_nblocks(f, nblocks, pts, nbheaders, dt, read_blockhead)[source]

Read multiple blocks from a Agilent/Varian binary file.

Parameters :

f : file object

File object of open Agilent/Varian binary file.

nblock : int

Number of blocks to read.

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

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

Returns :

dic : dict, optional

Dictionary of blockheaders, only returned if read_blockheaders is True.

data : 2D ndarray of size (nblocks, pts)

Array of read blocks.

Previous topic

nmrglue.fileio.varian.order_data

Next topic

nmrglue.fileio.varian.get_block

This Page