Skip to main content
Ctrl+K
Astropy v6.0.0 - Home

Site Navigation

  • Getting Started
  • User Guide
  • Development
  • Project details
  • Tutorials
  • GitHub

Site Navigation

  • Getting Started
  • User Guide
  • Development
  • Project details
  • Tutorials
  • GitHub

Section Navigation

  • Installation
  • What’s New in Astropy 6.0?
  • Importing astropy and Sub-packages
  • Example Gallery
    • astropy.coordinates
    • astropy.io
  • Tutorials
  • Get Help
  • Contribute and Report Problems
  • About the Astropy Project
  • Getting Started
  • Example gallery

Example gallery#

This gallery of examples shows a variety of relatively small snippets or examples of tasks that can be done with the Astropy core package. Contributions from the community are encouraged!

Longer-form tutorials (or tutorials for affiliated packages) belong at https://learn.astropy.org (and can be submitted at the associated github repository).

astropy.coordinates#

General examples of the astropy.coordinates subpackage.

Convert a radial velocity to the Galactic Standard of Rest (GSR)

Convert a radial velocity to the Galactic Standard of Rest (GSR)

Determining and plotting the altitude/azimuth of a celestial object

Determining and plotting the altitude/azimuth of a celestial object

Create a new coordinate frame class for Mars

Create a new coordinate frame class for Mars

Transforming positions and velocities to and from a Galactocentric frame

Transforming positions and velocities to and from a Galactocentric frame

Create a new coordinate class (for the Sagittarius stream)

Create a new coordinate class (for the Sagittarius stream)

astropy.io#

General examples of the astropy.io subpackages.

Create a multi-extension FITS (MEF) file from scratch

Create a multi-extension FITS (MEF) file from scratch

Accessing data stored as a table in a multi-extension FITS (MEF) file

Accessing data stored as a table in a multi-extension FITS (MEF) file

Read and plot an image from a FITS file

Read and plot an image from a FITS file

Edit a FITS header

Edit a FITS header

Create a very large FITS file from scratch

Create a very large FITS file from scratch

Convert a 3-color image (JPG) to separate FITS images

Convert a 3-color image (JPG) to separate FITS images

Download all examples in Python source code: examples_python.zip

Download all examples in Jupyter notebooks: examples_jupyter.zip

Gallery generated by Sphinx-Gallery

previous

Importing astropy and Sub-packages

next

astropy.coordinates

On this page
  • astropy.coordinates
  • astropy.io
Edit on GitHub

© Copyright 2011–2023, The Astropy Developers.

Created using Sphinx 7.2.6.

Built with the PyData Sphinx Theme 0.14.4.