<div dir="ltr"><div><div>Dear all,<br><br></div><div>I have a variable with the following description. <br></div><div><br> float temperature ( time, depth, lat, lon )<br> long_name : temperature<br> standard_name : sea_water_potential_temperature<br> units : kelvin<br> _FillValue : -32768<br> add_offset : 273.15<br> scale_factor : 1<br> valid_min : -5<br> valid_max : 45<br><br><br></div><div>When I read this variable in NCL, the values are in degrees Celsius and not in Kelvin even though a printVarSummary gives the units as "Kelvin". <br><br>h = addfile("<a href="http://HadIProfile_201305_2.5deg.nc">HadIProfile_201305_2.5deg.nc</a>","r")<br><br>heat = h->temperature(0,{0:305},:,:)<br><br>printVarSummary(heat)<br><br>Variable: heat<br>Type: float<br>Total Size: 787968 bytes<br> 196992 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [depth | 19] x [lat | 72] x [lon | 144]<br>Coordinates: <br> depth: [5.02159..270.5341]<br> lat: [88.75..-88.75]<br> lon: [1.25..358.75]<br>Number Of Attributes: 8<br> time : 77932.5<br> standard_name : sea_water_potential_temperature<br> long_name : temperature<br> units : kelvin<br> add_offset : 273.15<br> scale_factor : 1<br> _FillValue : -32768<br> missing_value : -32768<br><br><br>It seems NCL is not using the scale/add_offset for float-type variables like it does for short-type or did I miss something? <br><br></div><div>Any suggestions would be helpful. <br></div><div></div><div><br></div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font size="2">Thanks,<br></font></div><font size="2">Vimal</font><br><br></div></div></div></div></div></div></div></div></div>
</div></div></div>