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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: athenapt-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 ee945f0c8e451a18b70cda93bcb2e63a2983875d33700c42edf8114dd7ec125a
MD5 c95f17448fbd90b87a63cc216aa015bc
BLAKE2b-256 a78568a335aa34c8c044defeb4f5317ddb679ed81c845081a5fd6efe39a75457

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ATHENApt-0.0.5-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.9.19

File hashes

Hashes for ATHENApt-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1b39837959f6511de3eafdf0b97e059020d2ea69459bb0c89d4bcb88c4ff5b20
MD5 544d9f82b15d3083b74c9930d6f8a19f
BLAKE2b-256 57cdb4832bbbd35d7a6977d093abce30f211bb7f038fea698d3b4caa4ade0fd0

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