Hi,
I used root-6-20-8, and the code in tutorials/fitsio/ can run well.
But when I read a fits file in the same way as shown in code in tutorials/fitsio/, there is an error as following:
Warning in TFITSHDU::LoadHDU: error opening FITS file. Details: bad first row number
Error in TRint::HandleTermInput(): Exception caught!
The problem is the HDU including data with TFORM of 16X (bit) that can not be read,while other HDUs without 16X type data can be read.
Because there was some errors when I installed the latest version root and I could not fix it, I am using an older version. If anyone has the latest root, could you please check if fits data attached can be read well, you can use your own code or the code attached?
If anyone can check it and tell me the outcomes, I will be very grateful. Any advice is welcome.
We’ll try to have a look but it can take time.
To speedup things, Do you have the possibility to use one of our containers or to log into some portal, e.g. CERN’s lxplus, to check the latest ROOT version and verify whether the issue is still present? 6.20 is a pretty old release by now.
I tried, and it also fails with latest ROOT version.
------------------------------------------------------------------
| Welcome to ROOT 6.32.00 https://root.cern |
| (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on May 28 2024, 05:02:02 |
| From tags/v6-32-00@v6-32-00 |
| With c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0]
Processing Read_ufevt.C+...
Info in <TUnixSystem::ACLiC>: creating shared library /tmp//tmp/PleaseCheck/./Read_ufevt_C.so
Info in <TFITSHDU::LoadHDU>: The selected HDU contains a Table Extension
Warning in <TFITSHDU::LoadHDU>: error opening FITS file. Details: bad first row number