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

Uploaded Python 3

File details

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

File metadata

  • Download URL: athenapt-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 2437bf2ccc4b4f75db2784dd67db61cd0d5d7b86a1cadecc133213479bfe56e3
MD5 6c9aef0e8269a5ef27b10a1d8f587a1c
BLAKE2b-256 b7ed2c414913d164d4adf37f3d686a338c6b0e7a63360db103a9378692814046

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ATHENApt-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ae2660acd2706080149083d414802fb55bf847b4313fbdc7617ad24a15e699fa
MD5 04f3c356a14ac390af3de032291307c6
BLAKE2b-256 dcbd3a8fe7038828b037c62458e4286783052fb244225d89fff36c6930efcef5

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