<div dir="ltr">Or try<div><br></div><div>line 12: </div><div><br></div><div> oisst <span class="Apple-tab-span" style="white-space:pre">        </span>= <b>short2flt(</b>in_oisst_f->sst<b>)</b></div><div><b><br></b></div><div>Guilherme<br><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Em qui, 12 de nov de 2015 às 14:20, Arne Melsom <<a href="mailto:arne.melsom@met.no">arne.melsom@met.no</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So, simply replace the line<br>
oisst = in_oisst_f->sst<br>
by<br>
scale = in_oisst_f->sst@scale_factor<br>
offset = in_oisst_f->sst@add_offset<br>
oisst = scale*in_oisst_f->sst + offset<br>
<br>
<br>
----- Original Message -----<br>
> Sorry, I didn't look at your attachments and now that I have, the data<br>
> are definitely packed in shorts:<br>
><br>
> short sst(time, lat, lon) ;<br>
> sst:standard_name = "sea_surface_temperature" ;<br>
> sst:long_name = "Monthly Mean of Sea Surface Temperature" ;<br>
> sst:units = "degC" ;<br>
> sst:add_offset = 0.f ;<br>
> sst:scale_factor = 0.01f ;<br>
> sst:_FillValue = 32767s ;<br>
> sst:missing_value = 32767s ;<br>
> sst:unpacked_valid_range = -5.f, 40.f ;<br>
> sst:actual_range = -1.8f, 35.31f ;<br>
> sst:precision = 2s ;<br>
> sst:least_significant_digit = 2s ;<br>
> sst:var_desc = "Sea Surface Temperature" ;<br>
> sst:dataset = "NOAA Optimum Interpolation (OI) SST V2" ;<br>
> sst:level_desc = "Surface" ;<br>
> sst:statistic = "Mean" ;<br>
> sst:parent_stat = "Weekly Mean" ;<br>
> sst:cell_methods = "time: mean (monthly from weekly values<br>
> interpolated to daily)" ;<br>
><br>
> In your script, call:<br>
><br>
> oisst = short2flt(in_oisst_f->sst)<br>
><br>
> when you read in the data. Ferret must automatically apply the<br>
> scale/offset - NCL doesn't.<br>
><br>
> Don<br>
><br>
> On 11/12/15 9:07 AM, Izidine Pinto wrote:<br>
> > Dear NCL users,<br>
> ><br>
> > I was wondering if anyone can help me solving my problem. It might be<br>
> > simple but I'm missing something.<br>
> > When I plot it in NCL I get big numbers of SSTs but when I plot in<br>
> > ferret I get what I expect (temperature range -2:34 degC)<br>
> > Please see attached the working example and the figure.<br>
> ><br>
> ><br>
> > Thank you<br>
> > Izidine<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > ncl-talk mailing list<br>
> > <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> > List instructions, subscriber options, unsubscribe:<br>
> > <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
> ><br>
><br>
> --<br>
> Don Murray<br>
> NOAA/ESRL/PSD and CU-CIRES<br>
> 303-497-3596<br>
> <a href="http://www.esrl.noaa.gov/psd/people/don.murray/" rel="noreferrer" target="_blank">http://www.esrl.noaa.gov/psd/people/don.murray/</a><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div dir="ltr"><div><font size="2"><div>------------------------------------------------------------------------------------------</div><div>Guilherme Martins</div><div>Instituto Nacional de Pesquisas Espaciais (INPE)<br></div></font></div><div><font size="2">Centro de Ciência do Sistema Terrestre (CCST) - Prédio CES<br></font><span>Grupo de Superfície-Biosfera-Atmosfera (GSBA)</span><font size="2"><br></font></div><div><font size="2">Telefone (INPE/CP): +55 12 3186-9520 || Celular (TIM): +55 12 98152-8580<br>E-mail: <a href="mailto:guilherme.martins@inpe.br">guilherme.martins@inpe.br</a> || <a href="mailto:jgmsantos@gmail.com">jgmsantos@gmail.com</a></font><div><font size="2">Skype: guilherme.martins.<br>Homepage: </font><a href="https://sites.google.com/site/jgmsantos/">https://sites.google.com/site/jgmsantos</a><font size="2"><br>Currículo Lattes: </font><a href="http://lattes.cnpq.br/5997657584785803">http://lattes.cnpq.br/5997657584785803</a></div>------------------------------------------------------------------------------------------</div></div>