obspy.io.sac.util.is_same_byteorder

is_same_byteorder(bo1, bo2)[source]

Deal with all the ways to compare byte order string representations.

Parameters:
  • bo1 (str) Byte order string. Can be one of {‘l’, ‘little’, ‘L’, ‘<’, ‘b’, ‘big’, ‘B’, ‘>’, ‘n’, ‘native’,’N’, ‘=’}
  • bo2 Byte order string. Can be one of {‘l’, ‘little’, ‘L’, ‘<’, ‘b’, ‘big’, ‘B’, ‘>’, ‘n’, ‘native’,’N’, ‘=’}
Return type:

bool

Returns:

True of same byte order.