Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not using sensitivity calibration #122

Open
juliowissing-iis opened this issue Jul 13, 2021 · 3 comments
Open

Module not using sensitivity calibration #122

juliowissing-iis opened this issue Jul 13, 2021 · 3 comments

Comments

@juliowissing-iis
Copy link

spectrometer and system information

  • model: USB4000:FLMT03472
  • operating system: Windows 10 64bit
  • python version: 3.9.5
  • python-seabreeze version: 1.3.0
  • installed-via: conda

current problem

When taking a spectrum with the above mentioned spectrometer, the output seems to be the raw adc values without the sensitivity calibration. Is there a possibility to get the corrected values or the calibration values to do a manual correction?

steps to reproduce

  1. Take spectrum with halogen lamp from Thor Labs
  2. Compare spectrum read by python-seabreeze and ocean optics software
  3. Spectrum read by python-seabreeze falls of at higher wavelengths
  4. Spectrum read by ocean optics software shows right spectrum of halogon lamp

minimal code example and error (very helpful if available)

integration_time_micros = 100000  # µs

# Connecting to spectrometer and setting integration time
spec = Spectrometer.from_first_available()
spec.integration_time_micros(integration_time_micros)

# Acquiring spectrum
spectrum = spec.spectrum()

# Closing connection to Spectrometer
spec.close()

# Plotting Spectrum
plt.plot(spectrum[0], spectrum[1])
plt.show()
@ap--
Copy link
Owner

ap-- commented Jul 13, 2021

Hi @juliowissing

yes, python-seabreeze returns the raw readings, and has support for dark_count and nonlinearity correction.

What are you referring to specifically when you mention sensitivity calibration?
Did you store calibration coefficients on you spectrometer using the ocean optics software?

Can you show the plot comparing the two measurements?

Cheers,
Andreas 😃

@juliowissing-iis
Copy link
Author

Hi Andreas,

thanks for the reply. The Flame Spectrometer is currently in use, but we did some testing with our maya spectrometer and it shows the same behavior. In both cases the dark_count and nonlinearity corrections are turned off.

Spectrum obatained with Ocean Optics Software
Maya_ocean_optics

Spectrum obtained with python seabreeze
Maya_seabreeze

As you can see in the case of the seabreeze version, the intensities decrease after ~800nm, which should not be the case for the spectrum of a halogen lamp. The optics expert at my group stated that this behaviour might be caused by not applying a sensitvity correction in regards to the Si Photodiods. This is usually done after the ADC readout, but before the end user gets the spectrum data.
Thank you for your support!

Best regards,
Julio

@ap--
Copy link
Owner

ap-- commented Jul 21, 2021

Hi Julio,
sorry for the delay, it's been a busy week.
I think you're actually taking an irradiance measurement in the oceanoptics software.
There should be a way to take a raw measurement as provided by python-seabreeze too.

Can you checkout this manual https://mmrc.caltech.edu/Biologic%20Stopped%20Flow/Manuals/Ocean%20Optics/SpectraSuite.pdf
and describe in detail how you are taking these measurements?

Cheers,
Andreas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants