obspy.io.sac.util.byteswap

byteswap(*arrays)[source]

Swapping of bytes for provided arrays.

arr.newbyteorder(‘S’) swaps dtype interpretation, but not bytes in memory arr.byteswap() swaps bytes in memory, but not dtype interpretation arr.byteswap(True).newbyteorder(‘S’) completely swaps both

https://docs.scipy.org/doc/numpy/user/basics.byteswapping.html