Spectral Workbench
question:spectral-workbench

Support Public Lab Today! For the last twelve years, Public Lab has hosted SpectralWorkbench.org so that people everywhere can calibrate and analyze their spectra. Unfortunately, current circumstances have led us to scale back and take certain services offline. SpectralWorkbench.org will go offline as of August 15, 2022. The SpectralWorkbench platform runs on a combination of volunteer and paid labor by the many people that build, maintain, and operate it via Public Lab. This is an effective combination thanks to the culture of Public Lab's Coding Community. Public Lab's web ecosystem, including PublicLab.org, MapKnitter.org, SpectralWorkbench.org, Infragram.org and associated projects, takes 20 hours a week from three Code Coordinators and our sysadmin. While cost effective, it is not free. Web hosting and server costs for SpectralWorkbench are approximately $1000 per month. We are doing our best to sustain programming and support for our community, and we need your help. Thank you for being part of our community. We can't wait to be back online with you. Support Public Lab by making a donation today. ###What is Spectral Workbench? [SpectralWorkbench.org](https://spectralworkbench.org) is a web based application to collect, archive, share, and analyze spectral data, for Public Lab [DIY spectrometers](/wiki/spectrometer) and other spectrometers. With it, you can: * connect your USB [Desktop Spectrometry Kit](/wiki/desktop-spectrometry-kit-3-0) * scan and save samples * wavelength calibrate your spectrometer * plot light intensity as a function of wavelength (average digital consumer cameras have a range of 400 to 700 nm) * create sets of multiple spectra to visually compare and analyze scans * download CSV data for offline analysis * view others' data and discuss * find similar data in [a database of over 60k spectra](https://spectralworkbench.org/stats) No download is required -- just a web connection. The Chrome browser works best, but most standard-compliant browsers are supported. It is possible to use from an Android smartphone, preferably with the Firefox browser which allows you to specify which camera to look through. **** ###Contents * [Learn to use the software](/wiki/spectral-workbench-usage) * Learn about the [available tools](/wiki/spectral-workbench-tools) * Learn about [Calibration](/wiki/spectral-workbench-calibration) * Learn about the [Snapshots system](/wiki/spectral-workbench-snapshots) * Learn about the [Operations system](/wiki/spectral-workbench-operations) * [Spectrometry in general](/wiki/spectrometer) * [Applications & uses](/wiki/spectral-analysis) * [Construction](/wiki/spectrometer-construction) * [Desktop Spectrometry Kit](/wiki/desktop-spectrometry-kit-3-0) * [Foldable Mini-Spectrometer](/wiki/foldable-spec) * [Troubleshooting](/wiki/spectral-workbench-help) * [API Docs](/wiki/spectral-workbench-api) **** ###Intro video ## Browsers Spectral Workbench should work on Chrome (in Windows/Mac/Linux/Android, but not iOS), Firefox (Windows/Mac/Linux/Android), or Opera (Android). It may work on other browsers and we are working on expanding coverage; read more on this page: https://github.com/publiclab/spectral-workbench.js/issues/87 **** ## Development Do you code? The codebase of Spectral Workbench is available at https://github.com/publiclab/spectral-workbench. The server is written in Ruby on Rails, with a lot of client side code in JavaScript. You can read about [the JavaScript API here](/wiki/spectral-workbench-api). We really need more developers, so if you are interested, please get involved! A great place to start is the "plots-dev" mailing list for software developers: http://publiclab.org/wiki/developers **** ## FAQ We're collecting and working our way through a range of questions about Spectral Workbench -- if you can contribute your own questions, or answer others', please do! [questions:spectral-workbench] **** ## Troubleshooting If you feel you've encountered a bug with the software -- very possible! Please look through existing issues listed here, file a new one if you don't see something similar, and help to add any observations to existing issues shown here. Thanks for helping improve this open source software! [questions:spectral-workbench-issues] ...


Author Comment Last activity Moderation
storacremu "Thanks for your reply! When I click "login" there is no space to enter a password. https://i.imgur.com/xgiNLOq.jpg Regards, -C " | Read more » almost 7 years ago
Dr_Z "So I take it the percentages that come from scrolling along the graph are the ratio of the data pixel values to the max of 255, correct? " | Read more » almost 7 years ago
warren "They are the RGB image data pixel values, from 0-255. And note that due to image processing, noise, etc, this may not directly correspond to absorb..." | Read more » almost 7 years ago
warren "Ah, there is! setInterval -- but the getCrossSection function is already run using this technique. Can you share a link to your code so I can help ..." | Read more » almost 7 years ago
warren "Hello! What do you see when you try to enter a password -- can you share a screenshot? " | Read more » almost 7 years ago
Reallygeek "Is there not a way to make chrome console repeat a command over a period of time? " | Read more » almost 7 years ago
warren "Oh sorry, you have to redefine the function with a new one of your own, that can be a revision of the existing one, and it'll get called each frame..." | Read more » about 7 years ago
Reallygeek "So when I typed "$W.getCrossSection()" into the console I got: TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided..." | Read more » about 7 years ago
warren "Hi, I believe you should be able to override the $W.getCrossSection() function here: https://github.com/publiclab/spectral-workbench/blob/master/ap..." | Read more » about 7 years ago
warren "We're also now collecting more info on this page: https://publiclab.org/w/raspberry-pi-spectrometer " | Read more » about 7 years ago
warren "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 severa..." | Read more » about 7 years ago
Reallygeek "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 N..." | Read more » about 7 years ago
warren "Oh, cool! Please check out https://publiclab.org/wiki/raspberry-pi-spectrometer and have you considered using the JavaScript version on a Raspberry..." | Read more » about 7 years ago
Reallygeek "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 extrac..." | Read more » about 7 years ago
quencher "Hi Warren, we're testing the flow of multiple fluids using dye solutions. We're total amateurs. Any ideas or references you could point us at? Char..." | Read more » about 7 years ago
warren "at what point in the code? in spectrum? How are you going to use it? I'm happy to help! " | Read more » about 7 years ago
warren "yep - it averages the three channels! " | Read more » about 7 years ago
warren "There've been a few attempts to make a telescope adapter for different spectrometry kits. Sounds like a good thing to 3d print! " | Read more » about 7 years ago
warren "Cool! what are you interested in doing with it? I'm the lead developer, very happy to work with you! " | Read more » about 7 years ago
quencher "Thank you, that's exactly what I need! " | Read more » about 7 years ago
warren "Hi! We're on v2.1.x -- we haven't released a new version but the latest main branch here is what's running on SpectralWorkbench.org: https://githu..." | Read more » about 7 years ago
Reallygeek "Do you know what the variable is that stores the [wavelength, intensity] data? " | Read more » about 7 years ago
Doomik "I don't understand. Just (r+g+b)/3? " | Read more » about 7 years ago
warren "Good luck! And please do post it as an activity once you do - folks would love to see this step by step with some photos and such! " | Read more » about 7 years ago