NOAA-EMC / NCEPLIBS-bufr

The NCEPLIBS-bufr library contains routines and utilites for working with the WMO BUFR format.
Other
42 stars 19 forks source link

modify ufdump to print subset data values to true scale precision #513

Closed jbathegit closed 6 months ago

jbathegit commented 1 year ago

In subroutine ufdump, which in turn is used internally to generate output for the debufr utility, all non-character data values in a subset are printed to a default precision of one decimal place, even if the scale factor of the underlying BUFR descriptor is 0.

For example, 0-04-001 (Year) is always printed as 2023.0, even though the scale factor is 0. It should probably be printed as 2023 instead, and in general the number of decimal places printed should probably always exactly equal the scale factor of the underlying descriptor.