Skip to main content

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

Metadata

Release files for ATHENApt 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ATHENApt 0.0.6
File Size Uploaded
athenapt-0.0.6.tar.gz 1.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ATHENApt 0.0.6
File Interpreter ABI Platform
ATHENApt-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / athenapt-0.0.6.tar.gz

Download URL athenapt-0.0.6.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
50d0a3d6bd96fee764b0a07d97c464041a5b400c93649cc18bcdc10c8adf217d
BLAKE2b-256 checksum
How to use checksums
ddb486a62a6d454dcd9d35e0e6a7c2aa7d684dbee2843a1d2691a96af4a610ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / ATHENApt-0.0.6-py3-none-any.whl

Download URL ATHENApt-0.0.6-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe3ed96fe7f8ae35918747d173dc0dcad3177d9cfd6166d9e90a47095544f59c
BLAKE2b-256 checksum
How to use checksums
825f18ec2ebb70f695f7a74b433b941100184817e76fa4a77419b81efefbd5c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page