obspy.io.sac.util.byteswap

byteswap(*arrays)[source]

Swapping of bytes for provided arrays.

Notes

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