I am trying to use TFITSHDU class to read a fits file. On my pc it works but when I try to run on SWAN using ROOT kernel I get the following error:

TString dir = gROOT->GetTutorialDir();
TFITSHDU hdu(dir + “/fitsio/sample1.fits”);
input_line_137:2:10: error: expected ‘;’ after expression
TFITSHDU hdu(dir + “/fitsio/sample1.fits”);
input_line_137:2:11: error: use of undeclared identifier ‘hdu’
TFITSHDU hdu(dir + “/fitsio/sample1.fits”);
These two lines of code are taken from this ROOT tutorial

Is there a limitation in SWAN about the use of this class?



It seems that the ROOT in the LCG releases (which SWAN uses) is built without fitsio, which contains the feature you want to use. If I do, from the SWAN terminal (LCG 97):

bash-4.2$ root-config --has-fitsio

The content of the LCG releases is controlled by the LCG librarians. What I would do is open a ticket to them here:

Explaining what you want to do in SWAN with the LCG release. They will be able to explain better why this option is not enabled and if it would be possible to enable it.

Ok thanks a lot, I will open a ticket.