Skip to content

Python (Jupyter) based activities used in ASTR352 (Extragalactic Data Science) upper-level undergraduate class at Haverford College.

Notifications You must be signed in to change notification settings

karenlmasters/ASTR352JupyterActivities

Repository files navigation

ASTR352 Jupyter Activities

Python (Jupyter) based activities used in ASTR352 (Extragalactic Data Science) 0.5 credit upper-level undergraduate class at Haverford College.

These examples were practiced and/or developed in a Sciserver.org Compute Jupyter Notebook.

  1. Computing Galactic Orbits of Stars with Gala Astropy tutorial

  2. Galaxy Populations and Data Visualisation - a Notebook in this repository. This uses SciServer and Casjobs to query SDSS data, learn about sample selection, data frames (pandas), and some examples of data visualisation with matplotlib.

  3. Galaxy Kinematics Scaling Relations and MaNGA Data - a Notebook in this repository. This explores MaNGA data mostly related to kinematics, and also does some statistics with line fits, comparing distributions, exploring the Tully-Fisher relation and how different measures of kinematics differ.

Other ideas to explore SDSS-IV MaNGA spectral maps of galaxies with the code, Marvin

  1. Galaxies and the large-scale structure of the Universe - a Notebook in this repository. This explores large scale structure as traced by galaxies in the SDSS survey, and how to compute correlations functions and compare to random distributions.

Other ideas to explore large Scale structure in simulations and/or observations (the notebook in this respository is based in part on some of these)

  1. Galaxy Images as Data - a Notebook in this repository. This explores multi-wavelength images of the Centaurus A galaxy using both jpg and fits image files. We also did the StatMorph Tutorial to try out fitting models to galaxy data.

Useful resources for working with FITS images in python:

  * THINGS (HI 21cm data): https://www2.mpia-hd.mpg.de/THINGS/Data.html (moment 0 is the intensity map). 
  * Digitised Sky Survey (for optical FITS images): https://archive.eso.org/dss/dss
  * List of sources for astronomical FITS files: https://fits.gsfc.nasa.gov/fits_samples.html
  * Astropy, read a FITS image and plot: https://docs.astropy.org/en/stable/generated/examples/io/plot_fits-image.html#sphx-glr-generated-examples-io-plot-fits-image-py
  * Astropy: read RA and Dec from the header of a FITS file: https://learn.astropy.org/tutorials/celestial_coords1.html
  * Astropy overlay contours: https://docs.astropy.org/en/stable/visualization/wcsaxes/images_contours.html
  * Astropy make 3 colour image: https://docs.astropy.org/en/stable/visualization/rgb.html
  * Astropy FITS cube: https://learn.astropy.org/tutorials/FITS-cubes.html

Other Python for Astronomy Resources

Here are a bunch of links to other Astronomical Python Tutorials and/or Examples, some of which have been directly used in the development of materials for this class.

About

Python (Jupyter) based activities used in ASTR352 (Extragalactic Data Science) upper-level undergraduate class at Haverford College.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published