Tutorials
Set of Jupyter Notebooks, along with datafiles, to get started with Scientific Computing in Astronomy
How to setup Jupyter notebooks
How to use Jupyter notebooks
-
Opening the Notebooks
-
Jupyter Notebook Dashboard
-
Creating a new notebook document
-
Overview of the Notebook UI
-
Cell types
-
Modal Editor
Tutorial 1 : Basics of Python
- Basic syntax, and syntax for loops, conditional statements, and opening simple files, (lists, tuples and dictionaries)
- Parse a file and make a list containing the number of moons for each planet.
Tutorial 2 : Introduction to NumPy
- Numpy arrays, indexing, slicing.
- Parse file as above using numpy (np.where, for example).
- Beehive Cluster.
Tutorial 3 : Functions in Python
- Defining functions.
- Hubble Law, Number density of galaxies.
Tutorial 4 : Introduction to Matplotlib (Matplotlib I)
- Simple Plotting. Labels, colors, title, grid
- GW astronomy
Tutorial 5 : Introduction to Astropy and FITS format (Astropy I)
- Using Astropy.io to import datafiles, astropy.table.
- Take the data from a harder to parse data file.
- Introduction to fits files.
Tutorial 6 : Web Scraping
- Scrape web for some data (try to do this for constellations)
- Make an image of the constellation using RA, Dec or Mars in retrograde (simple scatter plot)
Tutorial 7 : Curve Fitting (SciPy I)
- Curve fitting
- Scrape data from Cepheids, and plot Period-Luminosity relation
- Frequency vs time inspiral
Tutorial 8 : Image Reduction
- Using Bias and Flats.
- Reducing an image of a popular target. (And further processing)
Tutorial 9 : Advanced Plotting (Matplotlib II)
- Subplots, and Using Object Oriented approach
- Make several HR diagrams, say, with different filters.
- Compare features, and observe that UV filters are good at filtering multiple stellar populations.
Tutorial 10 : Astropy Quantities (Astropy II)
- Using astropy quantities, make a black body spectra.
- Using filters (SDSS), find the instrumental magnitude of a star in different bands.
- Have a function which returns these values, given the temperature of a star.
Tutorial 11 : Classes in Python
- Make a class for a star and a filter.
- Rewrite the previous codes to make it more adaptable to changes.
Tutorial 12 : Time Domain Astronomy (SciPy II)
- Time Series analysis.
- Find a peak/Periodicity search.
Tutorial 13 : Coordinate Systems (Astropy III)
- Coordinate Systems and Time.
- Convert coordinates. Plot an analemma of the Sun. See how it changes with latitude.
Tutorial 14 : Differential Equations (SciPy III)
- Differential Equation solving. Scipy.integrate.solve_ivp.
- Solve differential equations for some system numerically.