Interactive soil FTIR absorbance simulator with sliders for clays, water (interlayer & adsorbed), organic matter, nitrate, and bound orthophosphate — initialized with data from organic farms in the SUNY Oneonta area. Runs as a single offline HTML file (index.html).
- Component sliders: montmorillonite, kaolinite, chlorite, illite
- Water: interlayer (~1630 cm⁻¹), adsorbed (~3400 cm⁻¹)
- Organics: 1715, 1620, 1515, 1420, 1230, 1030 cm⁻¹
- Nitrate: 1384, 824 cm⁻¹; Bound orthophosphate: 1085, 1040, 980, 565 cm⁻¹
- Baseline offset & slope; show/hide components; normalize; reset
- Clean SVG chart (no external libraries), works fully offline
- Download
index.htmlfrom this repository. - Double‑click to open it in your browser (Chrome/Edge/Firefox). No build step, no dependencies.
Model initialized using FTIR data sampled from organic farms in the SUNY Oneonta area.
- Each component is modeled as a sum of Gaussian or Lorentzian peaks at characteristic wavenumbers.
- The baseline is a linear function (offset + slope) added to the summed components.
- The Total trace equals baseline + all component traces, with an option to normalize to a maximum of 1.0.
├── index.html # Full simulator (HTML, CSS, JS in one file)
└── README.md # This file
You may add a LICENSE file (MIT recommended for open educational use).
MIT — see LICENSE in this repository (or choose a different license to suit your needs).
- Organic farms in the SUNY Oneonta area (source region for initial spectra)
- Community users who provide feedback and peak adjustments
Found a bug or want a new feature (e.g., export CSV/PNG, toggle “Total (no baseline)”, or additional minerals)?
- Open an Issue describing the change.
- Or fork and submit a Pull Request.
ftir infrared spectroscopy soil geochemistry agronomy oneonta organic-farming web-simulator education