Mapa do Site
Siga-nos no Facebook Siga-nos no Twitter Canal YouTube
Centro de Astrofísica da Universidade do Porto

Python for Astronomers

Jorge H. C. Martins, André Miguel A. C. V. Silva

In Astronomy, like in many other scientific research areas, the exploration of data is essential. The exploration of data includes many topics, including the:

  • gathering of data, coming from simulations or observations;
  • manipulation of the data, to create new readable/usable scientific data;
  • visualization of data, to understand what is going on with the data;
  • communication of the results, using figures for reports/papers/presentations.

There are many tools available for this purpose, but in most of the cases, it is really necessary to create our own tools, making use of programming languages.

Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C. Although python is outstanding to solve quick problems, such as most the ones needed for the exploration of data, it can also be used to implement more complete and heavy applications.

In this hands-on course it will be presented the more important capabilities of Python and specialized libraries for the exploration of scientific data, with special focus for Astronomy.

Level: All interested people.

Requirements: The attendees should have a basic knowledge on programming. The goal of these advance course is not to teach how to program from scratch.

Documentation: Installation & configuration documentation (conda, pip, etc); class presentations in PDF.

Sessão 1: General Overview (André Silva)
9 abril 2021

  • basic Python
  • basic file and data manipulation
  • exception handling

Sessão 2: Scientific Python (Jorge Martins)
16 abril 2021

  • scientific file and data manipulation
  • scientific libraries

Sessão 3: Data visualization (Jorge Martins)
23 abril 2021

  • on the shell
  • logger
  • plots and graphs

Sessão 4: Advanced Python (André Silva)
30 abril 2021

  • multiprocessing
  • advanced data manipulation