Name | pyteda JSON |
Version |
0.2.5
JSON |
| download |
home_page | None |
Summary | TEDA: Toy models and ensemble-based Data Assimilation methods for education and experimentation |
upload_time | 2025-07-09 05:19:18 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | MIT |
keywords |
data assimilation
enkf
education
lorenz96
python
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 🧠 TEDA – Toolbox for Ensemble Data Assimilation
We are thrilled to present TEDA, a cutting-edge Python toolbox designed to facilitate the teaching and learning of ensemble-based data assimilation (DA). TEDA caters to the needs of educators and learners alike, offering a comprehensive platform to explore the captivating world of meteorological anomalies, climate change, and DA methodologies.
TEDA stands out as an exceptional resource in the landscape of DA software, as it prioritizes the educational experience. While operational software tends to focus on practical applications, TEDA empowers undergraduate and graduate students by providing an intuitive platform to grasp the intricacies of ensemble-based DA concepts and foster enthusiasm for scientific exploration.
Equipped with a diverse range of features and functionalities, TEDA enriches the learning process by offering powerful visualization tools. Students can delve into error statistics, model errors, observational errors, error distributions, and the dynamic evolution of errors. These visualizations provide multiple perspectives on numerical results, enabling students to develop a deep understanding of ensemble-based DA principles.
TEDA offers numerous ensemble-based DA methods, allowing students to explore an extensive range of techniques. From the stochastic ensemble Kalman filter (EnKF) to dual EnKF formulations, EnKF via Cholesky decomposition, EnKF based on modified Cholesky decomposition, EnKF based on B-localization, and beyond, TEDA equips learners with a comprehensive toolkit to study and compare various DA methodologies.
TEDA's foundation is rooted in the Object-Oriented Programming (OOP) paradigm, enabling effortless integration of new techniques and models. This ensures that TEDA remains at the forefront of the rapidly evolving field of ensemble-based DA, allowing educators and researchers to incorporate the latest advancements into their teaching and experimentation.
Embark on a captivating journey of discovery and knowledge with TEDA as it unveils the secrets of data assimilation. Simulate various DA scenarios, experiment with different model configurations, and witness firsthand the transformative impact of ensemble-based DA methods on forecast accuracy and data analysis.
Unlock your true potential in the realm of data assimilation with TEDA. Whether you are an enthusiastic student or a dedicated educator, TEDA stands as your ultimate companion in unraveling the complexities of ensemble-based DA.
Keywords: Data Assimilation, Ensemble Kalman Filter, Education, Python.
### 🧪 Toy Models for Data Assimilation
To enhance the learning experience, **TEDA** is built around **toy models** that exhibit chaotic behavior under specific configurations. These models are ideal for experimenting with and validating various Data Assimilation (DA) techniques in a hands-on, controlled setting.
Currently, TEDA includes the **Lorenz 96 model** (40 variables), a well-known benchmark in DA research.
> 📌 *Support for other classic chaotic systems like the Duffing equation and Lorenz 63 may be added in future versions.*
---
## 📦 Installation
Aquí tienes una versión mejor redactada y estructurada para la sección de instalación y uso rápido:
---
## 🚀 Installation and Quick Start
### ✅ From PyPI
To install the latest stable version:
```bash
pip install pyteda
```
### 🧪 From Source (for development)
Clone the repository and install in editable mode:
```bash
git clone https://github.com/your-username/pyteda.git
cd pyteda
pip install -e .
```
### 🛠️ Recommended Setup: Virtual Environment
We suggest using a virtual environment to manage dependencies:
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```
Install all required dependencies:
```bash
pip install -r requirements.txt
```
---
## 📁 Example Usage
You can run a complete simulation workflow using:
```bash
python examples/basic_template.py
```
Or explore the file directly: [`examples/basic_template.py`](examples/basic_template.py)
---
### ▶️ Run the basic example
Once installed, you can run the full example with:
```bash
python -m examples.basic_template
```
This will initialize the Lorenz96 model, run an ensemble-based data assimilation simulation, and display the log-relative errors for both the background and analysis states.
---
### Supported Methods
The `pyteda` package supports a wide range of ensemble-based data assimilation methods including EnKF, LETKF, ETKF, and shrinkage-based filters. All methods are accessible via the `AnalysisFactory`.
📄 See [Supported Methods](docs/index.md) for a full list and references.
---
## 🚀 Quickstart
Here's a minimal example using the **LETKF** method with the built-in Lorenz96 model:
```python
from pyteda.simulation import Simulation
from pyteda.models import Lorenz96
from pyteda.background import Background
from pyteda.observation import Observation
from pyteda.analysis.analysis_factory import AnalysisFactory
model = Lorenz96()
background = Background(model, ensemble_size=20)
observation = Observation(m=32, std_obs=0.01)
analysis = AnalysisFactory("letkf", model=model).create_analysis()
params = {'obs_freq': 0.1, 'obs_times': 10, 'inf_fact': 1.04}
sim = Simulation(model, background, analysis, observation, params=params)
sim.run()
errb, erra = sim.get_errors()
```
📈 For visualization and full working examples, check the [`examples/`](examples/) folder.
---
## 🎓 Citation
If you use **TEDA** in your teaching or research, please cite:
**Nino-Ruiz, E.D., Valbuena, S.R. (2022)**
*TEDA: A Computational Toolbox for Teaching Ensemble Based Data Assimilation*.
[📖 ICCS 2022, Springer](https://doi.org/10.1007/978-3-031-08760-8_60)
```bibtex
@inproceedings{nino2022teda,
title={TEDA: A Computational Toolbox for Teaching Ensemble Based Data Assimilation},
author={Nino-Ruiz, Elias D. and Valbuena, Sebastian Racedo},
booktitle={Computational Science – ICCS 2022},
series={Lecture Notes in Computer Science},
volume={13353},
pages={787--801},
year={2022},
publisher={Springer, Cham},
doi={10.1007/978-3-031-08760-8_60}
}
```
---
## 📚 More Resources
* 🧪 Explore [examples/](examples/) to try different filters and models.
* 📖 Full documentation available in the `docs/` folder.
* ➕ Want to add your own method? TEDA supports [custom DA methods via registry](docs/custom_methods.md).
---
[](https://pypi.org/project/pyteda/)
[](https://doi.org/10.1007/978-3-031-08760-8_60)
---
## Developed by
* Elías D. Niño-Ruiz
* [https://enino84.github.io/](https://enino84.github.io/)
* elias.d.nino@gmail.com
Raw data
{
"_id": null,
"home_page": null,
"name": "pyteda",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "data assimilation, EnKF, education, Lorenz96, Python",
"author": null,
"author_email": "\"El\u00edas D. Ni\u00f1o-Ruiz\" <elias.d.nino@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/8a/14/0a43daf671700f7e777991e845fcbdcb3ebcfa7bfd0fde47e21d522b7b58/pyteda-0.2.5.tar.gz",
"platform": null,
"description": "# \ud83e\udde0 TEDA \u2013 Toolbox for Ensemble Data Assimilation\r\n\r\nWe are thrilled to present TEDA, a cutting-edge Python toolbox designed to facilitate the teaching and learning of ensemble-based data assimilation (DA). TEDA caters to the needs of educators and learners alike, offering a comprehensive platform to explore the captivating world of meteorological anomalies, climate change, and DA methodologies.\r\n\r\nTEDA stands out as an exceptional resource in the landscape of DA software, as it prioritizes the educational experience. While operational software tends to focus on practical applications, TEDA empowers undergraduate and graduate students by providing an intuitive platform to grasp the intricacies of ensemble-based DA concepts and foster enthusiasm for scientific exploration.\r\n\r\nEquipped with a diverse range of features and functionalities, TEDA enriches the learning process by offering powerful visualization tools. Students can delve into error statistics, model errors, observational errors, error distributions, and the dynamic evolution of errors. These visualizations provide multiple perspectives on numerical results, enabling students to develop a deep understanding of ensemble-based DA principles.\r\n\r\nTEDA offers numerous ensemble-based DA methods, allowing students to explore an extensive range of techniques. From the stochastic ensemble Kalman filter (EnKF) to dual EnKF formulations, EnKF via Cholesky decomposition, EnKF based on modified Cholesky decomposition, EnKF based on B-localization, and beyond, TEDA equips learners with a comprehensive toolkit to study and compare various DA methodologies.\r\n\r\nTEDA's foundation is rooted in the Object-Oriented Programming (OOP) paradigm, enabling effortless integration of new techniques and models. This ensures that TEDA remains at the forefront of the rapidly evolving field of ensemble-based DA, allowing educators and researchers to incorporate the latest advancements into their teaching and experimentation.\r\n\r\nEmbark on a captivating journey of discovery and knowledge with TEDA as it unveils the secrets of data assimilation. Simulate various DA scenarios, experiment with different model configurations, and witness firsthand the transformative impact of ensemble-based DA methods on forecast accuracy and data analysis.\r\n\r\nUnlock your true potential in the realm of data assimilation with TEDA. Whether you are an enthusiastic student or a dedicated educator, TEDA stands as your ultimate companion in unraveling the complexities of ensemble-based DA.\r\n\r\nKeywords: Data Assimilation, Ensemble Kalman Filter, Education, Python.\r\n\r\n### \ud83e\uddea Toy Models for Data Assimilation\r\n\r\nTo enhance the learning experience, **TEDA** is built around **toy models** that exhibit chaotic behavior under specific configurations. These models are ideal for experimenting with and validating various Data Assimilation (DA) techniques in a hands-on, controlled setting.\r\n\r\nCurrently, TEDA includes the **Lorenz 96 model** (40 variables), a well-known benchmark in DA research.\r\n\r\n> \ud83d\udccc *Support for other classic chaotic systems like the Duffing equation and Lorenz 63 may be added in future versions.*\r\n\r\n---\r\n\r\n## \ud83d\udce6 Installation\r\n\r\nAqu\u00ed tienes una versi\u00f3n mejor redactada y estructurada para la secci\u00f3n de instalaci\u00f3n y uso r\u00e1pido:\r\n\r\n---\r\n\r\n## \ud83d\ude80 Installation and Quick Start\r\n\r\n### \u2705 From PyPI\r\n\r\nTo install the latest stable version:\r\n\r\n```bash\r\npip install pyteda\r\n```\r\n\r\n### \ud83e\uddea From Source (for development)\r\n\r\nClone the repository and install in editable mode:\r\n\r\n```bash\r\ngit clone https://github.com/your-username/pyteda.git\r\ncd pyteda\r\npip install -e .\r\n```\r\n\r\n### \ud83d\udee0\ufe0f Recommended Setup: Virtual Environment\r\n\r\nWe suggest using a virtual environment to manage dependencies:\r\n\r\n```bash\r\npython -m venv venv\r\nsource venv/bin/activate # On Windows: venv\\Scripts\\activate\r\n```\r\n\r\nInstall all required dependencies:\r\n\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n---\r\n\r\n## \ud83d\udcc1 Example Usage\r\n\r\nYou can run a complete simulation workflow using:\r\n\r\n```bash\r\npython examples/basic_template.py\r\n```\r\n\r\nOr explore the file directly: [`examples/basic_template.py`](examples/basic_template.py)\r\n\r\n---\r\n\r\n### \u25b6\ufe0f Run the basic example\r\n\r\nOnce installed, you can run the full example with:\r\n\r\n```bash\r\npython -m examples.basic_template\r\n```\r\n\r\nThis will initialize the Lorenz96 model, run an ensemble-based data assimilation simulation, and display the log-relative errors for both the background and analysis states.\r\n\r\n---\r\n\r\n### Supported Methods\r\n\r\nThe `pyteda` package supports a wide range of ensemble-based data assimilation methods including EnKF, LETKF, ETKF, and shrinkage-based filters. All methods are accessible via the `AnalysisFactory`.\r\n\r\n\ud83d\udcc4 See [Supported Methods](docs/index.md) for a full list and references.\r\n\r\n---\r\n\r\n## \ud83d\ude80 Quickstart\r\n\r\nHere's a minimal example using the **LETKF** method with the built-in Lorenz96 model:\r\n\r\n```python\r\nfrom pyteda.simulation import Simulation\r\nfrom pyteda.models import Lorenz96\r\nfrom pyteda.background import Background\r\nfrom pyteda.observation import Observation\r\nfrom pyteda.analysis.analysis_factory import AnalysisFactory\r\n\r\nmodel = Lorenz96()\r\nbackground = Background(model, ensemble_size=20)\r\nobservation = Observation(m=32, std_obs=0.01)\r\n\r\nanalysis = AnalysisFactory(\"letkf\", model=model).create_analysis()\r\n\r\nparams = {'obs_freq': 0.1, 'obs_times': 10, 'inf_fact': 1.04}\r\nsim = Simulation(model, background, analysis, observation, params=params)\r\nsim.run()\r\n\r\nerrb, erra = sim.get_errors()\r\n```\r\n\r\n\ud83d\udcc8 For visualization and full working examples, check the [`examples/`](examples/) folder.\r\n\r\n---\r\n\r\n## \ud83c\udf93 Citation\r\n\r\nIf you use **TEDA** in your teaching or research, please cite:\r\n\r\n**Nino-Ruiz, E.D., Valbuena, S.R. (2022)**\r\n*TEDA: A Computational Toolbox for Teaching Ensemble Based Data Assimilation*.\r\n[\ud83d\udcd6 ICCS 2022, Springer](https://doi.org/10.1007/978-3-031-08760-8_60)\r\n\r\n```bibtex\r\n@inproceedings{nino2022teda,\r\n title={TEDA: A Computational Toolbox for Teaching Ensemble Based Data Assimilation},\r\n author={Nino-Ruiz, Elias D. and Valbuena, Sebastian Racedo},\r\n booktitle={Computational Science \u2013 ICCS 2022},\r\n series={Lecture Notes in Computer Science},\r\n volume={13353},\r\n pages={787--801},\r\n year={2022},\r\n publisher={Springer, Cham},\r\n doi={10.1007/978-3-031-08760-8_60}\r\n}\r\n```\r\n\r\n---\r\n\r\n## \ud83d\udcda More Resources\r\n\r\n* \ud83e\uddea Explore [examples/](examples/) to try different filters and models.\r\n* \ud83d\udcd6 Full documentation available in the `docs/` folder.\r\n* \u2795 Want to add your own method? TEDA supports [custom DA methods via registry](docs/custom_methods.md).\r\n\r\n---\r\n\r\n[](https://pypi.org/project/pyteda/)\r\n[](https://doi.org/10.1007/978-3-031-08760-8_60)\r\n\r\n---\r\n\r\n## Developed by\r\n\r\n* El\u00edas D. Ni\u00f1o-Ruiz\r\n* [https://enino84.github.io/](https://enino84.github.io/)\r\n* elias.d.nino@gmail.com\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "TEDA: Toy models and ensemble-based Data Assimilation methods for education and experimentation",
"version": "0.2.5",
"project_urls": null,
"split_keywords": [
"data assimilation",
" enkf",
" education",
" lorenz96",
" python"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7d080a2c324d0d0d7401424e4cab9d7c63a4dc7237942f4f723851ec60ce7840",
"md5": "47acf22a45e384beb1ed922f4666e560",
"sha256": "159721a7f5376cdd1224e2b531475e446a94efcd6f897ad99f82456cd66503bd"
},
"downloads": -1,
"filename": "pyteda-0.2.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "47acf22a45e384beb1ed922f4666e560",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 29215,
"upload_time": "2025-07-09T05:19:17",
"upload_time_iso_8601": "2025-07-09T05:19:17.446299Z",
"url": "https://files.pythonhosted.org/packages/7d/08/0a2c324d0d0d7401424e4cab9d7c63a4dc7237942f4f723851ec60ce7840/pyteda-0.2.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8a140a43daf671700f7e777991e845fcbdcb3ebcfa7bfd0fde47e21d522b7b58",
"md5": "31836627445977e2bf51b935e57aa3dd",
"sha256": "065c09594c1e9c906774e755d599ef544a36513fae8552025dffb9df9dec40f1"
},
"downloads": -1,
"filename": "pyteda-0.2.5.tar.gz",
"has_sig": false,
"md5_digest": "31836627445977e2bf51b935e57aa3dd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 19760,
"upload_time": "2025-07-09T05:19:18",
"upload_time_iso_8601": "2025-07-09T05:19:18.603687Z",
"url": "https://files.pythonhosted.org/packages/8a/14/0a43daf671700f7e777991e845fcbdcb3ebcfa7bfd0fde47e21d522b7b58/pyteda-0.2.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-09 05:19:18",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pyteda"
}