A package to visualize AMR data from the RAMSES code
Project description
OsyrisA python visualization utility for RAMSES astrophysical simulations data. Osyris aims to remain portable, lightweight and fast, to allow users to quickly explore and understand their simulation data, as well as produce publication grade figures. |
Documentation
The documentation for osyris
is hosted on
Readthedocs.
Installation
pip install osyris
A short example
You can download the sample data here.
Plot a 2D histogram of the cell magnetic field versus the gas density.
import osyris
data = osyris.Dataset(71, scale="au", path="data").load()
osyris.plot.histogram(data["hydro"]["density"], data["hydro"]["B_field"],
norm="log", loglog=True)
Create a 2D gas density slice 100 au wide through the plane normal to z
,
with velocity vectors overlayed as arrows, once agains using layers
:
ind = np.argmax(data["hydro"]["density"])
center = data["amr"]["xyz"][ind.values]
osyris.plane({"data": data["hydro"]["density"], "norm": "log"}, # layer 1
{"data": data["hydro"]["velocity"], "mode": "vec"}, # layer 2
dx=50 * osyris.units("au"),
origin=center,
direction="z")
Have a problem or need a new feature?
Submit an issue on Github.
Contributors
- Neil Vaytet (StarPlan/NBI)
- Tommaso Grassi (StarPlan/NBI)
- Matthias Gonzalez (CEA Saclay)
- Troels Haugbolle (StarPlan/NBI)
- Lucas Beeres
Logo credit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
osyris-2.2.1.tar.gz
(29.1 kB
view details)
Built Distribution
osyris-2.2.1-py3-none-any.whl
(39.1 kB
view details)
File details
Details for the file osyris-2.2.1.tar.gz
.
File metadata
- Download URL: osyris-2.2.1.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a855a7799b222f37d349039dc5930336a5e8a4ce6a07f33c3d2e56e5fda172 |
|
MD5 | f94944322be97caccfd18cd6d4b2dec6 |
|
BLAKE2b-256 | d59e01f5c138c6327b7bacc4cedb7c9aa43b7c6f85dc5e298a962ad8871da949 |
File details
Details for the file osyris-2.2.1-py3-none-any.whl
.
File metadata
- Download URL: osyris-2.2.1-py3-none-any.whl
- Upload date:
- Size: 39.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19c2b1f0244127868c0cf607805196d86b4e89f08832f8233bd848f745b5b0b8 |
|
MD5 | e512a78776d891d6e4ae0bf312dd1cf8 |
|
BLAKE2b-256 | a6881290cdac2af202d94c671ad3f10e8523d762e3fb50148f3c56bdac1c67db |