<div dir="ltr">Rick and Anish,<div><br></div><div style>Here is some sample data from the real-time correlator. I'm sorry it took so long to get to you.</div><div style><br></div><div style>I've also attached a python script that parses and plots the data. You'll need the numpy, pylab, h5py, time, sys, math, and poxy python libraries to run this code.</div>
<div style><br></div><div style>"plot_corr_h5_zk.py [options] <file_name>" will plot the data in a user-specified manner.</div><div style><br></div><div style>OPTIONS</div><div style>------------------</div>
<div style>-a #</div><div style>Specify which antenna to plot against (all cross-PSDs or cross-correlation functions against #)</div><div style><br></div><div style>-a #_#</div><div style>Specify which two antennas to plot against each other (cross-PSD or cross-correlation function between the two #'s)</div>
<div style><br></div><div style>-a auto</div><div style>Plot PSDs or auto-correlation functions for all antennas</div><div style><br></div><div style>-p (xx, yy, yx, xy, all)</div><div style>Specifies which polarization should be plotted-- this refers only to how the data was treated in the correlator. For this sample data, we only use 'xx.'</div>
<div style><br></div><div style>-D</div><div style>Plots the cross/auto-correlation functions. If this option is omitted, the (cross-)PSDs are plotted instead.</div><div style><br></div><div style>For example, to plot the cross-PSDs against antenna 0, you would use the following command:</div>
<div style>"./plot_corr_h5.py -a 0 -p xx corr.2456087.47037.h5c"</div><div style><br></div><div style>If you wanted to plot the cross-correlation functions against antenna 0, you would use the following command:</div>
<div style>"./plot_corr_h5.py -a 0 -p xx -D corr.2456087.47037.h5c"</div><div><br></div><div><br></div><div>If you wanted to plot the cross-PSD between antennas 0 and 1, you would use the following command:</div>
<div>"./plot_corr_h5.py -a 0_1 -p xx corr.2456087.47037.h5c"</div><div><br></div><div style>If you wanted to plot the auto-correlation PSDs for all the antennas, you would use the following command:</div><div style>
"./plot_corr_h5.py -a auto -p xx corr.2456087.47037.h5c"</div><div><br></div><div><br></div><div><br></div><div>I hope this makes sense. Let me know if there is any confusion.</div><div><br></div><div>Thanks,</div>
<div><br clear="all"><div>Richard Black</div>
</div></div>