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.4.0.tar.gz (223.9 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.4.0-py3-none-any.whl (259.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dinosaur-1.4.0.tar.gz
Algorithm Hash digest
SHA256 8dcb4b2f14c4434caf73a5f5f0c99ff302232357ca2edd368768ea585b1f0935
MD5 e13bc8ca7feccce15b9cca50c7341f0d
BLAKE2b-256 8f7dcd0993c95fcf619e2a0705d92395aacaf5e942b35c8b2b3cdaac762edd02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dinosaur-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 259.5 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5655e091c2ef23fc87981343808018f6ec5a012c1d7bd3ac2890a21dc2e76ac8
MD5 a1adce096f10341d04a126c4338fbe56
BLAKE2b-256 db63641dcc640c6cd026520a69fc314964967877b24839e241ee875bee6f6008

See more details on using hashes here.

Release history Release notifications | RSS feed

1.5.0

2 files

1.4.1

2 files

This release

1.4.0 This release

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