title: Write a raw binary file with NumPy array data
body: <p>I'd like to save the contents of a numpy float array into a raw binary file as signed 16 bit integers. I tried to accomplish this using <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.tofile.html" rel="noreferrer">ndarray.tofile</a> but I can't figure out the right format string. It seems that the file is saved in double format, mo matter how I choose the format string. How do I do this?
  Thanks.</p>