The data is still taken in standalone.
The data files are being rsync'ed to /data/dev/cernpli/
Each day a file
YYYY.MM.DD-RAW.txt
is filled (e.g. 2019.08.08-RAW.txt)
A history file called
YYYY.MM-HIST.txt
it keeps track of the history of data acquisition and of any error message.
The -RAW files contain 9 columns
The first column is the time with the format: HH:MM:SS.xxx
The columns 2 to 5 contain the reading of the signal quadrant photodiode (wl1, wl2, wl3, wl4) and the columns 6 to 9 contain the reading of the reference quadrant photodiode (rp1, rp2, rp3, rp4).
The reference signal allows to subtract the noise from the signal.
The mapping of the channels on both quadrant photodiodes is the following
2 | 1
-----
3 | 4
Then the two coordinates are expressed as
inc_vertical (N-S axis) = 291*((wl1+wl2-wl3-wl4)-(rp1+rp2-rp3-rp4))
inc_horizontal (E-W axis) = 291*((wl1+wl4-wl2-wl3)-(rp1+rp4-rp2-rp3))
A simple routine is attached here (python) reading the data and writing a file containing three columns
UTC time inc_vertical inc_horizontal
Please pay attention that the UTC time differs from GPS time by 10 years, i.e. UTC counts seconds from midnight 1 January 1970 and GPS from midnight 6 January 1980 and they differ by 12 seconds in addition.
http://leapsecond.com/java/gpsclock.htm
The precise difference is 315964782 seconds
More refined code will be made avaialable along with plots.
Matlab scripts will be made available as well.
Environmental Monitoring›Environmental Monitoring
#46614