Python code for query and plotting SC variables
Basic usage
------------------ Query the SC variables into pickle ---------------------
The code is for extracting the SC variables
from the SC database Chris made:
========== Syntax: =============
python BatchQuerySC.py
[variable list]
[start time in yymmdd_HHMM]
[end time in yymmdd_HHMM]
[output pickle file]
The query needs the support from hax (https://github.com/XENON1T/pax)
------------------ Plotting the desired variable trends using the pickle output of the query ---------------------------
python DrawPars.py .......
[pickle file]
[draw option list]
======= variable list =========
Basically it is just a file contain all the historian tags you want in your query. The file shall be sth like:
Tag#1
Tag#2
.....
You can check-out List/LXeFilling_IDList.txt for an example
======= draw option list format: ========
The draw option list consists of two pars:
- define the alias for the historian tags:
Tag#1 Alias#1
Tag#2 Alias#2
......
- Then define the variable you want to draw, it can be a function of the aliases you just defined:
Variable#1 Description#1 Y_Fraction_lower#1 Y_Fraction_lower#1 Color#1
........
Note:
a)Variable can be simple calculation (+, -, *, /) of the aliases, plus differential (x) and cumulative(x) for differential and cumulative the trend over time.
b)Description contains no space.
c)Y_Fraction_lower and Y_Fraction_upper limit the curve in (Y_Fraction_lower, Y_Fraction_upper) of the whole canvas.
d)Color is python color notation.
You can find the example in List/LXeFilling_DrawOpt.txt.