NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Charlie, IEEE format implicitly defines the first significant bit as 1. This is true only for normalized IEEE format. Numbers that are too small to represent in the normalized IEEE format use subnormal format. I do not know whether netCDF preserves subnormal numbers 1) in general, or 2) when they are compressed. Whatever the behavior, I recommend it be documented. (I am not a user of netCDF; only an observer of developer conversations.) Respectfully, Larry Baker US Geological Survey (Ret.) c. 650-784-9650 baker@xxxxxxxx<mailto:baker@xxxxxxxx> On Nov 7 2022, at 1:54:00 PM, Charlie Zender <zender@xxxxxxx<mailto:zender@xxxxxxx>> wrote: This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding. Hi Matt, Your understanding of the quantization implementation is correct on all counts. The actual # of bits per digit is ln(10)/ln(2) ~ 3.32. And note that netCDF implementation defines NSB as the number of _explicitly stored bits_, which is one less than the number of significant bits because the IEEE format implicitly defines the first significant bit as 1. Thus NSB <=23 not <=24. Charlie -- Charlie Zender, Earth System Sci. & Computer Sci. University of California, Irvine 949-891-2429 )'( _______________________________________________ NOTE: All exchanges posted to Unidata maintained email lists are recorded in the Unidata inquiry tracking system and made publicly available through the web. Users who post to any of the lists we maintain are reminded to remove any personal information that they do not want to be made public. netcdfgroup mailing list netcdfgroup@xxxxxxxxxxxxxxxx<mailto:netcdfgroup@xxxxxxxxxxxxxxxx> For list information or to unsubscribe, visit: https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.unidata.ucar.edu%2Fmailing_lists%2F&data=05%7C01%7Cbaker%40usgs.gov%7C226de6b252974b9cd45608dac10a9ed7%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638034548601706039%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YT2h4EFt818Br0rnaQYROxj04C3L%2FjvHKjiy5OXy8vU%3D&reserved=0
netcdfgroup
archives: