learn.astropy.org Open in urlscan Pro
2606:50c0:8003::153  Public Scan

Submitted URL: http://tutorials.astropy.org/
Effective URL: https://learn.astropy.org/
Submission: On November 17 via api from US — Scanned from US

Form analysis 5 forms found in the DOM

<form novalidate="" class="ais-SearchBox-form" action="" role="search"><input type="search" placeholder="Search here…" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" required="" maxlength="512" value=""
    class="ais-SearchBox-input"><button type="submit" title="Submit your search query." class="ais-SearchBox-submit"><svg class="ais-SearchBox-submitIcon" xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 40 40">
      <path
        d="M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z">
      </path>
    </svg></button><button type="reset" title="Clear the search query." class="ais-SearchBox-reset" hidden=""><svg class="ais-SearchBox-resetIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="10" height="10">
      <path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>
    </svg></button></form>

<form novalidate="" class="ais-SearchBox-form" action="" role="search"><input type="search" placeholder="Search here…" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" required="" maxlength="512" value=""
    class="ais-SearchBox-input"><button type="submit" title="Submit your search query." class="ais-SearchBox-submit"><svg class="ais-SearchBox-submitIcon" xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 40 40">
      <path
        d="M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z">
      </path>
    </svg></button><button type="reset" title="Clear the search query." class="ais-SearchBox-reset" hidden=""><svg class="ais-SearchBox-resetIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="10" height="10">
      <path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>
    </svg></button></form>

<form novalidate="" class="ais-SearchBox-form" action="" role="search"><input type="search" placeholder="Search here…" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" required="" maxlength="512" value=""
    class="ais-SearchBox-input"><button type="submit" title="Submit your search query." class="ais-SearchBox-submit"><svg class="ais-SearchBox-submitIcon" xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 40 40">
      <path
        d="M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z">
      </path>
    </svg></button><button type="reset" title="Clear the search query." class="ais-SearchBox-reset" hidden=""><svg class="ais-SearchBox-resetIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="10" height="10">
      <path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>
    </svg></button></form>

<form novalidate="" class="ais-SearchBox-form" action="" role="search"><input type="search" placeholder="Search here…" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" required="" maxlength="512" value=""
    class="ais-SearchBox-input"><button type="submit" title="Submit your search query." class="ais-SearchBox-submit"><svg class="ais-SearchBox-submitIcon" xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 40 40">
      <path
        d="M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z">
      </path>
    </svg></button><button type="reset" title="Clear the search query." class="ais-SearchBox-reset" hidden=""><svg class="ais-SearchBox-resetIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="10" height="10">
      <path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>
    </svg></button></form>

<form novalidate="" class="ais-SearchBox-form" action="" role="search"><input type="search" placeholder="Search here…" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" required="" maxlength="512" value=""
    class="ais-SearchBox-input"><button type="submit" title="Submit your search query." class="ais-SearchBox-submit"><svg class="ais-SearchBox-submitIcon" xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 40 40">
      <path
        d="M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z">
      </path>
    </svg></button><button type="reset" title="Clear the search query." class="ais-SearchBox-reset" hidden=""><svg class="ais-SearchBox-resetIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="10" height="10">
      <path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>
    </svg></button></form>

Text Content

Contribute
Astropy Project


LEARN ASTROPY

Learn how to use Python for astronomy through tutorials and guides that cover
Astropy and other packages in the astronomy Python ecosystem.

Search by


FORMAT

 * tutorial 25
 * guide 1


ASTROPY PACKAGES

 * coordinates 10
 * astroquery 9
 * units 8
 * modeling 4
 * wcs 4
 * spectral cube 3
 * table 3
 * synphot 2
 * constants 1
 * convolution 1

Show more


PYTHON PACKAGES

 * matplotlib 14
 * numpy 2
 * scipy 1

Show more


