Aurora
An atmospheric foundation machine learning model initially trained on vast amounts of data to predict atmospheric variables like temperature, which can then be adapted to specialized atmospheric forecasting tasks with relatively little additional data.
https://github.com/microsoft/aurora
Category: Atmosphere
Sub Category: Atmospheric Composition and Dynamics
Keywords
atmospheric-chemistry aurora-model deep-learning foundation-models ocean-waves tropical-cyclone-tracking weather-prediction
Keywords from Contributors
atmospheric-dynamics
Last synced: 1 day ago
JSON representation
Repository metadata
Implementation of the Aurora model for Earth system forecasting
- Host: GitHub
- URL: https://github.com/microsoft/aurora
- Owner: microsoft
- License: other
- Created: 2024-07-15T14:23:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-03T09:40:23.000Z (24 days ago)
- Last Synced: 2025-04-22T12:33:20.244Z (5 days ago)
- Topics: atmospheric-chemistry, aurora-model, deep-learning, foundation-models, ocean-waves, tropical-cyclone-tracking, weather-prediction
- Language: Python
- Homepage: https://microsoft.github.io/aurora
- Size: 10.6 MB
- Stars: 334
- Watchers: 11
- Forks: 53
- Open Issues: 18
- Releases: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Security: SECURITY.md
README.md
Aurora: A Foundation Model for the Earth System
Implementation of the Aurora model for Earth system forecasting.
The package currently includes the pretrained model and the fine-tuned version for high-resolution weather forecasting.
We are working on the fine-tuned versions for air pollution and ocean wave forecasting, which will be included in due time.
Please see the documentation for detailed instructions and more examples.
You can also directly go to a full-fledged example that runs the model on ERA5.
Cite us as follows:
@misc{bodnar2024aurora,
title = {Aurora: A Foundation Model for the Earth System},
author = {Cristian Bodnar and Wessel P. Bruinsma and Ana Lucic and Megan Stanley and Anna Vaughan and Johannes Brandstetter and Patrick Garvan and Maik Riechert and Jonathan A. Weyn and Haiyu Dong and Jayesh K. Gupta and Kit Thambiratnam and Alexander T. Archibald and Chun-Chieh Wu and Elizabeth Heider and Max Welling and Richard E. Turner and Paris Perdikaris},
year = {2024},
url = {https://arxiv.org/abs/2405.13063},
eprint = {2405.13063},
archivePrefix = {arXiv},
primaryClass = {physics.ao-ph},
}
Contents:
- What is Aurora?
- Getting Started
- Contributing
- License
- Security
- Responsible AI Transparency Documentation
- Trademarks
- FAQ
What is Aurora?
Aurora is a machine learning model that can predict atmospheric variables, such as temperature.
It is a foundation model, which means that it was first generally trained on a lot of data,
and then can be adapted to specialised atmospheric forecasting tasks with relatively little data.
We provide four such specialised versions:
one for medium-resolution weather prediction,
one for high-resolution weather prediction,
one for air pollution prediction,
and one for ocean wave prediction.
Getting Started
Install with pip
:
pip install microsoft-aurora
Or with conda
/ mamba
:
mamba install microsoft-aurora -c conda-forge
Run the pretrained small model on random data:
from datetime import datetime
import torch
from aurora import AuroraSmall, Batch, Metadata
model = AuroraSmall()
model.load_checkpoint("microsoft/aurora", "aurora-0.25-small-pretrained.ckpt")
batch = Batch(
surf_vars={k: torch.randn(1, 2, 17, 32) for k in ("2t", "10u", "10v", "msl")},
static_vars={k: torch.randn(17, 32) for k in ("lsm", "z", "slt")},
atmos_vars={k: torch.randn(1, 2, 4, 17, 32) for k in ("z", "u", "v", "t", "q")},
metadata=Metadata(
lat=torch.linspace(90, -90, 17),
lon=torch.linspace(0, 360, 32 + 1)[:-1],
time=(datetime(2020, 6, 1, 12, 0),),
atmos_levels=(100, 250, 500, 850),
),
)
prediction = model.forward(batch)
print(prediction.surf_vars["2t"])
Note that this will incur a 500 MB download.
Please read the documentation for more detailed instructions and for which models are available.
Contributing
See CONTRIBUTING.md
.
License
See LICENSE.txt
.
Security
See SECURITY.md
.
Responsible AI Transparency Documentation
An AI system includes not only the technology, but also the people who will use it, the people who will be affected by it, and the environment in which it is deployed.
Creating a system that is fit for its intended purpose requires an understanding of how the technology works, its capabilities and limitations, and how to achieve the best performance.
Microsoft has a broad effort to put our AI principles into practice.
To find out more, see Responsible AI principles from Microsoft.
Use of this code
Our goal in publishing this code is
(1) to facilitate reproducibility of our paper and
(2) to support and accelerate further research into foundation model for atmospheric forecasting.
This code has not been developed nor tested for non-academic purposes and hence should not be used as such.
Limitations
Although Aurora was trained to accurately predict future weather, air pollution, and ocean waves,
Aurora is based on neural networks, which means that there are no strict guarantees that predictions will always be accurate.
Altering the inputs, providing a sample that was not in the training set,
or even providing a sample that was in the training set but is simply unlucky may result in arbitrarily poor predictions.
In addition, even though Aurora was trained on a wide variety of data sets,
it is possible that Aurora inherits biases present in any one of those data sets.
A forecasting system like Aurora is only one piece of the puzzle in a weather prediction pipeline,
and its outputs are not meant to be directly used by people or businesses to plan their operations.
A series of additional verification tests are needed before it can become operationally useful.
Data
The models included in the code have been trained on a variety of publicly available data.
A description of all data, including download links, can be found in Supplementary C of the paper.
The checkpoints include data from ERA5, CMCC, IFS-HR, HRES T0, GFS T0 analysis, and GFS forecasts.
Evaluations
All versions of Aurora were extensively evaluated by evaluating predictions on data not seen during training.
These evaluations not only compare measures of accuracy, such as the root mean square error and anomaly correlation coefficient,
but also look at the behaviour in extreme situations, like extreme heat and cold, and rare events, like Storm Ciarán in 2023.
These evaluations are the main topic of the paper.
Note: The documentation included in this file is for informational purposes only and is not intended to supersede the applicable license terms.
Trademarks
This project may contain trademarks or logos for projects, products, or services.
Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines.
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
FAQ
How do I setup the repo for local development?
First, install the repository in editable mode and setup pre-commit
:
make install
To run the tests and print coverage, run
make test
You can then explore the coverage in the browser by opening htmlcov/index.html
.
To locally build the documentation, run
make docs
To locally view the documentation, open docs/_build/index.html
in your browser.
Why are the fine-tuned versions of Aurora for air quality and ocean wave forecasting missing?
The package currently includes the pretrained model and the fine-tuned version for high-resolution weather forecasting.
We are working on the fine-tuned versions for air pollution and ocean wave forecasting, which will be included in due time.
Owner metadata
- Name: Microsoft
- Login: microsoft
- Email:
- Kind: organization
- Description: Open source projects and samples from Microsoft
- Website: https://opensource.microsoft.com
- Location: Redmond, WA
- Twitter: OpenAtMicrosoft
- Company:
- Icon url: https://avatars.githubusercontent.com/u/6154722?v=4
- Repositories: 6961
- Last ynced at: 2025-04-20T10:12:39.710Z
- Profile URL: https://github.com/microsoft
GitHub Events
Total
- Create event: 11
- Release event: 2
- Issues event: 29
- Watch event: 97
- Delete event: 7
- Issue comment event: 60
- Push event: 81
- Pull request review comment event: 9
- Pull request review event: 12
- Pull request event: 18
- Fork event: 23
Last Year
- Create event: 11
- Release event: 2
- Issues event: 29
- Watch event: 97
- Delete event: 7
- Issue comment event: 60
- Push event: 81
- Pull request review comment event: 9
- Pull request review event: 12
- Pull request event: 18
- Fork event: 23
Committers metadata
Last synced: 6 days ago
Total Commits: 41
Total Committers: 8
Avg Commits per committer: 5.125
Development Distribution Score (DDS): 0.195
Commits in past year: 41
Committers in past year: 8
Avg Commits per committer in past year: 5.125
Development Distribution Score (DDS) in past year: 0.195
Name | Commits | |
---|---|---|
Wessel | w****a@g****m | 33 |
Ana Lucic | a****c@m****m | 2 |
luciano-drozda | d****o@g****m | 1 |
Sebastian Ehlert | 2****k | 1 |
Scott Chamberlin | s****a@l****m | 1 |
Lukas Kuhn | l****u@g****m | 1 |
Hrrsmjd | 6****d | 1 |
AnUnpronounceableName | b****n@k****i | 1 |
Committer domains:
- kolczyn.ski: 1
- microsoft.com: 1
Issue and Pull Request metadata
Last synced: 2 days ago
Total issues: 47
Total pull requests: 55
Average time to close issues: 8 days
Average time to close pull requests: 2 days
Total issue authors: 27
Total pull request authors: 10
Average comments per issue: 1.94
Average comments per pull request: 0.44
Merged pull request: 50
Bot issues: 3
Bot pull requests: 1
Past year issues: 47
Past year pull requests: 55
Past year average time to close issues: 8 days
Past year average time to close pull requests: 2 days
Past year issue authors: 27
Past year pull request authors: 10
Past year average comments per issue: 1.94
Past year average comments per pull request: 0.44
Past year merged pull request: 50
Past year bot issues: 3
Past year bot pull requests: 1
Top Issue Authors
- ShileiCao (5)
- scottcha (4)
- microsoft-github-policy-service[bot] (3)
- maruf-anu (3)
- BigShuiTai (3)
- qqydss (3)
- francescopisu (2)
- sergioleonluis (2)
- KennyWu (2)
- b8raoult (2)
- patel-zeel (2)
- sanembell12 (1)
- danicamacho (1)
- mr-arashmousavi (1)
- koomited (1)
Top Pull Request Authors
- wesselb (36)
- a-lucic (4)
- scottcha (3)
- Hrrsmjd (2)
- lukaskuhn-lku (2)
- awvwgk (2)
- AnUnpronounceableName (2)
- luciano-drozda (2)
- microsoft-github-policy-service[bot] (1)
- johnnyL7 (1)
Top Issue Labels
- question (5)
- enhancement (2)
- documentation (1)
Top Pull Request Labels
Package metadata
- Total packages: 1
-
Total downloads:
- pypi: 1,003 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 9
- Total maintainers: 2
pypi.org: microsoft-aurora
Implementation of the Aurora model
- Homepage:
- Documentation: https://microsoft-aurora.readthedocs.io/
- Licenses: MIT License Implementation of the Aurora model. Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Latest release: 1.5.0 (published about 2 months ago)
- Last Synced: 2025-04-25T14:01:35.630Z (2 days ago)
- Versions: 9
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 1,003 Last month
-
Rankings:
- Dependent packages count: 10.583%
- Average: 35.091%
- Dependent repos count: 59.598%
- Maintainers (2)
Dependencies
- actions/checkout v2 composite
- actions/setup-python v3 composite
- peaceiris/actions-gh-pages v4 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- actions/checkout v3 composite
- actions/setup-python v3 composite
- pre-commit/action v3.0.0 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- pypa/gh-action-pypi-publish release/v1 composite
- einops *
- huggingface-hub *
- numpy *
- timm ==0.6.13
- torch *
Score: 14.85581553777111