Tfitshdu

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

https://root.cern.ch/doc/master/FITS__tutorial1_8C.html

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

Cheers
Stefano

Hi,

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
no

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

https://sft.its.cern.ch/jira/projects/SPI

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.