TASKS

 * fits 6
 * object-oriented programming 5
 * file input/output 4
 * colorbar 3
 * histogram 3
 * scatter plots 3
 * spectroscopy 3
 * data cubes 2
 * error bars 2
 * image manipulation 2

Show more


SCIENCE DOMAINS

 * radio astronomy 5
 * astrostatistics 3
 * physics 3
 * astrometry 1
 * extinction 1
 * observational astronomy 1

Show more
 1.  guide
     
     
     CCD DATA REDUCTION GUIDE
     
     The purpose of this text is to walk through image reduction and photometry
     using Python, especially Astropy and its affiliated packages. It assumes
     some basic familiarity with astronomical images and with Python. The
     inspiration for this work is a pair of guides written for IRAF, “A User’s
     Guide to CCD Reductions with IRAF” (Massey 1997) and “A User’s Guide to
     Stellar CCD Photometry with IRAF” (Massey and Davis 1992).

 2.  tutorial
     
     
     MODELING 2: CREATE A USER DEFINED MODEL USING ASTROPY.MODELING
     
     In this tutorial, we will learn how to define a new model in two ways: with
     a compound model and with a custom model.

 3.  tutorial
     
     
     EXTRACTING AND PLOTTING POSITION-VELOCITY DIAGRAMS
     
     In this tutorial, we will extract position-velocity (PV) diagrams from a
     spectral cube and plot them.

 4.  tutorial
     
     
     CUBE REPROJECTION TUTORIAL
     
     Spectroscopic cube observations taken at different wavelength can trace the
     motion of gas or stars using spectral lines, but often lines at different
     wavelengths give different information. For example, one might observe a
     galaxy in the 21cm line of HI and the 115 GHz line of CO, or a
     protoplanetary disk in a line of N2H+ and a line of CO, or a galactic disk
     in the H-alpha and H-beta lines (in absorption or emission). In order to
     compare these data sets pixel-by-pixel, they must be placed onto a common
     grid with common resolution.

 5.  tutorial
     
     
     ANALYZING INTERSTELLAR REDDENING AND CALCULATING SYNTHETIC PHOTOMETRY
     
     In this tutorial, we will look at some extinction curves from the
     literature, use one of those curves to deredden an observed spectrum, and
     practice invoking a background source flux in order to calculate magnitudes
     from an extinction model.

 6.  tutorial
     
     
     SPECTROSCOPIC DATA REDUCTION PART 3: EXTRACTING THE FINAL
     WAVELENGTH-CALIBRATED SPECTRUM
     
     This tutorial, the third in a series, shows how to apply a trace and a
     wavelength solution to science data. It then shows how to do basic
     analysis, i.e., line fitting.

 7.  tutorial
     
     
     SPECTROSCOPIC DATA REDUCTION PART 2: WAVELENGTH CALIBRATION
     
     This tutorial will walk through extraction of a calibration lamp spectrum
     using an existing trace.

 8.  tutorial
     
     
     SPECTROSCOPIC DATA REDUCTION PART 1: TRACING
     
     This tutorial will walk through the derivation of a spectroscopic trace
     model and extraction using astropy tools.

 9.  tutorial
     
     
     ANALYZING UVES SPECTROSCOPY WITH ASTROPY
     
     This tutorial follows our real-life data analysis of MN Lup and the code
     developed below is taken (with only minor modifications) from the code that
     we used to prepare the publication. The plots that we will develop below
     appear in very similar form in the article published in ApJ, 771, 1, 70.

 10. tutorial
     
     
     USING SCIPY.INTEGRATE
     
     In this tutorial, we will use the examples of the Planck function and the
     stellar initial mass function (IMF) to illustrate how to integrate
     numerically, using the trapezoidal approximation and Gaussian quadrature.
     We will also explore making a custom class, an instance of which is
     callable in the same way as a function. In addition, we will encounter
     astropy's built-in units, and get a first taste of how to convert between
     them. Finally, we will use $\LaTeX$ to make our figure axis labels easy to
     read.

 11. tutorial
     
     
     MAKE A PLOT WITH BOTH REDSHIFT AND UNIVERSE AGE AXES USING
     ASTROPY.COSMOLOGY
     
     Each redshift corresponds to an age of the universe, so if you're plotting
     some quantity against redshift, it's often useful show the universe age
     too. The relationship between the two changes depending the type of
     cosmology you assume, which is where astropy.cosmology comes in. In this
     tutorial we'll show how to use the tools in astropy.cosmology to make a
     plot like this:

 12. tutorial
     
     
     USING ASTROPY QUANTITIES AND UNITS FOR ASTROPHYSICAL CALCULATIONS
     
     In this tutorial we present some examples showing how Astropy's Quantity
     object can make astrophysics calculations easier. The examples include
     calculating the mass of a galaxy from its velocity dispersion and
     determining masses of molecular clouds from CO intensity maps. We end with
     an example of good practices for using quantities in functions you might
     distribute to other people.

 13. tutorial
     
     
     READ IN CATALOG INFORMATION FROM A TEXT FILE AND PLOT SOME PARAMETERS
     
     This tutorial demonstrates the use of astropy.io.ascii for reading ASCII
     data, astropy.coordinates and astropy.units for converting RA (as a
     sexagesimal angle) to decimal degrees, and matplotlib for making a
     color-magnitude diagram and on-sky locations in a Mollweide projection.

 14. tutorial
     
     
     SYNTHETIC IMAGES FROM SIMULATED DATA
     
     In this tutorial, we will:

 15. tutorial
     
     
     MODELING 1: MAKE A QUICK FIT USING ASTROPY.MODELING
     
     In this tutorial, we will become familiar with the models available in
     astropy.modeling and learn how to make a quick fit to our data.

 16. tutorial
     
     
     VIEWING AND MANIPULATING FITS IMAGES
     
     This tutorial demonstrates the use of astropy.utils.data to download a data
     file, then uses astropy.io.fits to open the file, and lastly uses
     matplotlib to view the image with different color scales and stretches and
     to make histograms. In this tutorial we've also included a demonstration of
     simple image stacking.

 17. tutorial
     
     
     EDIT A FITS HEADER
     
     This tutorial describes how to read in and edit a FITS header, and then
     write it back out to disk. For this example we're going to change the
     OBJECT keyword.

 18. tutorial
     
     
     WORKING WITH FITS-CUBES
     
     In this tutorial we will visualize 2D and 3D data sets in Galactic and
     equatorial coordinates.

 19. tutorial
     
     
     VIEWING AND MANIPULATING DATA FROM FITS TABLES
     
     This tutorial demonstrates the use of astropy.utils.data to download a data
     file, then uses astropy.io.fits and astropy.table to open the file. Lastly,
     matplotlib is used to visualize the data as a histogram.

 20. tutorial
     
     
     COMPUTING GALACTIC ORBITS OF STARS WITH GALA
     
     We will use data from the Gaia mission to get sky positions, distances
     (parallaxes), proper motions, and radial velocities for a set of stars that
     are close to the Sun. We will then transform these observed, heliocentric
     kinematic measurements to Galactocentric Cartesian coordinates and use the
     positions and velocities as initial conditions to compute the orbits of
     these stars in the galaxy using the gala Python package. We will compare
     the orbits of high-mass main sequence (i.e. young) stars to the orbits of
     lower-mass main sequence stars to show that young stars have smaller
     vertical amplitudes.

 * Learn Astropy
 * Contribute to Learn Astropy


CODE OF CONDUCT

The Astropy project is committed to fostering an inclusive community. The
community of participants in open source Astronomy projects is made up of
members from around the globe with a diverse set of skills, personalities, and
experiences. It is through these differences that our community experiences
success and continued growth. Learn more.


SPONSORS

The Learn Astropy website was developed under a grant by the University of
Toronto Dunlap Institute for Astrophysics.



Copyright 2024 The Astropy Developers