[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Support #SPQ-770598]: problem in reading "short" typed data
- Subject: [Support #SPQ-770598]: problem in reading "short" typed data
- Date: Mon, 21 Jul 2008 10:59:31 -0600
Hi,
The air variable in the attached file has the attributes:
air:add_offset = 512.81f ;
air:scale_factor = 0.01f ;
As described in the section on "common attributes" in the
NetCDF Users Guide, these indicate the 32-bit floating-point
values have been stored in 16-bit packed integers. You can
recover the unpacked values using a formula such as
unpacked_data_value = packed_data_value * scale_factor + add_offset
See:
http://www.unidata.ucar.edu/software/netcdf/docs/BestPractices.html#Packed%20Data%20Values
and
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf.html#Attribute-Conventions
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: SPQ-770598
Department: Support netCDF
Priority: Normal
Status: Closed