Gaussian Random Magnetic Fields Approximation
Project description
Gaussian Random-fields Approximation for Magnetic-fields with Python Algorithms (GRAMPA)
Overview
GRAMPA is a Python-based tool for modeling magnetic fields as Gaussian random fields following a specified power spectrum and electron density profile, as described in Murgia et al. (2004) and originally proposed by Tribble (1991). This framework is designed primarily for analyzing Faraday rotation experiments in galaxy clusters but can be applied more generally to other magnetized plasmas, depending on the chosen parameters.
Getting Started
To begin using GRAMPA, refer to the Jupyter notebook examples/example_cluster_Bfield.ipynb, which provides an example workflow to help users understand the implementation and features of the code.
Citation
If you use this code in your research, please cite the following works:
- Osinga et al. 2022: A&A, 665, A71
- Osinga et al. 2025: A&A, 694, A44
If your work involves lognormal density fluctuations, please also cite:
- Khadir et al. 2025 (in prep.)
- PyFC: PyFC on PiWheels
License
This software is provided under an open-source license. Please check the GitHub repository for details.
Contact
For questions or feedback, please reach out to the authors or open an issue on the Github repository
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file grampa-0.0.2.tar.gz.
File metadata
- Download URL: grampa-0.0.2.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83fb240a60a53c59e845995171b2b79e37022a9f17b09e6f7f1e31a3c0ba32ac
|
|
| MD5 |
44eff0293d5a972fd758ea411076bf8a
|
|
| BLAKE2b-256 |
1502d553dd13c64cd6b72bfe8948f989f2898a735aa3775e74e171fea0bacea6
|
File details
Details for the file grampa-0.0.2-py3-none-any.whl.
File metadata
- Download URL: grampa-0.0.2-py3-none-any.whl
- Upload date:
- Size: 44.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e826e7e4766a1baa8d89bab120e16c758933fbbd9e423e0880f964cbc10dfabd
|
|
| MD5 |
1bde1377e4d982f15275b08d792e9061
|
|
| BLAKE2b-256 |
690fe2fa7a756858381378f5959dc61bd4f5da232f0bf3e64ad82bf5ee0988e4
|