updated tap notes
[wikirepo] / notes / a_40-ish_dB_tap / process.py
diff --git a/notes/a_40-ish_dB_tap/process.py b/notes/a_40-ish_dB_tap/process.py
new file mode 100644 (file)
index 0000000..f4fa8d1
--- /dev/null
@@ -0,0 +1,12 @@
+#!/usr/bin/env python3
+
+import pandas
+import matplotlib
+
+if __name__ == "__main__":
+    data = pandas.read_csv('data.csv', skipinitialspace=True)
+    data['loss S1S2 [dBm]'] = data['SRC [dBm]'] - data['S1S2 [dBm]']
+    data['loss S2S3 [dBm]'] = data['SRC [dBm]'] - data['S1S3 [dBm]']
+    data['loss S2S3 [dBm]'] = data['SRC [dBm]'] - data['S2S3 [dBm]']
+    
+    print(data.to_html())