Modernizing Legacy Scientific Code: A Fortran-to-Python Translation of EXAFS Self-Absorption Correction Algorithms

This research focuses on translating a critical scientific code from Fortran to Python to improve accessibility, maintainability, and future development in Extended X-ray Absorption Fine Structure (EXAFS) data analysis. The original code performs self-absorption correction as part of the Real Space X-ray Absorption Package (RSXAP), a suite of tools known for its rigorous treatment of Extended X-ray Absorption Fine Structure (EXAFS) and XANES data. The legacy code, written in a mix of Fortran 77 and Fortran 90, posed challenges for integration with modern data science tools and workflows. A complete manual translation was undertaken, with careful validation to ensure the Python version reproduced results consistent with the original implementation. This translation modernizes an essential step in EXAFS analysis, enabling wider use by researchers without Fortran expertise and opening the door for future enhancements such as interactive visualization, automated fitting pipelines, and integration with modern machine learning libraries. This research demonstrates the importance of software modernization in scientific research and contributes to the long-term sustainability of specialized computational methods in physics, chemistry, materials science, and many other fields.

Publication Details

Journal
Scholar Works (Boise State University)
Published
2025-04-15
Primary Topic
X-ray Spectroscopy and Fluorescence Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Modernizing Legacy Scientific Code: A Fortran-to-Python Translation of EXAFS Self-Absorption Correction Algorithms

Scholar Works (Boise State University)
X-ray Spectroscopy and Fluorescence Analysis
article

Modernizing Legacy Scientific Code: A Fortran-to-Python Translation of EXAFS Self-Absorption Correction Algorithms

article en

Abstract

This research focuses on translating a critical scientific code from Fortran to Python to improve accessibility, maintainability, and future development in Extended X-ray Absorption Fine Structure (EXAFS) data analysis. The original code performs self-absorption correction as part of the Real Space X-ray Absorption Package (RSXAP), a suite of tools known for its rigorous treatment of Extended X-ray Absorption Fine Structure (EXAFS) and XANES data. The legacy code, written in a mix of Fortran 77 and Fortran 90, posed challenges for integration with modern data science tools and workflows. A complete manual translation was undertaken, with careful validation to ensure the Python version reproduced results consistent with the original implementation. This translation modernizes an essential step in EXAFS analysis, enabling wider use by researchers without Fortran expertise and opening the door for future enhancements such as interactive visualization, automated fitting pipelines, and integration with modern machine learning libraries. This research demonstrates the importance of software modernization in scientific research and contributes to the long-term sustainability of specialized computational methods in physics, chemistry, materials science, and many other fields.

Scholar Works (Boise State University)
Industry, innovation and infrastructure
Openalex Percentile: Top 37%
X-ray Spectroscopy and Fluorescence Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Modernizing Legacy Scientific Code: A Fortran-to-Python Translation of EXAFS Self-Absorption Correction Algorithms · Scholar Works (Boise State University) (2025) | TGRS Research Map | TGRS