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

read_all_data

Returns the complete contents of the file pair

read_pixel

Returns the content of the next pixel

reset

seek_to_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

read_pixel()[source]

Returns the content of the next pixel

Returns:

raw_vec – Content of one pixel’s data

Return type:

1D numpy complex64 array

reset()[source]
seek_to_pixel(pixel_ind)[source]
Parameters:

pixel_ind