Skip to content
Snippets Groups Projects
Commit 16f640fc authored by Uwe Jandt (DESY, HIFIS)'s avatar Uwe Jandt (DESY, HIFIS)
Browse files

add b2share - overall ONLY

parent b2901ddc
No related branches found
No related tags found
2 merge requests!28Add weighting (stub), and weighted kpi output,!27add b2share - overall ONLY
Pipeline #125473 passed
......@@ -50,3 +50,7 @@
path = subprojects/helmholtz-cloud-services
url = ../helmholtz-cloud-services
branch = main
[submodule "subprojects/FZJ-B2SHARE"]
path = subprojects/FZJ-B2SHARE
url = ../fzj-b2share
branch = main
../../subprojects/FZJ-B2SHARE/stats/b2share_accounting.csv
\ No newline at end of file
#!/bin/bash
# still need to take care of different header types
cat data.csv | gawk 'BEGIN{FS=","
# some defaults. first column has fixed title:
header[1]="date-time";
# all columns to be printed by default, until deactivated explicitly below
for (i=1; i<=100; i++)
printit[i]=1;
}{
if (substr($1,0,1)=="#") {
for (i=2; i<=NF; i++)
{
# extract from 3 header lines:
# 1) column title
# 2) whether or not to plot this column (1/0)
# 3) unit
switch (headcounter) {
case 0: header[i]=$i; break;
case 1: printit[i]=$i; break;
case 2:
# Add unit to the header text, if there is any unit, otherwise leave as-is.
if ($i!="")
header[i]=header[i] " [" $i "]";
break;
}
if (i>imax) imax=i;
}
headcounter++;
# once we gathered all 3 headlines, we can print the newly constructed standard header
if (headcounter==3) {
for (i=1; i<=NF; i++) {
if (printit[i]) {
if (i>1) printf(",");
printf("\"%s\"",header[i]);
}
}
printf ("\n");
}
} else if ($2=="overall") {
printf ("%s",$1);
for (i=2; i<=NF; i++) {
# yet another special case. If, in the first line, the keyword is "comment", dont print that column
if (NR==1 && $i=="comment")
{
printit[i]=0;
print $0
continue
}
if (printit[i]) {
printf (",%s",$i);
}
}
printf ("\n");
}
}' > data_plot.csv
\ No newline at end of file
# Use specific date/time format, overriding standard format.
set timefmt "%d.%m.%Y"
\ No newline at end of file
......@@ -92,6 +92,15 @@
##### desy_syncnshare_users-plot_2.svg
![desy_syncnshare_users-plot_2.svg](https://gitlab.hzdr.de/hifis/overall/kpi/kpi-plots-ci/-/jobs/artifacts/master/raw/plots/svg/desy_syncnshare_users-plot_2.svg?job=plot_general)
##### fzj_b2share-plot_2.svg
![fzj_b2share-plot_2.svg](https://gitlab.hzdr.de/hifis/overall/kpi/kpi-plots-ci/-/jobs/artifacts/master/raw/plots/svg/fzj_b2share-plot_2.svg?job=plot_general)
##### fzj_b2share-plot_3.svg
![fzj_b2share-plot_3.svg](https://gitlab.hzdr.de/hifis/overall/kpi/kpi-plots-ci/-/jobs/artifacts/master/raw/plots/svg/fzj_b2share-plot_3.svg?job=plot_general)
##### fzj_b2share-plot_4.svg
![fzj_b2share-plot_4.svg](https://gitlab.hzdr.de/hifis/overall/kpi/kpi-plots-ci/-/jobs/artifacts/master/raw/plots/svg/fzj_b2share-plot_4.svg?job=plot_general)
##### fzj_jupyter-plot_2.svg
![fzj_jupyter-plot_2.svg](https://gitlab.hzdr.de/hifis/overall/kpi/kpi-plots-ci/-/jobs/artifacts/master/raw/plots/svg/fzj_jupyter-plot_2.svg?job=plot_general)
......
Subproject commit 36509746b1c6f01b9e2ed21535a72383af3b032e
Subproject commit ef6363151bcd8a335f9690abcad594bc907de758
Subproject commit c8d4d6b2eae4b53c3d9a00da20ebcf6b66acacca
Subproject commit 178099198b1575525921f809482ce44c83a4ab6b
Subproject commit 8616ca7b32d35a21629dfb1f70358310cdbca038
Subproject commit eea742d9353582d5c95fab04dd1536120f09efe1
Subproject commit 0e2eed4504a34d88e1b65926b643ccdf13534f69
Subproject commit 4e4ca7548294a483634315a5807a4fc879fccf1f
Subproject commit 9bc37cb31b940ed44fa6d3eeb893a89a3fa8e75e
Subproject commit 18e3f04aba865b1302fc19b3fef71ccab8b9ce62
Subproject commit a06986c9e401a3d70edb703adc787f914d0b68a9
Subproject commit 64c8597a1153bf5ddf1f7fdc37e22b4b15efcaf7
Subproject commit c8a5bf4c05b7aa326c4ebe29ddebbae3d85ab4b1
Subproject commit eb265bbcf17bb692df03af0f4e0d58ed09eb6a44
Subproject commit b4cc3cdd4273655c9b04e73eee889b436cea8bc7
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