[ncl-talk] Could there be a bug

Jim Means jim at weatherextreme.com
Tue Aug 28 09:11:07 MDT 2018


Hi Dave,

If you use ncl_filedump to look at your data you will see this listed 
for sst:

       short sst ( time, latitude, longitude )
          long_name :    Sea surface temperature
          units :    K
          add_offset :    289.9202167899307
          scale_factor :    0.0006308732635179985
          _FillValue :    -32767
          missing_value :    -32767

Notice there is an offset and a scale factor in the data record for sst. 
I believe you will need to add the offset and multiply by the scale 
factor to get back to actual temperature in kelvins.

Good luck.

Jim


On 08/28/2018 07:33 AM, dave montgomery wrote:
> Dear NCL Users,
> I plotted sst on a local scale using NCL. The result for the sst 
> variable are way too high. Plotting the same data with CDO and using 
> ncview, the results for the sst variable are in the values to be 
> expected. In CDO, the variable sst has a range from 297.274K to 
> 300.189K but in NCL the plotted graph showed a range from about 12000 
> to 16000. Could our most esteem NCL experts help me out here? I would 
> be grateful for your help.
> Attached are the file, script and the corresponding plot.
> I am using NCL version 6.4.0
> Data is from ERA5
>
> Best regards
> Dave Montgomery
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
Untitled Document

James D. Means, Ph.D.
Senior Atmospheric & Climate Scientist
California Office
Tele: 619-495-1638 | Fax: 775-636-8430
930 Tahoe Blvd., Suite 802-560
Incline Village, Nevada 89451
jim at weatherextreme.com <mailto:jim at weatherextreme.com> | vcard 
<http://www.weatherextreme.com/vcards/James%20Means.vcf>
www.weatherextreme.com <http://www.weatherextreme.com/>

<http://www.weatherextreme.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180828/5f05b165/attachment.html>


More information about the ncl-talk mailing list