Skip to content
Snippets Groups Projects
Commit 1ef8978c authored by Chad Hanna's avatar Chad Hanna
Browse files

update vis

parent 2a5a5b79
No related branches found
No related tags found
No related merge requests found
......@@ -12,12 +12,8 @@ if "GPS" in form:
else:
gps = "-1"
if gps == "-1":
refresh = 0
longrefresh = 0
else:
refresh = 0
longrefresh = 0
refresh = 0
longrefresh = 0
if "Duration" in form:
duration = form["Duration"][0]
......@@ -86,7 +82,7 @@ print '''
<!-- <li><a href="#ldg" class="tablinks" onclick="openGstlalTab(event, 'LDG')">LDG</a></li> -->
<!-- <li><a href="#dashboard" class="tablinks" onclick="openGstlalTab(event, 'Dashboard')">Dashboard</a></li>-->
<!-- <li><a href="#events" class="tablinks" onclick="openGstlalTab(event, 'Events')">Events</a></li> -->
<li><a href="#summary" class="tablinks" onclick="openGstlalTab(event, 'Summary')">Results</a></li>
<li><a href="#summary" class="tablinks" onclick="openGstlalTab(event, 'Summary')">Live Results</a></li>
<li><a href="#status" class="tablinks" onclick="openGstlalTab(event, 'Status', time_since_last_wrapper, time_since_trigger_wrapper, up_time_wrapper, dropped_wrapper, ram_status_wrapper)">Live Status</a></li>
<li><a href="#sens" class="tablinks" onclick="openGstlalTab(event, 'Sensitivity', horizon_wrapper, psd_wrapper)">Live Sensitivity</a></li>
<li><a href="#noise" class="tablinks" onclick="openGstlalTab(event, 'Noise', noise_wrapper)">Live Noise</a></li>
......@@ -94,6 +90,9 @@ print '''
<li><a href="#snr" class="tablinks" onclick="openGstlalTab(event, 'SNR', snr_status_by_nodes_wrapper, snr_history_wrapper, likelihood_status_by_nodes_wrapper, likelihood_history_wrapper, far_status_by_nodes_wrapper, far_history_wrapper)">Live SNR</a></li>
<li><a href="#detchar" class="tablinks" onclick="openGstlalTab(event, 'Detchar')">Detchar</a></li>
<li><a href="#logs" class="tablinks" onclick="openGstlalTab(event, 'Logs')">Logs</a></li>
<li><a href="#bank" class="tablinks" onclick="openGstlalTab(event, 'Bank')">Bank</a></li>
<li><a href="#doc" class="tablinks" onclick="openGstlalTab(event, 'Doc')">Doc</a></li>
<li><a href="#shifts" class="tablinks" onclick="openGstlalTab(event, 'Shifts')">Shifts</a></li>
<li>
'''
print ' <input type="text" name="GPS" value="%s" size=8 style="margin: 7px 5px 5px 5px;"><input type="submit" value="GPS" style="margin: 7px 5px 5px 5px;">' % (gps,)
......@@ -126,21 +125,17 @@ print '''
'''
if gps =="-1":
print ''' <iframe src="https://ldas-jobs.ligo.caltech.edu/~detchar/summary/" width=100% height=675></iframe>'''
print ''' <iframe src="https://ldas-jobs.ligo.caltech.edu/~detchar/summary/" width=100% height=87%></iframe>'''
else:
date = "%04d%02d%02d" % time.gmtime(int(gps)+ 315964785)[0:3]
print ''' <iframe src="https://ldas-jobs.ligo.caltech.edu/~detchar/summary/day/%s/" width=100%% height=675></iframe>''' % (date,)
print ''' <iframe src="https://ldas-jobs.ligo.caltech.edu/~detchar/summary/day/%s/" width=100%% height=87%%></iframe>''' % (date,)
print '''
</div>
<div id="Doc" class="tabcontent">
<iframe src="https://www.lsc-group.phys.uwm.edu/ligovirgo/cbcnote/gstlal/O2searchPlan"></iframe>
</div>
<!--
<div id="Events" class="tabcontent">
<iframe src="https://gracedb.ligo.org/latest/?query=gstlal" width=100% height=675></iframe>
<iframe src="https://gracedb.ligo.org/latest/?query=gstlal" width=100% height=87%></iframe>
</div>
-->
......@@ -174,10 +169,23 @@ print '''
<div id="time_since_trigger_wrapper"></div><br>
<div id="up_time_wrapper"></div><br>
<div id="dropped_wrapper"></div><br>
<div id="ram_status_wrapper"></div>
<div id="ram_status_wrapper"></div><br>
<div><iframe style="background-color:#ecf0f1;" width=100% height=1000 src="https://ldas-jobs.ligo.caltech.edu/~patrick.brockill/llstatus-gstlal/index_auto_reload.html"></iframe></div>
</div>
<div id="Summary" class="tabcontent">
<iframe src="https://ldas-jobs.ligo.caltech.edu/~gstlalcbctest/engineering/10/" width=100% height=675></iframe>
<iframe src="https://ldas-jobs.ligo.caltech.edu/~gstlalcbctest/engineering/10/" width=100% height=87%></iframe>
</div>
<div id="Bank" class="tabcontent">
<iframe width=100% height=87% src="https://docs.google.com/document/d/1BCZrQQfii2cpIFSM6TdAteg3eAdpk_lncW0I-0rpIgc/pub?embedded=true"></iframe>
</div>
<div id="Doc" class="tabcontent">
<iframe width=100% height=87% src="https://docs.google.com/document/d/12wJjCz8L1UczqRm86q3-EFnpnIZ2FHPSwKR_kym2L5g/pub?embedded=true"></iframe>
</div>
<div id="Shifts" class="tabcontent">
<iframe src="https://calendar.google.com/calendar/embed?src=ligo.org_070l9orc9lisqgcf2q1arp1ig0%40group.calendar.google.com&ctz=America/New_York" style="border: 0" width=100% height=87% frameborder="0" scrolling="no"></iframe>
</div>
</body>
</html>
......
body {
font: 10pt verdana;
color: white;
background-color: #2c3e50;
}
table {
......
......@@ -54,16 +54,17 @@ var charts = [];
var H1="#e74c3c";
var L1="#2ecc71";
var white="#ecf0f1";
default_options = {
title: 'Figure',
hAxis: { gridlines: {color:'white'}, textStyle: {color:'white'} },
vAxis: { textStyle: {color: 'white'}, textPosition: 'out', viewWindowMode:'explicit', viewWindow:{min:0, max:100}, gridlines: {color:'white'}},
hAxis: { gridlines: {color:white}, textStyle: {color:white} },
vAxis: { textStyle: {color: white}, textPosition: 'out', viewWindowMode:'explicit', viewWindow:{min:0, max:100}, gridlines: {color:white}},
chartArea: {left:50, top:15, width:'95%', height:'70%', backgroundColor:'#2c3e50;'},
titlePosition: 'in',
titleTextStyle: {color: "white"},
series: {0: {color: H1}, 1: {color:L1}},
legend: {position: "in", textStyle: {color: 'white'}},
legend: {position: "in", textStyle: {color: white}},
explorer: {actions: ['dragToZoom', 'rightClickToReset']},
dataOpacity: "0.5",
curveType: "none",
......@@ -294,7 +295,7 @@ function ChartWrapper(obj) {
function drawLatencyStatusByNodes(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:5, maxValue:75, textPosition: 'out', ticks: [8,16,32,64] };
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:5, maxValue:75, textPosition: 'out', ticks: [8,16,32,64] };
these_options.title = 'Latency';
latency_status_by_nodes_wrapper = new ChartWrapper({
......@@ -312,7 +313,7 @@ function drawLatencyStatusByNodes(gps, duration, refresh, analysis_path, job_ids
function drawLatencyHistory(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:5, maxValue:75, textPosition: 'out', ticks: [8,16,32,64] };
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:5, maxValue:75, textPosition: 'out', ticks: [8,16,32,64] };
these_options.title = 'Latency';
latency_history_wrapper = new ChartWrapper({
......@@ -359,7 +360,7 @@ function drawLatencyGauge(gps, duration, refresh, analysis_path, job_ids) {
function drawSNRStatusByNodes(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:4, maxValue:150, textPosition: 'out', ticks: [4,8,16,32,64] };
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:4, maxValue:150, textPosition: 'out', ticks: [4,8,16,32,64] };
these_options.title = 'SNR';
snr_status_by_nodes_wrapper = new ChartWrapper({
......@@ -377,7 +378,7 @@ function drawSNRStatusByNodes(gps, duration, refresh, analysis_path, job_ids) {
function drawSNRHistory(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:4, maxValue:150, textPosition: 'out', ticks: [4,8,16,32,64] };
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:4, maxValue:150, textPosition: 'out', ticks: [4,8,16,32,64] };
these_options.title = 'SNR';
snr_history_wrapper = new ChartWrapper({
......@@ -395,7 +396,7 @@ function drawSNRHistory(gps, duration, refresh, analysis_path, job_ids) {
function drawLikelihoodStatusByNodes(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:4, maxValue:150, textPosition: 'out', ticks: [4,8,16,32,64] };
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:4, maxValue:150, textPosition: 'out', ticks: [4,8,16,32,64] };
these_options.title = 'Likelihood';
likelihood_status_by_nodes_wrapper = new ChartWrapper({
......@@ -413,7 +414,7 @@ function drawLikelihoodStatusByNodes(gps, duration, refresh, analysis_path, job_
function drawLikelihoodHistory(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:4, maxValue:150, textPosition: 'out', ticks: [4,8,16,32,64] };
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:4, maxValue:150, textPosition: 'out', ticks: [4,8,16,32,64] };
these_options.title = 'Likelihood';
likelihood_history_wrapper = new ChartWrapper({
......@@ -431,7 +432,7 @@ function drawLikelihoodHistory(gps, duration, refresh, analysis_path, job_ids) {
function drawFARStatusByNodes(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:0.00000001, maxValue:1, textPosition: 'out', ticks: [0.00000001, 0.000001, 0.0001, 0.01, 1], format: 'scientific' };
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:0.00000001, maxValue:1, textPosition: 'out', ticks: [0.00000001, 0.000001, 0.0001, 0.01, 1], format: 'scientific' };
these_options.title = 'FAR';
far_status_by_nodes_wrapper = new ChartWrapper({
......@@ -449,7 +450,7 @@ function drawFARStatusByNodes(gps, duration, refresh, analysis_path, job_ids) {
function drawFARHistory(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:0.0000001, maxValue:1, textPosition: 'out', ticks: [0.00000001, 0.000001, 0.0001, 0.01, 1], format: 'scientific' };
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:0.0000001, maxValue:1, textPosition: 'out', ticks: [0.00000001, 0.000001, 0.0001, 0.01, 1], format: 'scientific' };
these_options.title = 'FAR';
far_history_wrapper = new ChartWrapper({
......@@ -470,7 +471,7 @@ function drawFARHistory(gps, duration, refresh, analysis_path, job_ids) {
function drawHorizon(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, minValue:0, maxValue:250, textPosition: 'out'};
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:32, maxValue:512, textPosition: 'out', ticks: [32,64,128,256,512] };
these_options.title = 'Horizon';
horizon_wrapper = new ChartWrapper({
......@@ -501,8 +502,8 @@ function drawHorizon(gps, duration, refresh, analysis_path, job_ids) {
function drawPSD(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', textPosition: 'out', viewWindowMode:'explicit', viewWindow:{max:1e-18, min:1e-24}, format: 'scientific'};
these_options.hAxis = {textStyle: {color: 'white'}, scaleType: 'log', textPosition: 'out', viewWindowMode:'explicit', viewWindow:{min:10, max:2048}};
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', textPosition: 'out', viewWindowMode:'explicit', viewWindow:{max:1e-18, min:1e-24}, format: 'scientific'};
these_options.hAxis = {textStyle: {color: white}, scaleType: 'log', textPosition: 'out', viewWindowMode:'explicit', viewWindow:{min:10, max:2048}};
these_options.title = 'Amplitude Spectral Density';
these_options.interpolateNulls = true;
......@@ -552,6 +553,7 @@ function drawNoise(gps, duration, refresh, analysis_path, job_ids) {
// Setup the custom options
var these_options = clone(default_options);
these_options.title = "Whitened h(t)";
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:2, maxValue:100, textPosition: 'out', ticks: [2,4,8,16,32,64] };
noise_wrapper = new ChartWrapper({
chartType: 'LineChart',
......@@ -610,7 +612,7 @@ function drawNoiseGauge(gps, duration, refresh, analysis_path, job_ids) {
function drawUpTime(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.title = 'Up Time';
these_options.vAxis = {textStyle: {color: 'white'}, textPosition: 'out', viewWindowMode:'explicit', gridlines: {color:'#FFFFFF'}, scaleType: 'log', minValue:1, maxValue:100000000, format: 'scientific'}
these_options.vAxis = {textStyle: {color: white}, textPosition: 'out', viewWindowMode:'explicit', gridlines: {color:'#FFFFFF'}, scaleType: 'log', minValue:1, maxValue:100000000, format: 'scientific'}
up_time_wrapper = new ChartWrapper({
chartType: 'ColumnChart',
dataSourceUrl: 'https://ldas-jobs.ligo.caltech.edu/~gstlalcbctest/cgi-bin/gstlal_data_server_latest_by_job?tqx=reqId:1000' + '&gpstime=' + gps + '&duration=' + duration + '&id=' + job_ids + '&dir=' + analysis_path,
......@@ -649,7 +651,7 @@ function drawUpTimeGauge(gps, duration, refresh, analysis_path, job_ids) {
function drawDroppedData(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.title = 'Dropped Data';
these_options.vAxis = {textStyle: {color: 'white'}, textPosition: 'out', viewWindowMode:'explicit', gridlines: {color:'#FFFFFF'}, scaleType: 'log', minValue:1, maxValue:100000000, format: 'scientific'}
these_options.vAxis = {textStyle: {color: white}, textPosition: 'out', viewWindowMode:'explicit', gridlines: {color:'#FFFFFF'}, scaleType: 'log', minValue:1, maxValue:100000000, format: 'scientific'}
dropped_wrapper = new ChartWrapper({
chartType: 'ColumnChart',
dataSourceUrl: 'https://ldas-jobs.ligo.caltech.edu/~gstlalcbctest/cgi-bin/gstlal_data_server_latest_by_job?tqx=reqId:1100' + '&gpstime=' + gps + '&duration=' + duration + '&id=' + job_ids + '&dir=' + analysis_path,
......@@ -664,7 +666,7 @@ function drawDroppedData(gps, duration, refresh, analysis_path, job_ids) {
function drawRAMStatus(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:1, maxValue:16, textPosition: 'out', ticks: [1,2,4,8,16] };
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:1, maxValue:16, textPosition: 'out', ticks: [1,2,4,8,16] };
these_options.title = 'RAM';
ram_status_wrapper = new ChartWrapper({
......@@ -682,7 +684,7 @@ function drawRAMStatus(gps, duration, refresh, analysis_path, job_ids) {
function drawTimeSinceLast(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:1, maxValue:1000000, textPosition: 'out', ticks: [1,10,100,1000,10000,100000], format: 'scientific'};
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:1, maxValue:1000000, textPosition: 'out', ticks: [1,10,100,1000,10000,100000], format: 'scientific'};
these_options.title = 'Time Since Last Heartbeat';
time_since_last_wrapper = new ChartWrapper({
......@@ -700,7 +702,7 @@ function drawTimeSinceLast(gps, duration, refresh, analysis_path, job_ids) {
function drawTimeSinceTrigger(gps, duration, refresh, analysis_path, job_ids) {
var these_options = clone(default_options);
these_options.vAxis = {textStyle: {color: 'white'}, scaleType: 'log', minValue:1, maxValue:1000000, textPosition: 'out', ticks: [1,10,100,1000,10000,100000], format: 'scientific'};
these_options.vAxis = {textStyle: {color: white}, scaleType: 'log', minValue:1, maxValue:1000000, textPosition: 'out', ticks: [1,10,100,1000,10000,100000], format: 'scientific'};
these_options.title = 'Time Since Last Trigger';
time_since_trigger_wrapper = new ChartWrapper({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment