Skip to content

This repository will hold a series of Python Tutorials dedicated to astronomers that are interested in learning Python.

License

Notifications You must be signed in to change notification settings

b1quint/Python-Tutorial-Series

Repository files navigation

Python Tutorial Series

Binder

This repository will hold a series of Python Tutorials dedicated to astronomers that are interested in learning Python. My idea is to have one of the Tutorials per month. This will happen during the Science Coffee time at the AURA Lecture Hall.

The material here presented was based on the material produced for the Python BootCamp 2017 at IAG-USP.

SUSD is currently working on a meta-package written in pure Python to reduce GEMINI data. This implies that astronomers will have to learn basic concepts of this language. As part of the user support, we will provide a series of Python Tutorials with the following format: 1.5 hour tutorial every 4 weeks with expositive and interactive material (exercises).

Please, find the information and links for the existing presentations. Mp4 recordings are available only to internal Gemini Users. If you need access, please contact me directly.

  1. Basics 1 (Download in PPTX or PDF or MP4)

    1. Python Overview
    2. Python as Console
    3. Python as Script
    4. Variables
  2. Basics 2 (Download in PPTX or PDF or Mp4)

    1. Code Flow
    2. Functions
    3. Classes
      1. Attributes
      2. Methods
    4. Sub-Classes
  3. Basics 3 (Download in PPTX or PDF)

    1. (Re)Using your code
      1. Modules
      2. Packages
    2. Py2/3 conversion
    3. External Packages
    4. Virtual Environments
    5. (Mini/Ana)Conda
  4. Data Analysis and Visualization 1 (Download in PPTX or in PDF or Notebook or Mp4)

    1. Numpy
    2. Matplotlib
    3. 2D Plots
  5. Data Analysis and Visualization 2 (Download in PPTX or in PDF or Mp4)

    1. Numpy Tricks
      1. Broadcasting
      2. Meshgrid
      3. mgrid
    2. Image Display
      1. Using imshow
      2. Origin
      3. Colormaps
      4. Colorbar
    3. Image Manipulation
      1. Reading PNG files
      2. Slice and merging
      3. Adding some noise
      4. Some stats with NumPy
    4. Using SciPy
      1. Reference Material
      2. Statistical Mode
      3. ndimage
    5. Masked Arrays
  6. AstroPy (Download in PPTX or in PDF or see the Jupyter Notebook or Mp4)

    1. Fits I/O
      1. getdata
      2. getheader
      3. open
      4. Header Data Units
    2. Image Display
      1. Simple display
      2. Changing contrast
      3. Masking Bad Pixels
      4. Using WCS
    3. imexam
      1. A simple example
    4. photutils
      1. Using DAOStarFind
      2. Using IRAFStarFind
      3. More
  7. Your code pretty and healthy (Download in PPTX or PDF or Mp4)

    1. Code Style
    2. Documentation
    3. Testing
    4. Project Structure
    5. Versioning and Version Control

About

This repository will hold a series of Python Tutorials dedicated to astronomers that are interested in learning Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published