Skip to content
Snippets Groups Projects
Commit 0b3cf82e authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Bug #1230: Utility to examine XST data.

parent 8ceb6a79
Branches
No related tags found
No related merge requests found
......@@ -948,6 +948,7 @@ MAC/Test/Station/bootstrap -text
MAC/Test/Station/gold/prbs_dir_test.gold -text
MAC/Test/Station/gold/rsp_version.gold -text
MAC/Test/Station/gold/tbb_version.gold -text
MAC/Test/Station/gold/xst.m -text
MAC/Test/Station/gold/xst_160.gold -text
MAC/Test/Station/gold/xst_200_even.gold -text
MAC/Test/Station/gold/xst_200_odd.gold -text
......
%
% Utility to examine XST data
%
%cd C:\svnroot\LOFAR\trunk\MAC\Test\Station\gold
close all
% golden XST data
fid = fopen('xst_160.gold','r')
data_gold = fread(fid,'double')
fclose(fid)
corr_gold = reshape(data_gold(1:2:end) + i * data_gold(2:2:end), [32,32])
figure(1)
imagesc(abs(corr_gold))
colorbar
figure(2)
imagesc(angle(corr_gold))
colorbar
% new XST data
fid = fopen('xst.dat','r')
data = fread(fid,'double')
fclose(fid)
corr = reshape(data(1:2:end) + i * data(2:2:end), [32,32])
figure(3)
imagesc(abs(corr))
colorbar
figure(4)
imagesc(angle(corr))
colorbar
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment