BGlib.be.translators.be_odf.BEodfParser¶
- class BGlib.be.translators.be_odf.BEodfParser(real_path, imag_path, num_pix, bytes_per_pix)[source]¶
Bases:
object
This object reads the two binary data files (real and imaginary data). Use separate parser instances for in-field and out-field data sets.
- Parameters:
real_path (String / Unicode) – absolute path of the binary file containing the real portion of the data
imag_path (String / Unicode) – absolute path of the binary file containing the imaginary portion of the data
num_pix (unsigned int) – Number of pixels in this image
bytes_per_pix (unsigned int) – Number of bytes per pixel
Methods
Returns the complete contents of the file pair
Returns the content of the next pixel
- param pixel_ind:
- read_all_data()[source]¶
Returns the complete contents of the file pair
- Returns:
raw_vec – Entire content of the file pair
- Return type:
1D numpy complex64 array