Macros by warren

Use the Spectral Workbench API to create, save, and share macros to manipulate your spectra and add new features to Spectral Workbench.

New macro

Title Description Author Link Actions
hello-world It says "hello world"! warren http://unterbahn.com
set_graph_height Sets the graph maximum y-axis height warren https://gist.gith...
smooth_nosave Prompts you for a pixel row and # of lines to smooth, and averages them. Does not yet save. warren https://gist.gith...
peak_detection Peak detection by Peter Davidowicz, additions by jywarren warren https://gist.gith...
absorption_detection Valley detection, based on peak detection macro by Peter Davidowicz, adapted by jywarren (https://gist.github.com/jywarren/6020668) warren https://gist.gith...
linear_calibration A macro for linear calibration based on Chris Fastie's: http://spectralworkbench.org/macro/cfastie/CalibrateTemplate. Enter the pixel distance to each peak (zero left), and the known wavelengths for the 2 peaks. warren https://gist.gith...
equalize_area equalizes the area under the curve of any spectra displayed warren https://gist.gith...
autosize_y A macro to set the y-axis scale to auto-size warren https://gist.gith...
equalize-height equalizes the height of the graphs of any spectra displayed in SpectralWorkbench.org warren https://gist.gith...
smooth_save Smooths in 10 rows of data below your current sample row, and averages them. Saves! No ability yet to choose how many rows to smooth, but not hard to add. warren https://gist.gith...
centroidish Calculate center of area for a graph -- draws a vertical line which bisects the area of the graph equally warren https://gist.gith...
subset Clip off the top and bottom 2% by area from each end of the data (averaging for multiple graphs) for a better use of graph real-estate on SpectralWorkbench.org warren https://gist.gith...
centroidish_continuous continuous version of https://gist.github.com/jywarren/3791c67384c88d53f155 which draws a vertical line which bisects the area of the graph equally, on SpectralWorkbench.org -- for capture mode warren https://gist.gith...
centroidish_cutoff Calculate center of area for a graph -- draws a vertical line which bisects the area of the graph equally, on SpectralWorkbench.org. This variant only counts data between 410-700nm. warren https://gist.gith...