All Macros

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
test test alvaro283 https://github.co...
smooth_save smooth_save robotp https://spectralw...
java java archa https://publiclab...
wavelength wavelength thiencang http://spectralwo...
roni10minutes segoly rsegoly https://gist.gith...
ronitest1 test1 rsegoly https://gist.gith...
roni-timer test rsegoly https://gist.gith...
003 003 rsegoly https://github.co...
plotting yes rsegoly https://github.co...
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...
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...
attempt_auto_calib Test code for auto calib sreyanth 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 Calculate center of area for a graph -- draws a vertical line which bisects the area of the graph equally 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...
equalize-height equalizes the height of the graphs of any spectra displayed in SpectralWorkbench.org warren https://gist.gith...
33333 3333 traeuma https://github.co...
autosize_y A macro to set the y-axis scale to auto-size warren https://gist.gith...
equalize_area equalizes the area under the curve of any spectra displayed warren https://gist.gith...
test1 test1 samnb https://github.co...
Fastie-emission-absorption-curve Implementation of Fastie's macro for identifying emission or absorption lines. see: https://github.com/jywarren/spectral-workbench/issues/184 nathanathan 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...
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...
peak_detection Peak detection by Peter Davidowicz, additions by jywarren 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...
set_graph_height Sets the graph maximum y-axis height warren https://gist.gith...
CalibrateTemplate A template for linear calibration. Enter the spectrum id, the pixel distance to each peak (zero left), and the known wavelengths for the peaks. Wavelengths for two known peaks for CFL are entered. cfastie https://gist.gith...
hello-world It says "hello world"! warren http://unterbahn.com