A visual explanation of the infrared spectrum
Install NodeJS. Install bower.
npm install .
bower installSource files are written in whitespace-picky preprocessed languages, and are configured to run continuously, watching for changes in src/ and output to dist/:
npm run jadefor HTML from Jadenpm run stylusfor CSS from Stylusnpm run coffeefor Javascript from Coffeescript
For your hacking convenience, all of these are wrapped together with a live-updating server:
npm run liveThis will generate an .html file for each of the explanations, which has all self-contained dependencies.
A small python wrapper around the built javascript/css allows all the explanations to be embedded inside an IPython Notebook, generally one per cell.
from irprimer import Temperatures, Planck
Temperatures()
Planck()Additionally provided is a function for generating a self-contained Reveal.js slideshow. Put this in a skip slide at the end.
from irprimer import slides
slides()Issues and pull requests welcome, especially for improvement of the science and teach-ability of the content!
IR Primer is published under the BSD 3-clause license. Bower dependencies are licensed respectively.