Scientific Computing and AI for Astronomy
Scientific computing and artificial intelligence (AI) are increasingly important in modern astrophysics, enabling the analysis of complex astronomical observations, the development of numerical models, and the exploration of large and heterogeneous scientific datasets.
My research combines computational astrophysics, scientific software development, parallel computing, and artificial intelligence to advance astronomical data analysis and physical modeling. I am particularly interested in the development of computational tools for astrophysical spectroscopy, the modernization of established scientific codes, and the integration of AI methodologies into astronomical research workflows.
My research encompasses three interconnected directions: open-source scientific software for astrophysical modeling and spectroscopic analysis, astronomical AI agents for natural-language data discovery, and systematic benchmarking and validation of scientific software and AI-assisted workflows.
The broader objective of this research is to improve the accessibility, computational efficiency, scientific reliability, and reproducibility of astronomical research through the integration of physical models, advanced computational methods, and artificial intelligence.
Scientific Software
The interpretation of astronomical observations relies on computational tools that incorporate atomic physics, radiative processes, numerical algorithms, and statistical methods. The development of reliable and efficient scientific software is therefore essential for investigating the physical properties of astrophysical systems and supporting reproducible scientific research.
My research involves the development of open-source scientific software for photoionization modeling, atomic spectroscopy, plasma diagnostics, chemical abundance analysis, and statistical inference. I employ Python, C++, IDL, and parallel computing methodologies to develop computational tools for observational and theoretical astrophysics.
My earlier software development includes MPI_XSTAR, a C++ implementation of the Message Passing Interface (MPI) for parallel execution of the XSTAR photoionization code. This framework facilitates the efficient generation of large grids of photoionization models and synthetic spectral tables for X-ray spectral analysis.
I have also developed the AtomNeb atomic database and the proEQUIB and pyEQUIB software packages for analyzing emission-line spectra of ionized astrophysical environments. These tools provide access to atomic datasets and computational algorithms for determining electron temperatures, electron densities, interstellar extinction, and ionic and elemental abundances.
My recent research includes xstar-tools, an AI-assisted modernization of the established FORTRAN XSTAR photoionization code. This project incorporates a Python implementation, an independent C++ computational engine, Python interfaces, and native utilities for generating XSPEC spectral tables. The development emphasizes scientific fidelity, computational performance, memory efficiency, cross-platform portability, and reproducibility.

Another direction of my software development involves chianti-tools, a computational framework for working with CHIANTI atomic data and astrophysical plasma spectroscopy. This research complements my existing software for atomic data analysis and photoionization modeling.
I also investigate the use of large language models (LLMs) for scientific software development, including legacy code modernization, algorithm implementation, performance optimization, automated testing, and documentation. These AI-assisted methodologies are combined with human scientific oversight and rigorous numerical validation to preserve the physical accuracy of computational models.
Through these activities, I aim to develop accessible, efficient, and scientifically reliable computational tools for interpreting astronomical spectra and modeling astrophysical plasmas.
Selected Software Projects
- xstar-tools — Python/C++ tools for XSTAR photoionization calculations and XSPEC workflows. Documentation.
- chianti-tools — Python/C++/Fortran tools for CHIANTI atomic data and plasma spectroscopy.
- MPI_XSTAR — MPI-based parallel execution of XSTAR calculations. Documentation.
- AtomNeb — atomic datasets for ionized nebulae. Python repository; IDL repository.
- pyEQUIB — Python package for plasma diagnostics and abundance analysis.
- proEQUIB — IDL/GDL library for plasma diagnostics and abundance analysis.
- slmpi_emcee — MPI-based parallel MCMC sampling.
Selected Publications
- Danehkar, A. (2020). pyEQUIB Python Package, an addendum to proEQUIB: IDL Library for Plasma Diagnostics and Abundance Analysis. Journal of Open Source Software, 5, 2798.
- Danehkar, A. (2020). AtomNeb Python Package, an addendum to AtomNeb: IDL Library for Atomic Data of Ionized Nebulae. Journal of Open Source Software, 5, 2797.
- Danehkar, A. (2019). AtomNeb: IDL Library for Atomic Data of Ionized Nebulae. Journal of Open Source Software, 4, 898.
- Danehkar, A. (2018). proEQUIB: IDL Library for Plasma Diagnostics and Abundance Analysis. Journal of Open Source Software, 3, 899.
- Danehkar, A., Nowak, M. A., Lee, J. C., & Smith, R. K. (2018). MPI_XSTAR: MPI-based Parallelization of the XSTAR Photoionization Program. Publications of the Astronomical Society of the Pacific, 130, 024501.
Recent Conference Contribution
- xstar-tools: AI-Assisted Modernization of the XSTAR Photoionization Code. ADASS XXXVI, Perth, Australia, 2 November 2026. Poster and short presentation; slides and poster available on the conference page.
Astronomical AI Agents
Modern astronomical research increasingly relies on large and heterogeneous datasets distributed across numerous observational archives, astronomical catalogs, and scientific literature databases. Discovering relevant observations often requires detailed knowledge of archive interfaces, astronomical object identifiers, coordinate systems, instrumental configurations, and observational metadata.
My research investigates the development of domain-specific AI agents that integrate natural-language reasoning with astronomical data services and scientific software. These agents employ large language models (LLMs), structured tool interfaces, and domain-specific instructions to translate scientific questions into executable astronomical queries.
As part of my collaborative research within NASA IMPACT’s Accelerated Knowledge Discovery (AKD) ecosystem, I contribute to the development and evaluation of AstroAKD, an astronomical data-search agent designed to facilitate natural-language exploration of astronomical archives.
AstroAKD employs the Model Context Protocol (MCP) to connect large language models with astronomical data services through an Astroquery-based MCP server. This architecture enables AI agents to discover available scientific tools, resolve astronomical object identifiers, interpret observational constraints, construct archive queries, and retrieve relevant observational metadata and candidate datasets.
Supported astronomical resources include SIMBAD, the Astrophysics Data System (ADS), the Mikulski Archive for Space Telescopes (MAST), the High Energy Astrophysics Science Archive Research Center (HEASARC), the Infrared Science Archive (IRSA), the NASA/IPAC Extragalactic Database (NED), Gaia, VizieR, and Virtual Observatory services.

