obspy.io.rg16.util._read

_read(fi, position, length, dtype, left_part=True)[source]

Read one or more bytes using provided datatype.

This function supports a few datatype options numpy does not support, otherwise the arguments are just passed to numpy.

Parameters:
  • fi – A buffer containing the bytes to read.

  • position (int) – Byte position to start reading.

  • length (int or float) – Length, in bytes, of data to read.

  • dtype (str) – bcd, binary, IEEE or any numpy supported datatype.

  • left_part (bool) – If True, start the reading from the first half part of the byte position. If False, start the reading from the second half part of the byte position.