Rapoc: the Rosseland and Planck opacity converter. A user-friendly and fast opacity program for Python
<p>We present a novel code that converts the widely-used wavelength-dependent opacities of gaseous species into Rosseland and Planck mean opacities (RPMs). RAPOC (Rosseland and Planck Opacity Converter) is a straightforward and efficient Python code that makes use of ExoMol and DACE data as well as any other user-defined data, provided that it is within the correct format. Furthermore, RAPOC has the useful ability of rapidly interpolating between discrete data points, therefore allowing for a complete incorporation in atmospheric models.&#160;</p> <p>Whereas RPMs should not be used as a replacement for more rigorous opacity analyses, they have certain benefits. For example, RPMs&#160; allow&#160; one&#160; to&#160; use&#160; Grey&#160; or&#160; semi-Grey&#160; models&#160; when&#160; analysing&#160; gaseous environments;&#160; which&#160; are&#160; simpler,&#160; have&#160; exact&#160; solutions,&#160; and&#160; can&#160; be&#160; used&#160; as benchmarks&#160; for&#160; more&#160; rigorous&#160; approaches. By incorporating the pressure and temperature dependence of RPMs, RAPOC provides a more complex treatment of the mean opacities than what is sometimes used within the literature, notably assuming constant values or adopting simple analytic formulations.&#160; We report&#160; examples&#160; of RAPOC opacities&#160; that&#160; are&#160; incorporated&#160; into&#160; a&#160; semi-Grey&#160; model&#160; to produce the temperature profile of HD 209458 b that is then compared to the realisations of the more rigorous POSEIDON code.</p> <p>The RAPOC code will provide the exoplanetary community a new tool for atmospheric modelling. For a quick installation in one's machinery, the &#8220;pip install rapoc&#8221; command can be used.</p>