google-deepmind/graphcast

6,561 stars Python 10 components 1 connections

DeepMind's GraphCast and GenCast weather prediction models using graph neural networks

Weather data flows from regular lat-lon grids through icosahedral mesh representations where graph neural networks perform message passing, then back to grids for predictions

Under the hood, the system uses 3 feedback loops, 3 data pools, 4 control points to manage its runtime behavior.

A 10-component weather climate with 1 connections. 37 files analyzed. Data flows through 5 distinct pipeline stages.

How Data Flows Through the System

Weather data flows from regular lat-lon grids through icosahedral mesh representations where graph neural networks perform message passing, then back to grids for predictions

  1. Load ERA5 data — Load weather data from Zarr format with variables like temperature, humidity, wind on regular grids
  2. Grid to mesh projection — Project grid data to icosahedral mesh nodes using radius queries or triangle interpolation
  3. Graph message passing — Run deep graph neural networks on typed graphs with mesh connectivity
  4. Mesh to grid projection — Project mesh predictions back to regular lat-lon grid for output
  5. Autoregressive rollout — Feed predictions back as inputs for next timestep to generate longer forecasts

System Behavior

How the system operates at runtime — where data accumulates, what loops, what waits, and what controls what.

Data Pools

ERA5 Weather Dataset (file-store)
Historical weather reanalysis data used for training and evaluation
Mesh Connectivity Cache (in-memory)
Cached spatial connectivity indices between grid points and mesh vertices
Normalization Statistics (file-store)
Pre-computed mean and std statistics for normalizing weather variables

Feedback Loops

Delays

Control Points

Technology Stack

JAX (framework)
Core ML framework for neural networks and autodiff
Haiku (framework)
Neural network library built on JAX
XArray (library)
Labeled multi-dimensional arrays for weather data
NumPy (library)
Numerical computing and array operations
SciPy (library)
Scientific computing, spatial operations, sparse matrices
Trimesh (library)
Triangle mesh processing and geometry
Jraph (library)
Graph neural networks for JAX
Chex (testing)
Testing utilities and array assertions for JAX

Key Components

Explore the interactive analysis

See the full architecture map, data flow, and code patterns visualization.

Analyze on CodeSea

Compare graphcast

Related Weather Climate Repositories

Frequently Asked Questions

What is graphcast used for?

DeepMind's GraphCast and GenCast weather prediction models using graph neural networks google-deepmind/graphcast is a 10-component weather climate written in Python. Data flows through 5 distinct pipeline stages. The codebase contains 37 files.

How is graphcast architected?

graphcast is organized into 4 architecture layers: Predictor Interface, Model Implementations, Graph Neural Networks, Mesh & Data Utils. Data flows through 5 distinct pipeline stages. This layered structure keeps concerns separated and modules independent.

How does data flow through graphcast?

Data moves through 5 stages: Load ERA5 data → Grid to mesh projection → Graph message passing → Mesh to grid projection → Autoregressive rollout. Weather data flows from regular lat-lon grids through icosahedral mesh representations where graph neural networks perform message passing, then back to grids for predictions This pipeline design reflects a complex multi-stage processing system.

What technologies does graphcast use?

The core stack includes JAX (Core ML framework for neural networks and autodiff), Haiku (Neural network library built on JAX), XArray (Labeled multi-dimensional arrays for weather data), NumPy (Numerical computing and array operations), SciPy (Scientific computing, spatial operations, sparse matrices), Trimesh (Triangle mesh processing and geometry), and 2 more. A focused set of dependencies that keeps the build manageable.

What system dynamics does graphcast have?

graphcast exhibits 3 data pools (ERA5 Weather Dataset, Mesh Connectivity Cache), 3 feedback loops, 4 control points, 3 delays. The feedback loops handle recursive and convergence. These runtime behaviors shape how the system responds to load, failures, and configuration changes.

What design patterns does graphcast use?

4 design patterns detected: Predictor Wrapper Pattern, Typed Graph Networks, JAX/XArray Integration, Hierarchical Mesh Processing.

How does graphcast compare to alternatives?

CodeSea has side-by-side architecture comparisons of graphcast with climax, earth2studio. These comparisons show tech stack differences, pipeline design, system behavior, and code patterns. See the comparison pages above for detailed analysis.

Analyzed on March 20, 2026 by CodeSea. Written by .