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


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.4.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.4-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for athenapt-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4a9eb62b6e600a6a1626161c4ab33b515cdeb136ff0ec6a59a2b19622b7d708e
MD5 761595993d08ffe8605c856082bb0e48
BLAKE2b-256 c1ad31950480c2608cb3b579a67be9c4c06239030d6969cc1093a39fbeb9addd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ATHENApt-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 13c6a294252519665195ef18a25a5488255fd182eae13313b9294fc5f99305ab
MD5 e31f2fc2bbb4f92a39feffc167335519
BLAKE2b-256 95eaa8290072bcb3faa5226eec811be73c24e313244720ff80cac2905b3ae44d

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