You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Auswertung_AOA.py 649B

12345678910111213141516171819202122232425
  1. #! /usr/bin/python
  2. import numpy as np
  3. import matplotlib.pyplot as plt
  4. AoA_point_estimated = 120
  5. import csv
  6. with open('AOA_-5(6m).txt','r') as f:
  7. lines = list(csv.reader(f, delimiter = ',', skipinitialspace = True)) # Printing Specific Part of CSV_file
  8. #print(lines[0][4]) # Printing last line of second column
  9. x = np.arange(len(lines)-5)
  10. y = []
  11. for i in range(len(lines)-5):
  12. C = int(lines[i][4])
  13. #Angle_diff = C - AoA_point_3
  14. y.append(C)
  15. #print(y)
  16. plt.plot(x , y, "-g", label="AOA")
  17. print(np.max(y), np.min(y), np.average(y), np.median(y))
  18. plt.ylabel("AOA_diff")
  19. plt.xlabel("BurstID")
  20. plt.title("AoA_point_-5_Average")
  21. plt.show()