Skip to main content

Astro data analysis and plotting package

Project description

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

VisualAstro

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

PyPI Version

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

$ conda create envname -c conda-forge python=3.11
$ 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, 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.3.tar.gz (223.3 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.3-py3-none-any.whl (239.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: visualastro-0.1.3.tar.gz
  • Upload date:
  • Size: 223.3 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.3.tar.gz
Algorithm Hash digest
SHA256 ab5782b2ca55615988ed81ea3d6f7d4679efe83f79e14be3a5514dd17cf76d6c
MD5 0e8903d1f66d1b440f8ebb454f11621f
BLAKE2b-256 d4dc24d5c52a7fd59cb0f295abd6b5f43f106c2f7c651d37cee38d567168292b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: visualastro-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 239.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c0795b7bdb8a5933662e4be986702881c87de3365edcf9c3199bef23edd2d9bc
MD5 a7ea1611b68c35163f706f25b982f15f
BLAKE2b-256 4cfd527bbcc0bdd7ae81460c0fbc5c94fe0f86a0ab0b10540ba221901be09ae2

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