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.

C_format with scaled data

I am having trouble with the new version of ncdump crashing due to its
use of C_format (e.g. "%7.2f") with raw data of type short. I assumed
that C_format applied to the floating point value produced by
muliplying by scale_factor and then adding add_offset.

Should attribute C_format apply to the scaled or unscaled value/type?

Would it be possible to provide either or both of the following new options
in ncdump?
1. An option to over-ride format specified by C_format
2. An option to apply scaling specified by scale_factor and add_offset.

I note mention of proposed new attributes _Scale and _Offset on page 12
of new version of netCDF User's Guide. I guess these will provide a more
elegent solution to the problem.


Harvey Davies,
CSIRO Division of Atmospheric Research,    Voice: +61 3 586 7574
Private Bag No. 1, Mordialloc,               Fax: +61 3 586 7600
Victoria 3195,  Australia               Internet: hld@xxxxxxxxxxxx



  • 1993 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: