I'm trying to read the cards from a fits file made by indi. CCfits only reads 39 cards. There are 52 in the header. One of the cards it won't read is "BZERO". The reason I ask if it is wonky is that I expected 36 cards in the primary header and the rest in an extension. I may very well be reading the docs wrong, but CCfits is having trouble reading it. I've looked at Fits files from other sources, but haven't found any that exceed the 36 cards yet.
Thanks,
Dave
Dave Allmon
Meade 12" LX600, William Optics GT81 IV, Stellarvue F080M3 (guidescope)
SBIG STF-8300EN, ASI 290mm mini (guide camera)
Raspberry Pi 4B 8GB w/Stellarmate out on the scope, Raspberry Pi 4B 4GB test server
Linux client
I seem to have answered this. The Fits Verifier at fits.gsfc.nasa.gov/fits_verify.html says the Fits file is fine. I'm just not reading it corrrectly, I guess.
Dave Allmon
Meade 12" LX600, William Optics GT81 IV, Stellarvue F080M3 (guidescope)
SBIG STF-8300EN, ASI 290mm mini (guide camera)
Raspberry Pi 4B 8GB w/Stellarmate out on the scope, Raspberry Pi 4B 4GB test server
Linux client
Yes, indeed: The FITS header block size is 2880 bytes, or 36 lines of 80 characters. If the header is longer than 36 cards, a new block is started. There's (AFAIK) no limit to the number of header blocks. You just need to read until you hit the 'END' card.....
openSUSE Tumbleweed KStars git INDI git
GPDX+EQMOD, CEM60EC, ASI2600/1600/290mini+EFW+EAF
Thanks. I thought that was the case, and the FITS verifier worked, but CCFits would only read 39 of the 52 cards. I was using "readAllKeys()" method, which oddly enough, doesn't read all keys. Only certain categories and then only certain data types in those categories.
Dave Allmon
Meade 12" LX600, William Optics GT81 IV, Stellarvue F080M3 (guidescope)
SBIG STF-8300EN, ASI 290mm mini (guide camera)
Raspberry Pi 4B 8GB w/Stellarmate out on the scope, Raspberry Pi 4B 4GB test server
Linux client