Question: Does anyone know what image processing spectral workbench does to find intensity at wavelength/ where to find the coding for that?

Reallygeek is asking a question about spectrometry
Follow this topic

by Reallygeek | November 29, 2017 03:08 | #15257


I have the github file downloaded and got all that code on a javascript editing program. I'm hoping to take a cvs file and export that into an arduino so I can make a close-looping fluid monitoring system. Anyone familiar with the spectral workbench code?



10 Comments


Do you know what the variable is that stores the [wavelength, intensity] data?

Is this a question? Click here to post it to the Questions page.


at what point in the code? in spectrum? How are you going to use it? I'm happy to help!

Is this a question? Click here to post it to the Questions page.


I'm not sure, I'm trying to make a robotic bioreactor that uses spectrometry to monitor the chemical conditions; I'm trying to use an API to extract data from the "https://spectralworkbench.org/capture" page that I can have the arduino reference to adjust nutrient/ waste levels.


Oh, cool! Please check out https://publiclab.org/wiki/raspberry-pi-spectrometer and have you considered using the JavaScript version on a Raspberry Pi?

Is this a question? Click here to post it to the Questions page.


I haven't considered getting a Raspberry Pi yet, since I've never used one before/ don't own one now. I did try running the JavaScript version on Node.js, but ran into difficulties installing the programs. So I thought it would be simpler to use the webpage itself to get data.


OK, so you can open a JS console in https://spectralworkbench.org/capture and type $W to access the capture.js script's functions. There are several, raw data is $W.data, and there are others as well, like getRow(). It's a bit dense but should work!


Reply to this comment...


I don't understand. Just (r+g+b)/3?

Is this a question? Click here to post it to the Questions page.

yep - it averages the three channels!


Reply to this comment...


Log in to comment