4. Python Preparation Course#

Here, I will put materials you can study and soem external references for studying python rather than much of other explations. You must install python first (e.g., Anaconda). See the note Softwares to install python, and then Prepare Python to set up the environments.

4.1. Tutorials#

  • You will learn pathlib and other simple python grammars throughout the first few homework assignments.

  • numpy tutorial: Basic numpy to a bit advanced masking.

  • pandas tutorial: Basic pandas, including iteration and grouping.

  • astropy fits tutorial: Basic FITS I/O and explanations about FITS, header, extensions.

4.2. HW Assignments#

4.3. References#

4.3.1. References - Python in Astronomy#

  1. Matt Craig’s ccd as book

    • HIGHLY RECOMMENDED!

    • Explains details about the astronomical images, with worked examples. If you’re not familiar with astronomical data reduction, this is a good reference to start with.

  2. Matt Craig’s reducer

    • A simple Jupyter Notebook to reduce data, which the author used for his classes.

    • If you want, you may get ideas from this and use them in your own code.

  3. Lecture note for Técnicas Experimentales en Astrofísica

    • Unfortunately, this is now inaccessible (retrieved 2022-04-05)..

    • I was recommended by one of my friends at MPI, and this looks very well-structured for beginners. It can be a good complement to this lecture note.

  4. astropy tutorial

  5. The latest or stable official websites for each package, e.g., astropy, photutils and ccdproc themselves, are good references.

4.3.2. General Python#

The materials below are from the SPLIT Program of SNU (retrieved 2019 Sep)

  • Codecademy Learn Python

  • Google Python Class

  • 한입에 쏙 파이썬, 김왼손의 왼손코딩 YouTube

  • Python 강의-김규태(고려대학교) YouTube

  • MIT OCW 6.0001 Introduction to Computer Science and Programming in Python. Fall 2016 YouTube

4.3.3. Jupyter Notebook / Jupyter Lab#