Skip to main content

A package to visualize AMR data from the RAMSES code

Project description

Documentation Status Join the chat at https://app.gitter.im/#/room/#osyris-project_community:gitter.im

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)

hist2d

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",
)

map2d

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

Icon vector created by frimufilms - www.freepik.com

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

osyris-3.2.0.tar.gz (184.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osyris-3.2.0-py3-none-any.whl (51.7 kB view details)

Uploaded Python 3

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

Hashes for osyris-3.2.0.tar.gz
Algorithm Hash digest
SHA256 c3222bfed58335d115c65660432789a0b760355632be1f8648d73c18f40442b5
MD5 cafed249c308a0cfad24279efb5b8d6a
BLAKE2b-256 4d47729ed861616b791b412fb09dc294e2202333cdaf89521d60c9d50c764d13

See more details on using hashes here.

Provenance

The following attestation bundles were made for osyris-3.2.0.tar.gz:

Publisher: python-app.yml on osyris-project/osyris

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for osyris-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3bb8b30dc59338f9dbe3aee7c7a2fae82439540d0f654552faeae9a0408edb2
MD5 84604bba67f8dc820c6ee08f8ee3e21b
BLAKE2b-256 68d82885e55406392e696a6fd4ec3626c6893f9d3b4048c9dcbdfdeb930b2b9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for osyris-3.2.0-py3-none-any.whl:

Publisher: python-app.yml on osyris-project/osyris

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page