<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I think we’re still waiting to see a few use cases for 16-bit floats. Either they will be persuasive to the group, or they won’t be. I have no philosophical antipathy to supporting new data types in FITS images or tables, but such support
 does cost the community not-insignificant effort, including revised documentation. Is this particular change to the standard worth the expense?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Imagine the change were made tomorrow. Which projects would adopt the new data type(s) in the near future? What future technologies would be enabled? I am genuinely interested to know what new tricks FITS can be taught.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">There is nothing magic about IEEE floats (of whatever precision) or 2’s-complement integers. The FITS checksum is an ASCII-encoded 1’s-complement number, and Rice compression even uses unary numbers. Indeed, ASCII itself is now a flavor
 of UTF-8, a way to express Unicode. Perhaps FITS should allow UTF-16? Back in the day, IRAF strings were two-byte representations for portability. (Still are, I guess.) Fixed point numbers are even still an option.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Give us a couple of good use cases for 16-bit floats. We’ve heard that IEEE is drafting a standard for Machine Learning which includes small floats (perhaps even smaller than 16-bits). How would users benefit from FITS interoperating with
 this standard? Do we need IEEE to finish first?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And it might be interesting to consider how 16-bit floats would interoperate with floating-point tile compression. FPACK might read in a 32-bit image array with some aggressive q-scaling (for instance), while FUNPACK could provide the option
 to write out a 16-bit image. Note that both input and output images would be bigger than the intermediate tile-compressed bintable representation. (The default q of 4.0 corresponds to about 6-bits per pixel.) Or maybe FPACK would support converting 32-bit
 images directly to 16-bits with a noise-sensitive threshold of some sort.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Rob<o:p></o:p></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="border:none;padding:0in"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">On 8/7/25, 7:25 AM, "fitsbits" wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:Helvetica"><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="margin-left:.5in;text-align:center">
<span style="font-family:Helvetica">
<hr size="0" width="100%" align="center">
</span></div>
</div>
<p class="MsoNormal" style="margin-left:.5in">We can then use the same argument for 32 and 64-bit floats. Why do we need them, if we can use 32 and 64 bit integers with a scale and offset?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"> -- Paul<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">On Thu, Aug 7, 2025 at 9:39 AM Arnold Rots <<a href="mailto:arots@cfa.harvard.edu">arots@cfa.harvard.edu</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">But why not use an 8 or 16 bit integer with a scale factor and zero offset?<br clear="all">
<o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:.5in;border-collapse:collapse">
<tbody>
<tr style="height:1.25in">
<td valign="top" style="border:solid white 1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt;height:1.25in">
<p style="margin:0in"><b><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222">Arnold H Rots</span></b><o:p></o:p></p>
<p style="margin:0in"><b><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black">Research Associate</span></b><o:p></o:p></p>
<p style="margin:0in">SAO/HEAD<o:p></o:p></p>
<p style="margin:0in"><b><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black">Center for Astrophysics | Harvard & Smithsonian</span></b><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0in"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222">Email:
<a href="mailto:arots@cfa.harvard.edu" target="_blank">arots@cfa.harvard.edu</a></span><o:p></o:p></p>
<p style="margin:0in"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222">Office: +1 617 496 7701 | Cell: +1 617 721 6756</span><o:p></o:p></p>
<p style="margin:0in"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222">60 Garden Street | MS 69 | Cambridge, MA 02138 | USA</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0in"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222;border:solid windowtext 1.0pt;padding:0in"><img border="0" width="350" height="2" style="width:3.6458in;height:.0208in" id="_x0000_i1027" src="cid:~WRD0002.jpg" alt="Image removed by sender."></span><o:p></o:p></p>
</td>
</tr>
<tr style="height:27.0pt">
<td valign="top" style="border:solid white 1.0pt;border-top:none;padding:5.0pt 5.0pt 5.0pt 5.0pt;height:27.0pt">
<p style="margin:0in"><span style="font-family:"Arial",sans-serif;color:black;border:solid windowtext 1.0pt;padding:0in"><img border="0" width="149" height="65" style="width:1.552in;height:.677in" id="_x0000_i1026" src="cid:~WRD0002.jpg" alt="Image removed by sender."></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0in"><a href="http://cfa.harvard.edu" target="_blank"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black;background:white">cfa.harvard.edu</span></a><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black;background:white">
 | </span><a href="http://cfa.harvard.edu/facebook" target="_blank"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black;background:white">Facebook</span></a><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black;background:white">
 | </span><a href="http://cfa.harvard.edu/twitter" target="_blank"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black;background:white">Twitter</span></a><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black;background:white">
 | </span><a href="http://cfa.harvard.edu/youtube" target="_blank"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black;background:white">YouTube</span></a><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black">
 | </span><a href="http://cfa.harvard.edu/newsletter" target="_blank"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black">Newsletter</span></a><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">On Sat, Jul 26, 2025 at 8:55 PM Barrett, Paul via fitsbits <<a href="mailto:fitsbits@listmgr.nrao.edu" target="_blank">fitsbits@listmgr.nrao.edu</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal" style="margin-left:.5in">The quick answer is that most telescope backends have 8-bit A2D converters, so 16-bit floats provide sufficient range and precision to store the calibrated data. If you need extended range, then a scaling factor
 can be used.<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"> -- Paul<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">On Sat, Jul 26, 2025 at 7:49 PM Eric Greisen via fitsbits <<a href="mailto:fitsbits@listmgr.nrao.edu" target="_blank">fitsbits@listmgr.nrao.edu</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">I am perhaps the person with the longest exposure to FITS.  I expect that adding 16-bit floats would do little  harm.  But I have not seen
 a proper exposition of why it is needed.  And I have 50+ years of writing radio astronomy software.  At this stage I would vote against it until a proper set of examples are described.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">Eric Greisen<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="margin-left:.5in;text-align:center">
