function bin_float(name, array)

%% clipped from os/load_raw and bb/load_avg

global fid_bin fid_cmd

offset = ftell(fid_bin);
fwrite(fid_bin, array, 'float32');
fprintf(fid_cmd, 'binary_data: %s FLOAT %d %d\n', ...
                 name, length(array(:)), offset);



