Literate Earth Science
Write a model the way you would write the paper: equations, units, grids and tests, in Typst or Markdown prose. EarthSciML checks the document, compiles it to one portable .esm file, and simulates it from Julia, Python and Rust, or in this page.
Loading…
From prose to simulation
A model is a document, not a program. The same file is the methods section, the test suite and the simulation input.
Write
Declare variables with units where you introduce them, pick a grid and discretization rules, and write equations in LaTeX or Typst math.
Check
Every name resolved, every unit balanced, every inline test run, giving a validated
.esmfile.Run
Couple it with catalog components and simulate it from Julia, Python or Rust, or read and transform it from TypeScript and Go.
The projects
Six libraries share one format. Everything builds on EarthSciAST.
-
EarthSciAST
The EarthSciML Abstract Syntax Tree format: schema, operators, coupling, and five language bindings.
-
EarthSciIO
Data-provider library: URL download, a shared content-addressed cache, and native-grid readers for Python, Julia and Rust.
-
EarthSciIntegrator
One specification for integrating EarthSciML models — explicit, implicit and IMEX methods, operator splitting, a planner, and discrete adjoints — implemented natively in Julia and Rust and checked against each other.
-
EarthSciASTDiff
Analytical sparse Jacobians for EarthSciAST (.esm) models by symbolic differentiation of the expression AST.
-
EarthSciDiscretizations
The ESM discretization standard library: grids, finite-difference/finite-volume rewrite rules, regridding and reprojection expressions, with cross-language conformance goldens.
-
EarthSciModels
Browsable catalog of .esm Earth-science model components.
For modelers
Start from a working model and change it.
For developers
Read, transform and run .esm from your own code.