Skip to main content

This is a Python package for ATHENA++ visualization inspred by ATHENA++ plotting scripts

Project description

Code-Astro-Group

This is a Python package for ATHENA++ visualization inspred by athena++ plotting scripts

This package takes a 2D color plot of a single quantity from an Athena++ .athdf file. 3D data will be sliced, averaged, or summed as requested. A stream plot of a vector field from the same file can be overlayed. The script is best used in Cartesian coordinates. Plots are made in coordinate space like x-y or y-z plane. Averaging and summing are done in a naive way so that the package will not be able to handle AMR(Adaptive Mesh Refinement) output data. Stream plots are similarly done as simply as possible, without accounting for subtleties with vector bases.

Usage (in terminal): plot_lines.py <data_files> <x_names> <y_names> <output_file> [<options>]

Arguments introduction can be found at athena++ plotting scripts

Additional arguments to the original scripts:

-fig_width: width of the figure in inches

-fig_height: height of teh figure in inches

-dpi: dots per inch(DPI) of the output plot

-format: output file format(e.g., png, jpg, tif)

Installation


Example

python3 ATHENApp_plot_tool/plot_slice.py Tests/disk.out2.00800.athdf rho
test_out.png --colormap viridis --vmin 0.0 --vmax 0.2 --x_min=1.0 --x_max=70.0 -dpi 200

Collaborator

Ruiqi Yang

Xiaoyuan Yang

Ruining Zhao


Code/Astro 2024

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

athenapt-0.0.2.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

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

ATHENApt-0.0.2-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file athenapt-0.0.2.tar.gz.

File metadata

  • Download URL: athenapt-0.0.2.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for athenapt-0.0.2.tar.gz
Algorithm Hash digest
SHA256 526f61763c5bbca933a70e9e19483ab3c0b92f6289fd9306f3b0a5c6d3121b60
MD5 8874eb5aa8cf2f5454dfbcc066adc843
BLAKE2b-256 13d6096316624c34ab7ff1d88cdc56bae97fc4f4f5b641612342fb0a36fe6628

See more details on using hashes here.

File details

Details for the file ATHENApt-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ATHENApt-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for ATHENApt-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b33666a9b95dcd31894a9de6b5dd9bfac032b7f6c5f1f80a7587e9eab52e3a4
MD5 048d6c7e90395ae4151822dd437d85ce
BLAKE2b-256 1b57cb831d77b39a20a4e10340726a3eacf76c2acc16e85c2c55824f162cff97

See more details on using hashes here.

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