2nd year Practicum
This problem set is meant to exercise your python skills after the introductory lecture and to prepare for the rest of the course.
General information:
The goals of this problem set are to:
The assessment will pay attention to
The actual problem set text is in Dutch, you are encouraged to provide the write-up in English but you are allowed to hand it in in Dutch.
Download the Task 1 description
Download the slides of the first presentation.
The data for this task are provided in a comma-separated-variables (CSV) file. It is straightforward to read these into python using "csv.reader" in the csv library.
import csv
fname='star.list.csv'
my_data=csv.reader(open(fname,'r'))
firstLine = my_data.next()
This opens the file and then reads the first line (the header line in this case) into the variable firstLine. You can then continue to loop over all lines using next(). You can also use the loadtxt routine in numpy to read in more efficiently. My personal preference is to use the pandas library and use the read_csv function there, but this is more advanced.
As described in the task description, the python package sp.py contains routines to find objects and do aperture photometry on them. Note that this is written for python 2.7 - if you are using python3 you might want to use the version kindly provided by Daniel Gomon called sp-python3-Gomon.py - make sure to rename this to sp.py before you use it.
You do need some various data sets for this problem set:
The aim of this problem set is to
In the grading, emphasis will be placed on
Downloads:
The description of problem set 2.
The original radial velocity measurements from 1995.