Skip to main content

Astro data analysis and plotting package

Project description

            /$$                            /$$                    /$$                        
           |__/                           | $$                   | $$                        
 /$$    /$$ /$$  /$$$$$$ /$$  /$$  /$$$$$ | $$  /$$$$$   /$$$$$ /$$$$$$   /$$$$$   /$$$$$$ 
|  $$  /$$/| $$ /$$____/| $$ | $$ |____ $$| $$ |____ $$ /$$___/|_  $$_/  /$$__ $$ /$$__  $$
 \  $$/$$/ | $$|  $$$$$ | $$ | $$  /$$$$$$| $$  /$$$$$$|  $$$$$  | $$   | $$ \__/| $$  \ $$
  \  $$$/  | $$ \___  $$| $$ | $$ /$$__ $$| $$ /$$__ $$ \___  $$ | $$ /$| $$     | $$  | $$
   \  $/   | $$ /$$$$$$/|  $$$$$/|  $$$$$$| $$|  $$$$$$ /$$$$$$/ |  $$$$| $$     |  $$$$$$/
    \_/    |__/|______/  \_____/  \______/|__/ \______/|______/   \___/ |__/      \______/ 

VisualAstro

PyPI Version Tests

visualastro is an astrophysical visualization system with convenient functions for easy visualization of common astronomical data. The package is developed with ease of use in mind, and making publication ready plots.

Installation

Currently, the most stable version of python for visualastro is version >=3.10. To install visualastro, it is advised to create a new conda environment if possible:

$ conda create envname -c conda-forge python=3.14
$ conda activate envname

Then install the dependencies with:

$ conda install -c conda-forge \
    astropy dust_extinction matplotlib numpy regions reproject spectral-cube specutils scipy tqdm

For additional interactive functionality inside of jupyter lab:

$ conda install -c conda-forge ipympl ipywidgets jupyterlab

For classic jupyter notebook users:

$ conda install -c conda-forge ipympl ipywidgets notebook jupyter_server notebook-shim

And finally run:

$ pip install visualastro

NOTE: To ensure that interactive mode works in notebooks, first activate your conda environment and then activate jupyter notebook!

Compatible Data

  • 2D images
  • 3D spectral cubes
  • 1D spectra with gaussian fitting tools

Features

  • Simple, high-level wrapper functions for common astrophysical plots
  • Custom matplotlib style sheets optimized for publication-quality figures
  • Full compatibility with WCS, FITS

Documentation

The full documentation can be found on github at https://github.com/elkogerville/VisualAstro

Dependencies

VisualAstro requires:

astropy, dust_extinction, matplotlib, numpy, regions, reproject, spectral-cube, specutils, scipy, tol_colors, and tqdm.

Credits

Fonts

VisualAstro includes Hershey-style TrueType fonts from the smplotlib project by Jiaxuan Li, used under the MIT License. Citation:

@software{jiaxuan_li_2023_8126529,
  author       = {Jiaxuan Li},
  title        = {AstroJacobLi/smplotlib: v0.0.9},
  month        = jul,
  year         = 2023,
  publisher    = {Zenodo},
  version      = {v0.0.9},
  doi          = {10.5281/zenodo.8126529},
  url          = {https://doi.org/10.5281/zenodo.8126529},
}

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

visualastro-0.1.4.tar.gz (230.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

visualastro-0.1.4-py3-none-any.whl (248.1 kB view details)

Uploaded Python 3

File details

Details for the file visualastro-0.1.4.tar.gz.

File metadata

  • Download URL: visualastro-0.1.4.tar.gz
  • Upload date:
  • Size: 230.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for visualastro-0.1.4.tar.gz
Algorithm Hash digest
SHA256 abd9a832c05d4ce7f1e67ec1534f0d8e13b8d6fec8df45aed060c8c87febd90c
MD5 4f9ae6bdb8d648fb4f29daacc6be8990
BLAKE2b-256 883b7cd5549705df65dde83997a2410411fc2a9f07ecd5983592c7465c7365a4

See more details on using hashes here.

File details

Details for the file visualastro-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: visualastro-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 248.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for visualastro-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9ef8d94319c4e4f5a9744f9259cdcf782b77d014775e1e0fb1ca5d9355567c85
MD5 4a656690c859b22e9f39068db4af0520
BLAKE2b-256 36e52733790eeec96a359bc5b3fc0199689a4ce65b5f50f9dd367cc0ce466312

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