This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi, The situation with add_offset turned out to be more complicated than I thought, but the section on Packed Data Values in the Best Practices document has now been replaced: http://www.unidata.ucar.edu/netcdf/docs/BestPractices.html#Packed%20Data%20Values There is a backward compatibility problem with existing data that assumes bytes are unsigned when read with the nc_get_var_uchar() function, for example, so the old formula has to be preserved, but we've also added new material on the correct definition to use when packed values are assumed to be signed. Please let us know if you see more problems with it, and thanks for the feedback! --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: BUX-993575 Department: Support netCDF Priority: High Status: Closed