Comments (7)
As I understand it, if your signal-to-noise ratio is greater than one, you can increase the ratio further by averaging. You can perform a simple averaging routine in Python by running a "for loop" n times (where n is the number you want to average) and then average the n arrays together by running another iterative loop adding each pixel (or element in the arrays) and then dividing each array number by n.
from python-seabreeze.
I think the point of the original question is that the spectrometer can do scan averaging automatically within the spectrometer. Much more efficient than acquiring 20 spectra and averaging them on the host computer. This is a feature that I also would like to use.
from python-seabreeze.
This should now be supported via cseabreeze.
I'll leave it open since pyseabreeze support is still missing.
from python-seabreeze.
Hi, I'm trying to access this feature for my FLAME and USB2000+ but for both I get a seabreeze error returned. I am running windows anaconda python version 3.5.3, but I get the same from my raspberry pi.
Using the following code
import seabreeze.spectrometers as sb
devices = sb.list_devices()
spec = sb.Spectrometer(devices[0])
spec.scans_to_average(10)
I get the following message
Traceback (most recent call last):
File "<ipython-input-10-e273bf1c09f5>", line 1, in <module>
runfile('C:/Users/mqbpwbe2/Dropbox/untitled0.py', wdir='C:/Users/mqbpwbe2/Dropbox')
File "C:\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 699, in runfile
execfile(filename, namespace)
File "C:\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 88, in execfile
exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)
File "C:/Users/mqbpwbe2/Dropbox/untitled0.py", line 13, in <module>
spec.scans_to_average(10)
File "C:\Anaconda3\lib\site-packages\seabreeze\spectrometers.py", line 188, in scans_to_average
lib.spectrum_processing_set_scans_to_average(self._dev, self._fidspp, scans_to_average) # Not implemented in pyseabreeze
File "seabreeze/cseabreeze/wrapper.pyx", line 642, in seabreeze.cseabreeze.wrapper.spectrum_processing_set_scans_to_average (./seabreeze/cseabreeze/wrapper.c:14669)
SeaBreezeError: b'Error: No such feature on device'
As I installed through Anaconda I think I should be using the cseabreeze wrapper not the pyseabreeze one.
Many thanks, Ben
from python-seabreeze.
Hi Ben,
that's not a Bug. The spectrum_processing feature is only available on Spark and STS spectrometers.
Best,
Andreas
from python-seabreeze.
Hi Andreas,
Thanks for your reply, I shall stick to my for loops in that case!
Cheers,
Ben
from python-seabreeze.
Hi,
we are using a newer QEPro in our lab, and it's supposed to support scan averaging.
If this is not OceanView faking the on-device averaging, would it be possible to also implement scan averaging for this spectrometer?
Best regards,
Alexander
from python-seabreeze.
Related Issues (20)
- UrlError when installing windows driver by os_setup HOT 4
- USB2000 must be read three times before getting intensities HOT 3
- C seabreeze doesn't report firmware version HOT 1
- Problem with set_integration_time, the spectrometer doesn't wait for spectrum acquisition. HOT 3
- Seabreeze and SR4 Spectrometers HOT 20
- Extract cseabreeze into its own module HOT 1
- Rewrite Transport to use bMaxPacketSize
- ADC1000 error with external interrupt HOT 10
- USB2000 Issue reading intensities HOT 1
- Edge Trigger Issue Continues HOT 3
- QEPro lower intensities compared with OceanView - "hidden" settings? HOT 1
- Flame-S in version 2.4.0 pyseabreeze and trigger mode HOT 2
- Overflow, still alive and well HOT 1
- Getting CPython errors when building from source HOT 1
- Install on raspberry pi HOT 5
- Basic SR2 support HOT 2
- Drivers Dont have valid signatures HOT 8
- Support for SR6 / HR6 HOT 5
- USB2000 and some Flame S error at initialization due to fpga firmware version register check HOT 4
- HDX spectrometer connected via USB errors after manually interrupting connection HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-seabreeze.