Support Public Lab's mission to provide this platform freely to the whole world! Join our Software Stewards with a $5/month donation.

Uploaded on January 08, 2013 17:38 UTC

Red tube on neon sign. Homemade PLOTS foldup, iPhone 4S, ProCamera, 1/15 sec, f/2.4, ISO 800, DigitalZoomRatio - 4.23 x FocalLengthIn35mmFilm - 35 mm.

This all-red image confused the algorithm that auto-detects the red and blue ends of the spectrum. Jeff added a feature to manually flip just the image 180°....

I used this macro and the macro feature to calibrate this spectrum:
setup: function() { // code to run on startup $W.calibrate(2740,763,614.3,1493,671.7) }, draw: function() { // code to run every frame }

Update: Tried to recalibrate with: $W.calibrate(2740,762,616.4,1341,659.9) but the fit was poor, so returned to original.

_____ Learn more about this spectrum here:


Tags: Loading...

Log in to use these tools.


Fork this spectrum and work on a copy

Comparison & Sets


Find similar

Data extraction

Set new cross-section

Flip image horizontally

Capture using this calibration

Use legacy 1.0 interface

Want a tool that's not listed here? Add a request to the Wishlist, or learn how to write your own tools.

Operation Date Description

Operations enable reversible modification of data -- they act like filters which process the data. The graph you see above represents the data after these operations have been run. Delete them to undo their effects, or to apply them in a new order.

  • The thumbtack symbol indicates that data has been saved in a snapshot upon running that operation.
  • The symbol indicates that the operation's data snapshot is being referred to by another operation. Click it to learn more.
  • Operations with a #000-style suffix, like subtract:3243#2414 are referring to a specific snapshot (in this example, #2414) of another spectrum. Click to learn more.

These spectra are being temporarily displayed for comparison; Clear all

Title Author Tools

Save these as a set

over 9 years ago, warren wrote:

There's not currently an easy way to use macros while on the Analyze page, i.e. with an already-existing spectrum. We should add that. I guess macros should then be marked as "for use with existing data" or "for use at capture time"...

over 9 years ago, cfastie wrote:

I used the brand new "Macro/scripting" feature under "More tools" to run the macro above to calibrate this spectrum. The peaks are easily recognizable as neon, so I looked up the wavelengths of the 614.3 nm and 671.7 nm peaks, and used Photoshop to learn how many pixels from the left edge these peaks were in the image. Now we can calibrate any known spectrum on any two peaks, not just CFL on those two peaks. This is going to be fun.

over 9 years ago, warren wrote:

Hey Chris - i just added email notifications for comments. Just wanted to say i "liked" your red spectrum here, it's great!

over 9 years ago, cfastie wrote:

Excellent! Just wait until you see what Ebert will do with a neon sign. So do you get now get a notification when I leave this comment?

over 9 years ago, warren wrote:

No, i have to add that next.

over 9 years ago, Non-Logged-In Jeff wrote:

OK, i believe all commenters (even unregistered ones) should now get notifications too. Would you care to test that?

over 9 years ago, Non too Fast wrote:

Hey Non, I got an email notification of your comment. So you might get a notification about this one. I am not logged in now.

Leave a comment

You must be logged in to comment.

ID Title Created Author
spectrum.addAndParseTag('smooth:10'); // Smooth the spectrum

// spectrum.addAndUploadTag('smooth:10'); // <== to save 

Run Save as Gist Read about the Spectral Workbench API