{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/cortecs-a-python-package-for-compressing","title":"cortecs: A Python package for compressing opacities","arxiv_id":"2402.07047","date":"2024-02-10","proceeding":null,"authors":["Arjun B. Savel","Megan Bedell","Eliza M. -R. Kempton"],"abstract":"The absorption and emission of light by exoplanet atmospheres encode details of atmospheric composition, temperature, and dynamics. Fundamentally, simulating these processes requires detailed knowledge of the opacity of gases within an atmosphere. When modeling broad wavelength ranges at high resolution, such opacity data, for even a single gas, can take up multiple gigabytes of system random-access memory (RAM). This aspect can be a limiting factor when considering the number of gases to include in a simulation, the sampling strategy used for inference, or even the architecture of the system used for calculations. Here, we present cortecs, a Python tool for compressing opacity data. cortecs provides flexible methods for fitting the temperature, pressure, and wavelength dependencies of opacity data and for evaluating the opacity with accelerated, GPU-friendly methods. The package is actively developed on GitHub (https://github.com/arjunsavel/cortecs), and it is available for download with pip and conda.","url_abs":"https://arxiv.org/abs/2402.07047v2","url_pdf":"https://arxiv.org/pdf/2402.07047v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"cortecs-a-python-package-for-compressing","repo_url":"https://github.com/arjunsavel/cortecs","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}