Skip to main content

Dinosaur: Differentiable Dynamics for Global Atmospheric Modeling 🦖

Authors: Jamie A. Smith, Dmitrii Kochkov, Peter Norgaard, Janni Yuval, Stephan Hoyer

Dinosaur is an old-fashioned (some might say prehistoric) dynamical core for global atmospheric modeling, re-written in JAX to meet the needs of modern AI weather/climate models:

  • Dynamics: Dinosaur uses spectral methods to solve the shallow water equations and the primitive equations (moist and dry) on sigma coordinates.
  • Auto-diff: Dinosaur supports both forward- and backward-mode automatic differentiation in JAX. This enables "online training" of hybrid AI/physics models.
  • Acceleration: Dinosaur is designed to run efficiently on modern accelerator hardware (GPU/TPU), including parallelization across multiple devices.

For more details, see our paper Neural General Circulation Models for Weather and Climate.

Usage instructions

Dinosaur is an experimental research project that we are still working on documenting.

We currently have three notebooks illustrating how to use Dinosaur:

Each also has a semi-Lagrangian variant demonstrating semi-Lagrangian advection at 6-12x longer time steps:

We recommend running them using Google Colab with a GPU runtime. You can also install Dinosaur locally: pip install dinosaur

See also

If you like Dinosaur, you might also like SpeedyWeather.jl, which solves similar equations in Julia.

Contributing

See CONTRIBUTING.md for details. We are open to user contributions, but please reach out (either on GitHub or by email) to coordinate before starting significant work.

License

Apache 2.0; see LICENSE for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dinosaur-1.5.0.tar.gz (236.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dinosaur-1.5.0-py3-none-any.whl (273.9 kB view details)

Uploaded Python 3

File details

Details for the file dinosaur-1.5.0.tar.gz.

File metadata

  • Download URL: dinosaur-1.5.0.tar.gz
  • Upload date:
  • Size: 236.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.14

File hashes

Hashes for dinosaur-1.5.0.tar.gz
Algorithm Hash digest
SHA256 78f1ee24510f40c3b8fe9345f3a2535b00c53a6c6f47ef3f7b32828bd99f64bc
MD5 99025c932ce073fa1dbb8a1bfed0d0e7
BLAKE2b-256 7a2c999c068dad65908dc67bac090b0197c77604bd96f494d5f155d7772a0ebe

See more details on using hashes here.

File details

Details for the file dinosaur-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: dinosaur-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 273.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.14

File hashes

Hashes for dinosaur-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60926f555511536b579c1b33e98e90aef842fef310038ad77a278ad806d4b630
MD5 1b8ecff1016fcecb76572421df6b16f2
BLAKE2b-256 cf98ec78059a9e8e2a5170dc988ffd777946d25ceec61a9b1fed8d4fa53524c5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 files

1.4.1

2 files

1.4.0

2 files

1.3.6

2 files

1.3.5

2 files

1.3.4

2 files

1.3.3

2 files

1.3.2

2 files

1.3.0

2 files

1.2.2

2 files

1.2.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page