def decode_raw(bytestring, shape=(64,64,64), dtype=np.uint32): return np.frombuffer(bytestring, dtype=dtype).reshape(shape[::-1]).T