My research also explores the integration of astronomical domain knowledge into AI agent instructions, the coordination of multi-archive queries, and the handling of ambiguous requests, incomplete information, and unavailable data services. Particular emphasis is placed on source provenance, transparency, traceability, and the scientific interpretation of retrieved information.
The broader objective of this research is to develop reliable and accessible AI-assisted astronomical research environments that facilitate scientific data discovery while preserving the ability of researchers to inspect, interpret, and independently verify the underlying results.
Associated Projects and Resources
- AstroAKD astronomical data-search agent — public agent interface.
- Astroquery MCP server — astronomical data-access backend.
- AKD Agent Co-Design Studio — collaborative agent development environment.
- AstroAKD-Bench (NASA IMPACT) — benchmark framework.
Recent Conference Contribution
- AstroAKD: An MCP-Based Agent for Natural-Language Search of Astronomical Archives. ADASS XXXVI, Perth, Australia, 3 November 2026. Oral presentation; slides available on the conference page.
Scientific Benchmarking and Validation
The increasing adoption of advanced computational methods and artificial intelligence in astrophysics requires systematic approaches for evaluating scientific accuracy, numerical consistency, computational performance, and reproducibility. Reliable scientific software and AI-assisted workflows must be assessed against independently established references and transparent evaluation criteria.
My research investigates benchmarking and validation methodologies for both conventional scientific computing and AI-assisted astronomical research. These methodologies include numerical regression testing, comparisons with established scientific codes, computational performance measurements, structured evaluation datasets, and systematic analysis of scientific outputs.
In the modernization of the XSTAR photoionization code, I employ extensive numerical comparisons with the established FORTRAN implementation to evaluate the scientific fidelity of newly developed Python and C++ implementations. These comparisons examine atomic level populations, ionization structures, heating and cooling rates, thermal equilibrium, convergence behavior, radiative transfer, and predicted emission and absorption spectra.
I also investigate computational performance through measurements of execution time, memory consumption, parallel computing efficiency, and cross-platform consistency. These investigations aim to improve computational efficiency while preserving the physical accuracy and numerical reliability of astrophysical models.
For astronomical artificial intelligence, I have developed AstroAKD-Bench, a reproducible benchmarking framework for evaluating large language model agents performing astronomical data-search tasks. The framework generates astronomy-specific questions, retrieves independent reference answers from astronomical archives, executes controlled agent comparisons, and records tool calls and scientific outputs for subsequent evaluation.
The public astroakd_100_v2 example compares three configurations using the same underlying LLM and baseline execution limits: MCP only (A), MCP with AstroAKD domain instructions (B), and web search only (C). Of 100 questions, 92 have complete usable reference evidence; eight literature-driven questions are excluded pending verification. Strict automated reference agreement is 87/92, 88/92, and 13/92, respectively.

An important component of this research is the distinction between automated agreement with reference data and independently verified scientific accuracy. The single-question difference between A and B does not establish an advantage from the specialist instructions. By preserving structured datasets, reference queries, execution traces, and evaluation results, the framework facilitates transparent and repeatable assessment of AI-assisted astronomical workflows.
These investigations aim to establish rigorous validation methodologies for AI-enabled scientific computing, ensuring that improvements in computational efficiency and automation are accompanied by appropriate scientific verification, transparency, and reproducibility.
Benchmark Resources
- AstroAKD-Bench repository; documentation.
- Public example dataset, scoring summaries and figures.
- xstar-tools scientific qualification baseline.