% % Ed Hill % % dd if=example_data/ETAN.0000015930.data of=t1 bs=1024 count=1 % dd if=example_data/ETAN.0000015912.data of=t0 bs=1024 count=1 % ./average_fields t0 t1 a01 % matlab -nojvm clear all fid = fopen('t0') t0 = fread(fid,inf,'single',0,'ieee-be'); fclose(fid) t0(1:10) fid = fopen('t1') t1 = fread(fid,inf,'single',0,'ieee-be'); fclose(fid) t1(1:10) m01 = mean([t0' ; t1'])'; [ t0(1:10)' ; t1(1:10)' ; m01(1:10)' ]' fid = fopen('a01') a01 = fread(fid,inf,'single',0,'ieee-be'); fclose(fid) a01(1:10) [ t0(1:10)' ; t1(1:10)' ; m01(1:10)' ; a01(1:10)' ]'