Tagesdoku und Scripte für Bilderstellung. Matlab Datei und Pythonscript, um CSV der Ausgabe für Matlab lesbar zu machen.
This commit is contained in:
parent
31317b4657
commit
31be37a029
3 changed files with 38 additions and 13 deletions
|
@ -1,8 +1,18 @@
|
|||
%Array = csvread('bag-filesfiltered.csv');
|
||||
Array = csvread('visualisierung.csv');
|
||||
Array = csvread('visualisierung1712.csv');
|
||||
x = Array(:,1);
|
||||
y = Array(:,2);
|
||||
g24 = Array(:,3);
|
||||
g5 = Array(:,4);
|
||||
plot(x,y);
|
||||
|
||||
z = g24;
|
||||
%load map;
|
||||
pointsize = 30;
|
||||
%colormap(map);
|
||||
%colormapeditor();
|
||||
colormap(jet(255));
|
||||
%colormap(autumn(255));
|
||||
%colormap(hot(255));
|
||||
%colormap(cool(255));
|
||||
%colormap(spring(255));
|
||||
%colormap(winter(255));
|
||||
scatter(x, y, pointsize, z, 'filled');
|
||||
daspect([1 1 1]);
|
||||
|
|
|
@ -1,15 +1,20 @@
|
|||
#!/usr/bin/python2
|
||||
|
||||
import csv
|
||||
outFileName = 'visualisierung.csv'
|
||||
file = open("wlan_pioneer_filtered.csv", "r")
|
||||
outFileName = 'visualisierung1712.csv'
|
||||
file = open("wlan_pioneer_2018-12-17-17-14-03.csv", "r")
|
||||
csv_reader = csv.reader(file, delimiter="\n")
|
||||
outFile = open(outFileName, "w")
|
||||
begin = True
|
||||
for row in csv_reader:
|
||||
array=row[0].split(';')
|
||||
outFile.write("%s,%s,%s,%s\n"
|
||||
% (array[1], array[2], array[3], array[4]))
|
||||
if begin == False:
|
||||
array=row[0].split(',')
|
||||
g24 = (-1 * float(array[3]) - 40)/40
|
||||
g5 = (-1 * float(array[4]) - 40)/40
|
||||
outFile.write("%s,%s,%f,%f\n"
|
||||
% (array[1], array[2], g24, g5))
|
||||
begin = False
|
||||
file.close()
|
||||
outFile.close()
|
||||
|
||||
#Ergebnisdatei hat immer noch eine Überschrift. Manuell entfernen
|
||||
#Signalstaerken sind zwischen 0 und 1 normalisiert.
|
Loading…
Add table
Add a link
Reference in a new issue