The main purpose of this lab is to familiarize the participants with the Monte Carlo techniques and enable them to produce simulated light curves having the same statistical properties with a real observed astronomical light curve.
Since some of the participants may not be familiar with the Python language as a first step we provide them with a very simple program that enables them to produce artificial light curves having a given underlying Power Spectral Density function (PSD) following Timmer and Koenig, Astron.Astrophys. 300, 707-710 (1995). The program accepts as inputs:
ld: the desired length of the data set
lds: the length of the overall simulated long-light curve which is going to be chopped to the desired length, ld (in ordet to take into account the effect of "red noise leak")
psdindexLow: the lower frequency PSD index
The inputs 3,4,5 define an underlying PSD that has a broken power-law shape. Almost always the variability properties of AGN can be described from a power law with psdindexLow<psdindexHigh and values between 0 and 2.5. For the case psdindexLow=psdindexHigh the outcome is a light curve having a simple (i.e. not broken) power-law shape PSD.
It would be very useful for the school participants to experiment with the code by changing the input parameters (i.e. AGN-Seyfert like X-ray light curves psdindexLow=0.50 and psdindexHigh=2.50 or AGN-blazar like X-ray light curves psdindexLow=psdindexHigh=2.00). Also it is desirable that the participants play around with the various commands of the code in order to get a feeling for the Python language and even come up with a neater and faster version of it. Keep in mind that since the code is written in a very simple line-by-line form, in order to be unambiguous and easily understood by everyone, it is not optimized for speed and extended simulations. Most of the times several Python commands can be condensed in a single line (single-liners) but this is much more difficult to be understood by beginners. It would be very fruitful if there were any experts among the participants in Python to share their views and ideas with the rest of us.
Please find the python-program here which you can edit and change with any text editor.
After the participants understand how to produce their own light curves having a given PSD as an input, they will be able to work on a series of exercises.
(Time permitted) Very simple one parameter PSD fitting
I hope that this helps. Please contact me if you need anything anytime D.Emmanoulopoulos@soton.ac.uk. Since I am going to be away for a couple of days it may take some time to receive an answer...sorry :-(
CU in Heidelberg!