#!/bin/bash
#	$Id: mixread.sh 12114 2013-09-03 19:19:00Z fwobbe $
# Test gmt gmtconvert with mixed format binary input

# This is what the output should look like
cat << EOF >> tt.d
3.1400001	3.1400001	3.14	3.14	3.14	9999	9999	123123.000000	123123
3.1400001	3.1400001	3.14	3.14	3.14	9999	9999	123123.000000	123123
3.1400001	3.1400001	3.14	3.14	3.14	9999	9999	123123.000000	123123
EOF
# Use +L since binary file was created on a little-endian OS X box
gmt gmtconvert -bi2f,3d,2h,10x,2i+L mix_binary_data.b --FORMAT_FLOAT_OUT=2-4:%.2f,7:%12.6f,%.8g > tt.txt
diff tt.d tt.txt --strip-trailing-cr > fail
