wvf_byte_offset

RigolWFM.yokogawa_hdr.wvf_byte_offset(hdr: HdrInfo, group: int, trace: int, block: int) int[source]

Return the byte offset of a (group, trace, block) slice in the .wvf file.

All indices are 0-origin.

Parameters:
  • hdr – Parsed HdrInfo.

  • group – Group index (0 … GroupNumber-1).

  • trace – Trace index within the group (0 … TraceNumber-1).

  • block – Block index within the group (0 … BlockNumber-1).

Returns:

Byte offset from the start of the .wvf file.

Raises:

ValueError – If hdr.data_format is not "TRACE" or "BLOCK".