Astro ROOT
I've been trying AstroROOT recently. Installing it was very easy. I first ran the cookbook.c program as a ROOT macro. It worked very well, created the FITS files and read them back again. Use the modified longnam.h file with it. Then do:
You should see:
Then I modified it slightly into a readxte.c macro to read XTE lightcurves. You can use your own .lc file or use the one I give here . The result is on the picture below.
Now there is also a version of the cookbook that can be compiled with this makefile (take care to put the correct path to libastro.so) or be ran on the command line.Usage:
> make; cookbook
or
> root
root [0] .x cookbook.C
Plot1