Difference between TIFF and FITS files

General discussion about StarTools.

Difference between TIFF and FITS files

Postby Admiral » Sat Apr 02, 2016 8:51 am

The recommendation when stacking in DSS is to use the autosaved FITS file for use in Star Tools. I've had a quick play with DSS to see what differences there are between the autosave TIFF and FITS files. In this example, the TIFF was 114MB and the FITS 186MB. I had wondered if they were of different bit-depth, but opening them in my trial copy of PixInsight, I see that both are 32-bit floating point 3 channel files. These are considerably different file sizes, so what is different about FITS files, and what makes them preferable for processing in Star Tools (if you can explain in layman's terms ;) ?

Thanks - Ian
Admiral
 
Posts: 15
Joined: Thu Jan 07, 2016 8:10 am

Re: Difference between TIFF and FITS files

Postby jimv » Sat Apr 02, 2016 8:31 pm

Admiral wrote:These are considerably different file sizes, so what is different about FITS files ...
Thanks - Ian


I believe the difference is FITS file metadata (headers) are in a human readable (ASCII) form while TIFF file metadata is not. The ASCII format is not as compact. You can load a FITS file into an editor (e.g., Notepad on Microsoft Windows) and actually read the header information. I'm speculating that your FITS file may also contain more metadata information than your TIFF file.

If unfamiliar with the FITS format, you may wish to consult something like http://www.fileformat.info/format/fits/egff.htm.

Admiral wrote:... and what makes them preferable for processing in Star Tools (if you can explain in layman's terms ;) ?


I defer to someone more knowledgeable about StarTools.
jimv
 
Posts: 16
Joined: Tue Mar 15, 2016 7:07 pm

Re: Difference between TIFF and FITS files

Postby Admiral » Sun Apr 03, 2016 4:06 pm

That's what I am led to believe, having looked at Wiki. But the difference in file size is 72MB, which seems a devil of a big header! Which makes me think that there is something more to this, especially as it is the preferred input file to Star Tools. Perhaps it's just the space allocated to various bits of the file is different, but I can't say I'm conversant with the intricacies of file structures.

Ian
Admiral
 
Posts: 15
Joined: Thu Jan 07, 2016 8:10 am

Re: Difference between TIFF and FITS files

Postby ecuador » Sun Apr 03, 2016 5:46 pm

If they have the same sample size but a big size difference, then the TIFF might have (lossless) compression enabled. One way to check it is to zip both and see if they are both compressible (meaning they contain uncompressed data) or only the FITS is.
ecuador
 
Posts: 98
Joined: Sat Jan 24, 2015 10:23 pm

Re: Difference between TIFF and FITS files

Postby Admiral » Thu Apr 07, 2016 7:52 am

Thanks all. Certainly the file size seems to imply that, but I had assumed that the DSS autosaved TIFF file wouldn't be compressed, though why I should think that I don't know.

Ian
Admiral
 
Posts: 15
Joined: Thu Jan 07, 2016 8:10 am

Re: Difference between TIFF and FITS files

Postby Starry Eyes » Wed Jun 29, 2016 10:49 pm

Some time ago I did DSS of assorted Globulars and processed them in STools We found (Ivo & me) that the 32 bit int Fits showed more dynamic range and definition than the tiff format for these objects.

M3 http://astrob.in/98042/0/
Starry Eyes
 
Posts: 37
Joined: Fri Feb 08, 2013 3:55 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests