{"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/magritte-a-modern-software-library-for","title":"Magritte, a modern software library for spectral line radiative transfer","arxiv_id":"2411.03040","date":"2024-11-05","proceeding":null,"authors":["Thomas Ceulemans","Frederik De Ceuster","Leen Decin","Jeremy Yates"],"abstract":"Spectral line observations are an indispensable tool to remotely probe the physical and chemical conditions throughout the universe. Modelling their behaviour is a computational challenge that requires dedicated software. In this paper, we present the first long-term stable release of Magritte, an open-source software library for line radiative transfer. First, we establish its necessity with two applications. Then, we introduce the overall design strategy and the application/programmer interface (API). Finally, we present three key improvements over previous versions: (1) an improved re-meshing algorithm to efficiently coarsen the spatial discretisation of a model; (2) a variation on Ng-acceleration, a popular acceleration-of-convergence method for non-LTE line transfer; and, (3) a semi-analytic approximation for line optical depths in the presence of large velocity gradients.","url_abs":"https://arxiv.org/abs/2411.03040v1","url_pdf":"https://arxiv.org/pdf/2411.03040v1.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":"magritte-a-modern-software-library-for","repo_url":"https://github.com/Magritte-code/Magritte","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"magritte-a-modern-software-library-for","repo_url":"https://github.com/Magritte-code/Magritte_Paper_Astronomy_Computing","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"none","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}