Code to reproduce analysis and figures of DeCarlo et al. (2017) in Biogeosciences Discussions (open-access discussion article undergoing peer review). The scripts included here create a calibration between Raman peak widths and aragonite saturation states for abiogenic aragonite samples, and then use that calibration to derive saturation states for corals. The applications include the international standard JCp-1, experimentally cultured juvenile Acropora, and a wild Porites time series.