XMM-Newton & Chandra: analysis scripts @ Lecce

Department of Mathematics and Physics "Ennio De Giorgi", University of Salento and INFN - Lecce, Italy
Via per Arnesano 73100 Lecce (Italy)

Introduction to scripting Useful documents on XMM-Newton Last CCF ESA Astrofisica@Unisalento
Description of Individual Scripts Xmm-Newton Calibration Notes XMM XSA ESAC Team
Chandra Chandra Ciao Chandra Calibration Notes NASA Thesis-Package@Unisalento

Introduction to scripting

For many of us, time is precious. For those of us who are used to data-analysis, time is even more precious! And, if you are an adept to the XMM-Newton and Chandra data and familiar with the SAS (any version) and CIAO (any version) line commands, you can also understand how scripting is essential for doing repetitive works.
Briefly speaking, scripting is a way by which one can tell the computer to do the job. Of course, one has (at least) to understand the script procedure in order to get correct and meaningful results.
Here, you find several .csh scripts. I recommend the reader to get a good tutorial on C-shell scripting language (many of them around): read it, try youself small scripts and then experiment new ones.

The following C-shell scripts were written in order to reduce and analyse XMM-Newton data in a fast and simple way. I recommend the reader to check what one particular script does, understand it and possibly adapt it for his/her needs. Possibly, bugs are out there, so be careful!

The scripts make use of SAS tasks and HEASOFT's FTOOLS utilities. Many of them combine several SAS commands together and call other C-shell scripts in order to do a given task. Even if we tried to write the scripts as general as possible, there are default values that may not fit your standard. Moreover, the codes are always under development - let's say - the codes on this web-page are not necessarily the latest and goodest ones. So, do not hesitate to modify the codes: improvements are welcome.

As usual, before starting a given script, the SAS (and/or CIAO) environment has to be started up correctly. We address the reader to the SAS and CIAO web-pages where further details can be found.

A last note before starting: it is always a good idea to redirect the output of a script to a log file, using tee. i.e.:
script.csh argument1 argumument2 ... argumentN | & tee script_log.txt
In this case, you will have memory of what the script did as well as the input arguments you have used.

To download an individual script, simply click on it. A zipped file containing all the scripts is also available here.

Note also that a few codes are written in IDL and Fortran. Just to make things easier!

Return to top


Description of Individual Scripts