updat20131129

This commit is contained in:
stubbfel
2013-11-29 13:04:02 +01:00
parent 8f2a689e92
commit 4ca1ca52c6
514 changed files with 791709 additions and 0 deletions

28
createplot.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
$testPath = $_GET["path"];
$dir = opendir($testPath);
while ($file = readdir($dir)) {
if (eregi("[0-9]{2,3}.json_rv1", $file)) {
$sourceString = file_get_contents($testPath . $file);
$source = json_decode($sourceString, true);
$content = "";
foreach ($source as $key => $value) {
if ($key == 0) {
continue;
}
$content .= $key . "\t" . $value . "\n";
}
file_put_contents($testPath . $file. ".dat", $content);
$script = "set terminal svg;set xrange [1:];set style data lines;set out \"$testPath$file.svg\";plot \"$testPath$file.dat\";";
file_put_contents($testPath . $file. ".pl", $script);
exec("gnuplot $testPath$file.pl");
}
}
?>