Okay, I think I am finished with the sensing matrix scripts!
I had the syntax for atan2() wrong, so I was calculating the demod phase wrong. Do not trust the phase in any previous elogs!!
Also, the theta=0 axis of the plots are for 0 degree demod phase, but our PDs are not at 0 deg. The measured sensing matrix phase is relative to the current demod phase, not 0 (unless the demod phase for that PD is currently 0degrees). So, now I take that into account. I add the current PD demod phase to the measured sensing matrix phase, so that the plot is actually true.
For interested parties, I have made all of the sensing matrix scripts, and the data folder a subdirectory of the /scripts/LSC folder, since it was starting to get crowded in there. I have moved the 2 data sets that have been collected (21May, 23May) into the new place.
Future thoughts:
* Save the amplitude and modulation frequency and the current demod phases in the data file. Right now the ampl and mod freqs are included in the title of the data file, but there is no record of what the demod phase was at the time. I need to fix this.
So, really, really, the Sensing Matrix:
Sensing Matrix, units = counts/meter, phase in degrees
PRCL Mag PRCL Phase MICH Mag MICH Phase
AS55 5.485E+08 -43.424 2.679E+09 93.392
REFL11 1.126E+13 -7.168 1.618E+11 135.296
REFL33 2.658E+11 164.973 8.910E+09 -2.226
REFL55 3.012E+11 -75.216 1.210E+10 172.764

|