Write a raw binary file with NumPy array data July 30, 2023 by Tarik I think the easiest way to do this is to first convert the array to int16, array.astype('int16').tofile(filename)