RawFile

class aare.RawFile(fname, chunk_size=1)

Bases: RawFile

property bitdepth
property bytes_per_frame
property bytes_per_pixel
property cols
property detector_type
frame_number(self: aare._aare.RawFile, arg0: int) int
property geometry
property master

Return the master file.

Returns:

Master file.

Return type:

RawMasterFile

property n_mod
property pixels_per_frame
read() tuple

Read the entire file. Seeks to the beginning of the file before reading.

Returns:

header, data

Return type:

tuple

read_frame(self: aare._aare.RawFile) tuple
read_n(self: aare._aare.RawFile, arg0: int) tuple

Read n frames from the file.

property rows
property scan_parameters

Return the scan parameters.

Returns:

Scan parameters.

Return type:

ScanParameters

seek(self: aare._aare.RawFile, arg0: int) None

Seek to a frame index in file.

tell(self: aare._aare.RawFile) int

Return the current frame number.

property total_frames