Skip to main content

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 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.load(71, scale="au", path="data")
osyris.plot.histogram(data["density"], data["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:

osyris.plane({"data": data["density"], "norm": "log"}, # layer 1
             {"data": data["velocity"], "mode": "vec"}, # layer 2
             dx=50,
             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

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-2.0.1.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

osyris-2.0.1-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file osyris-2.0.1.tar.gz.

File metadata

  • Download URL: osyris-2.0.1.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for osyris-2.0.1.tar.gz
Algorithm Hash digest
SHA256 d6badd3e1d919021625ab26048779bcdc55a29fd7db2ee0c1c2d1c98643e6c55
MD5 3471b0cf74020c05eabd42f64f5293ef
BLAKE2b-256 6311438232c77d291301b4e5380d0a139616569fc71123d6ca27ccf925c4657d

See more details on using hashes here.

File details

Details for the file osyris-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: osyris-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for osyris-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45a3d35db4cbdf72f4777683d0c5a9c8bd5e5dbaffbe6415c96263347f272783
MD5 ebbee5073898b6c6f0e7bbed64389eb7
BLAKE2b-256 b4d1595b578664d4b7926fdb0646829a43378f2e84490d37d3add845b79ca5b6

See more details on using hashes here.

Supported by

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