English

GRAIL: AI translation for scientists application workflow on satellite data

Artificial Intelligence 2026-05-26 v1

Abstract

Domain scientists increasingly develop Python scripts to analyze satellite imagery but they lack scalability to large-scale data. This paper demonstrates GRAIL, an agentic translation system that converts Python geospatial workflows into executable Spark-based programs without requiring scientists to learn a new framework. Rather than fine-tuning a specialized LLM model, GRAIL adapts RDPro, a Scala library for satellite data analysis, to make it LLM-ready using structured documentation, API alias functions, and repair-oriented error logs. Translation is structured as a LangGraph pipeline that decomposes code generation into explicit sections with guided inputs and outputs, enabling targeted repair without regenerating the full program. We demonstrate GRAIL on real-world geospatial workflows and showcase the correctness and scalability of the translated code.

Keywords

Cite

@article{arxiv.2605.24784,
  title  = {GRAIL: AI translation for scientists application workflow on satellite data},
  author = {Zhuocheng Shang and Ahmed Eldawy},
  journal= {arXiv preprint arXiv:2605.24784},
  year   = {2026}
}
R2 v1 2026-07-22T07:30:27.085Z