A package to visualize AMR data from the RAMSES code
Project description
Osyris
A 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 can be found at https://osyris.readthedocs.io.
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 numpy as np
import osyris
data = osyris.RamsesDataset(8, path="data").load()
osyris.hist2d(data["mesh"]["density"], data["mesh"]["B_field"],
norm="log", loglog=True)
Create a 2D gas density map 2000 au wide through the plane normal to z,
with velocity vectors overlayed as arrows, once again using layers:
ind = np.argmax(data["mesh"]["density"])
center = data["mesh"]["position"][ind]
osyris.map(
data["mesh"].layer("density", norm="log"),
data["mesh"].layer("velocity", mode="vec"),
dx=2000 * osyris.units("au"),
origin=center,
direction="z",
)
Have a problem or need a new feature?
- Bug reports or feature requests should be submitted by opening an issue
- For general discussions or questions about how to do something with
osyris, start a new discussion
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
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 osyris-3.2.0.tar.gz.
File metadata
- Download URL: osyris-3.2.0.tar.gz
- Upload date:
- Size: 184.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3222bfed58335d115c65660432789a0b760355632be1f8648d73c18f40442b5
|
|
| MD5 |
cafed249c308a0cfad24279efb5b8d6a
|
|
| BLAKE2b-256 |
4d47729ed861616b791b412fb09dc294e2202333cdaf89521d60c9d50c764d13
|
Provenance
The following attestation bundles were made for osyris-3.2.0.tar.gz:
Publisher:
python-app.yml on osyris-project/osyris
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
osyris-3.2.0.tar.gz -
Subject digest:
c3222bfed58335d115c65660432789a0b760355632be1f8648d73c18f40442b5 - Sigstore transparency entry: 937227549
- Sigstore integration time:
-
Permalink:
osyris-project/osyris@bd6667c36f5080c8a06813e1d7d15277ade01ef7 -
Branch / Tag:
refs/tags/3.2.0 - Owner: https://github.com/osyris-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-app.yml@bd6667c36f5080c8a06813e1d7d15277ade01ef7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file osyris-3.2.0-py3-none-any.whl.
File metadata
- Download URL: osyris-3.2.0-py3-none-any.whl
- Upload date:
- Size: 51.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3bb8b30dc59338f9dbe3aee7c7a2fae82439540d0f654552faeae9a0408edb2
|
|
| MD5 |
84604bba67f8dc820c6ee08f8ee3e21b
|
|
| BLAKE2b-256 |
68d82885e55406392e696a6fd4ec3626c6893f9d3b4048c9dcbdfdeb930b2b9d
|
Provenance
The following attestation bundles were made for osyris-3.2.0-py3-none-any.whl:
Publisher:
python-app.yml on osyris-project/osyris
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
osyris-3.2.0-py3-none-any.whl -
Subject digest:
b3bb8b30dc59338f9dbe3aee7c7a2fae82439540d0f654552faeae9a0408edb2 - Sigstore transparency entry: 937227556
- Sigstore integration time:
-
Permalink:
osyris-project/osyris@bd6667c36f5080c8a06813e1d7d15277ade01ef7 -
Branch / Tag:
refs/tags/3.2.0 - Owner: https://github.com/osyris-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-app.yml@bd6667c36f5080c8a06813e1d7d15277ade01ef7 -
Trigger Event:
push
-
Statement type: