From 0b3cf82e2f73fd9f74f242718537ebdc7c20a2a7 Mon Sep 17 00:00:00 2001 From: Eric Kooistra <kooistra@astron.nl> Date: Fri, 31 Oct 2008 12:20:15 +0000 Subject: [PATCH] Bug #1230: Utility to examine XST data. --- .gitattributes | 1 + MAC/Test/Station/gold/xst.m | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 MAC/Test/Station/gold/xst.m diff --git a/.gitattributes b/.gitattributes index 822921f6bec..d3c58f4a311 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/MAC/Test/Station/gold/xst.m b/MAC/Test/Station/gold/xst.m new file mode 100644 index 00000000000..c6eee9a6097 --- /dev/null +++ b/MAC/Test/Station/gold/xst.m @@ -0,0 +1,29 @@ +% +% 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 -- GitLab