<hr size="0" width="94%" align="center">
</div>
<div id="m_-1251066910185183920m_-8332966783569991369m_7732203089533686962divRplyFwdMsg">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="color:black">From:</span></b><span style="color:black"> fitsbits <<a href="mailto:fitsbits-bounces@listmgr.nrao.edu" target="_blank">fitsbits-bounces@listmgr.nrao.edu</a>> on behalf of William Pence
 via fitsbits <<a href="mailto:fitsbits@listmgr.nrao.edu" target="_blank">fitsbits@listmgr.nrao.edu</a>><br>
<b>Sent:</b> Saturday, July 26, 2025 1:11 PM<br>
<b>To:</b> Fitsbits <<a href="mailto:fitsbits@listmgr.nrao.edu" target="_blank">fitsbits@listmgr.nrao.edu</a>><br>
<b>Subject:</b> Re: [fitsbits] [EXT] Re: 16-bit floats {External} {External}</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">[Have had technical difficulties posting here; here’s another attempt.]<br>
<br>
Based on the discussion so far I am inclined to support adding the 16-bit floating point format to FITS, but not the 128-bit format, as a fundamental datatype in images and binary table columns. As a reminder, the numerical range of the float16 datatype is
 limited to +65504 to -65504 and the precision is limited to about 4 decimal digits.  That means the largest values (in the range of about 32000 to 65500) are only precise to +/- 32, i.e. the largest possible value is 65504 and the next smaller allowed values
 are 65472, 65440 and so on.   Based on my own experience in optical and Xray astronomy I can’t think of many applications (or any in fact) where this float16 datatype would be appropriate to use. Apparently it could be useful for some radio astronomy data
 however. <br>
<br>
Bill<br>
<br>
<br>
<br>
_______________________________________________<br>
fitsbits mailing list<br>
<a href="mailto:fitsbits@listmgr.nrao.edu" target="_blank">fitsbits@listmgr.nrao.edu</a><br>
<a href="https://listmgr.nrao.edu/mailman/listinfo/fitsbits" target="_blank">https://listmgr.nrao.edu/mailman/listinfo/fitsbits</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in">_______________________________________________<br>
fitsbits mailing list<br>
<a href="mailto:fitsbits@listmgr.nrao.edu" target="_blank">fitsbits@listmgr.nrao.edu</a><br>
<a href="https://listmgr.nrao.edu/mailman/listinfo/fitsbits" target="_blank">https://listmgr.nrao.edu/mailman/listinfo/fitsbits</a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:.5in">_______________________________________________<br>
fitsbits mailing list<br>
<a href="mailto:fitsbits@listmgr.nrao.edu" target="_blank">fitsbits@listmgr.nrao.edu</a><br>
<a href="https://listmgr.nrao.edu/mailman/listinfo/fitsbits" target="_blank">https://listmgr.nrao.edu/mailman/listinfo/fitsbits</a><o:p></o:p></p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>