Skip to main content

This is a complementary Python package for ATHENA++ visualization inspred by ATHENA++ plotting scripts. More test examples and .athdf files for test, please visit package Home-page.

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

pip install ATHENApt==0.0.5

Example

python -m ATHENApt.plot_slice disk.out2.00800.athdf vel1 test_plot_vel.png
--direction 3 --x_min 1.0 --x_max 10.0 --vmin 0 --vmax 0.8 -fig_width 12.0 -fig_height 12.0 -dpi 300

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.6.tar.gz (1.2 MB 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.6-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: athenapt-0.0.6.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for athenapt-0.0.6.tar.gz
Algorithm Hash digest
SHA256 50d0a3d6bd96fee764b0a07d97c464041a5b400c93649cc18bcdc10c8adf217d
MD5 def72d3ef0867fe24192151cc54c170f
BLAKE2b-256 ddb486a62a6d454dcd9d35e0e6a7c2aa7d684dbee2843a1d2691a96af4a610ac

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ATHENApt-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fe3ed96fe7f8ae35918747d173dc0dcad3177d9cfd6166d9e90a47095544f59c
MD5 dcb808b14eea1ae17210c531e89ed83c
BLAKE2b-256 825f18ec2ebb70f695f7a74b433b941100184817e76fa4a77419b81efefbd5c4

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