Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690