write pressure values to binary output file