This is a testing site only. See the live Public Lab site here »

# Wavelength range limiting in Spectral Workbench

by warren | 06 Aug 19:39

Just a quick announce -- after the big revision of Spectral Workbench went live last week, I also posted a few new features, including one we'd discussed on the mailing list -- range limiting.

Now, you can tag spectra that you own with a tag in the format range:min-max -- as in, range:400-800 -- to highlight a region you want to use in your analysis. For example, if your device has wide swaths of unusable range above and below your spectrum, as in this spectrum, you can have only a narrower band shown in sets.

I haven't yet figured out if we're going to "mute" data outside that range when viewing just one spectrum, but it seems likely -- we'll show a notice too saying "this spectrum is being displayed only between 400-800 nanometers. View entire dataset" or something.

This is also important as any "equalizing" or other processing of the set will run only on the range of spectrum data displayed, so for example in the Oil Testing Kit procedure, we'll be able to set the range to not include the laser peaks, making equalizing height or area more consistent.

Once you've added a tag, any sets displaying the spectrum with the new 2.0 sets display, to be made default soon, will only show this range. See, for example, https://spectralworkbench.org/sets/show2/2446

As compared to a screenshot of the previous, unclipped set:

In other news, I've done a very very preliminary backwards-compatible port of the Macros system to the new 2.0 graphing system, which means we can run a somewhat buggy "equalize height" script, resulting in this case in the following (screenshot, as the macro doesn't currently save the equalized height):

I'm not totally sure why the dips to zero occur, but I'll figure it out soon.