:orphan: .. _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 `_). .. raw:: html
.. raw:: html
astropy.coordinates ------------------- General examples of the `astropy.coordinates` subpackage. .. raw:: html
.. raw:: html
.. only:: html .. image:: /generated/examples/coordinates/images/thumb/sphx_glr_rv-to-gsr_thumb.png :alt: :ref:`sphx_glr_generated_examples_coordinates_rv-to-gsr.py` .. raw:: html
Convert a radial velocity to the Galactic Standard of Rest (GSR)
.. raw:: html
.. only:: html .. image:: /generated/examples/coordinates/images/thumb/sphx_glr_plot_obs-planning_thumb.png :alt: :ref:`sphx_glr_generated_examples_coordinates_plot_obs-planning.py` .. raw:: html
Determining and plotting the altitude/azimuth of a celestial object
.. raw:: html
.. only:: html .. image:: /generated/examples/coordinates/images/thumb/sphx_glr_plot_galactocentric-frame_thumb.png :alt: :ref:`sphx_glr_generated_examples_coordinates_plot_galactocentric-frame.py` .. raw:: html
Transforming positions and velocities to and from a Galactocentric frame
.. raw:: html
.. only:: html .. image:: /generated/examples/coordinates/images/thumb/sphx_glr_plot_sgr-coordinate-frame_thumb.png :alt: :ref:`sphx_glr_generated_examples_coordinates_plot_sgr-coordinate-frame.py` .. raw:: html
Create a new coordinate class (for the Sagittarius stream)
.. raw:: html
astropy.io ---------- General examples of the ``astropy.io`` subpackages. .. raw:: html
.. raw:: html
.. only:: html .. image:: /generated/examples/io/images/thumb/sphx_glr_create-mef_thumb.png :alt: :ref:`sphx_glr_generated_examples_io_create-mef.py` .. raw:: html
Create a multi-extension FITS (MEF) file from scratch
.. raw:: html
.. only:: html .. image:: /generated/examples/io/images/thumb/sphx_glr_fits-tables_thumb.png :alt: :ref:`sphx_glr_generated_examples_io_fits-tables.py` .. raw:: html
Accessing data stored as a table in a multi-extension FITS (MEF) file
.. raw:: html
.. only:: html .. image:: /generated/examples/io/images/thumb/sphx_glr_plot_fits-image_thumb.png :alt: :ref:`sphx_glr_generated_examples_io_plot_fits-image.py` .. raw:: html
Read and plot an image from a FITS file
.. raw:: html
.. only:: html .. image:: /generated/examples/io/images/thumb/sphx_glr_modify-fits-header_thumb.png :alt: :ref:`sphx_glr_generated_examples_io_modify-fits-header.py` .. raw:: html
Edit a FITS header
.. raw:: html
.. only:: html .. image:: /generated/examples/io/images/thumb/sphx_glr_skip_create-large-fits_thumb.png :alt: :ref:`sphx_glr_generated_examples_io_skip_create-large-fits.py` .. raw:: html
Create a very large FITS file from scratch
.. raw:: html
.. only:: html .. image:: /generated/examples/io/images/thumb/sphx_glr_split-jpeg-to-fits_thumb.png :alt: :ref:`sphx_glr_generated_examples_io_split-jpeg-to-fits.py` .. raw:: html
Convert a 3-color image (JPG) to separate FITS images
.. raw:: html
.. toctree:: :hidden: :includehidden: /generated/examples/coordinates/index.rst /generated/examples/io/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: examples_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: examples_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_