Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. spectra_path = '/Users/tjiang/Desktop/Processing/Mac/panel_validation/data/spectra/cal_ALSJ212143_011915.csv'
  2. spectra = np.genfromtxt(spectra_path, delimiter=',')[:, 1:]
  3. lambda_min = 300
  4. lambda_max = 1100
  5. num_peaks = 401
  6. num_lights = 401
  7. peaks = np.linspace(lambda_min, lambda_max, num_lights)
  8. peaks.shape = (num_lights, 1)
  9.  
  10. # _ = plt.plot(peaks, rraw, color='red')
  11. # _ = plt.plot(peaks, graw, color='green')
  12. # _ = plt.plot(peaks, braw, color='blue')
  13. # _ = plt.plot(peaks, craw, color='black')
  14. plt.plot(peaks, spectra[:, -1]*1/np.max(spectra[:, -1]), color='black')
  15. plt.plot(peaks, spectra[:, 0]*1/np.max(spectra[:, -1]), color='red')
  16. plt.plot(peaks, spectra[:, 1]*1/np.max(spectra[:, -1]), color='green')
  17. plt.plot(peaks, spectra[:, 2]*1/np.max(spectra[:, -1]), color='blue')
  18.  
  19. plt.ylim([-0.1,1.1])
  20.  
  21. plt.title('J212 Front Camera Aperture')
  22. # _ = plt.ylabel('Spectral Irradiance (uW/cm^2)')
  23. _ = plt.xlabel('Wavelength (nm)')
  24. _ = plt.ylabel('Normalized Responsivity')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement