<p dir="ltr">Hi,</p>
<p dir="ltr">when your data is short like that, you have to unpack, for example, unpack short to float, use</p>
<p dir="ltr">f=addfile (<a href="http://your.nc">your.nc</a>,r)<br>
x=short2flt (f->var)</p>
<p dir="ltr">guilherme </p>
<br><div class="gmail_quote"><div dir="ltr">Em Sex, 29 de abr de 2016 09:14, Saurabh Singh <<a href="mailto:saurabhsingh123op@gmail.com">saurabhsingh123op@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This solves, Its the fist time i encountered a file with encoding like this. Thanks a lot Casper.</div><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 29, 2016 at 7:50 PM, Caspar Ammann <span dir="ltr"><<a href="mailto:ammann@ucar.edu" target="_blank">ammann@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Look in the attributes list of your variable dump. There are “scale_factor", and "add_offset”. Once you apply those to your numbers, you are fine. Some software packages apply these automatically once you open the variable, and sometimes (particularly when looking into the file) you still need to apply them.<div>Caspar<br><div>
<div><br>Caspar Ammann<br>National Center for Atmospheric Research<br>RAL - Climate Science and Applications Program<br></div>
</div>
<br><div><blockquote type="cite"><div><div><div>On Apr 29, 2016, at 4:56 AM, Saurabh Singh <<a href="mailto:saurabhsingh123op@gmail.com" target="_blank">saurabhsingh123op@gmail.com</a>> wrote:</div><br></div></div><div><div><div><div dir="ltr"><div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35)"><span>I am opening the Reanalysis-2 wind data first i tried in CDO, The data has wind value so the min/max range -10 to 10. However when i tried opening this data in NCL i get strange outputs i.2 in range 0f -2000. I don't why this is hapening.I am pasting the output along with the data.</span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35);min-height:15px"><span></span><br></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35)"><span>CDO Output</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>cee2@cee2:~$ cdo info SV10.nc </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> -1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> 1 : 2000-01-01 00:00:00 10 304 0 : -8.2600 -1.6862 6.7400 : -1 </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> 2 : 2000-01-02 00:00:00 10 304 0 : -8.1600 -1.7035 5.1700 : -1 </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> 3 : 2000-01-03 00:00:00 10 304 0 : -9.7900 -1.7118 5.8700 : -1 </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> 4 : 2000-01-04 00:00:00 10 304 0 : -10.240 </span> 0.11095 8.8300 : -1 </div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35);min-height:15px"><span></span>......</div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35);min-height:15px">....</div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35);min-height:15px"><span></span><br></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35);min-height:15px"><span></span><br></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35)"><span>NCL outputs: </span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35);min-height:15px"><span></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>Number of Dimensions: 4</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[time | 2922] x [level | 1] x [lat | 16] x [lon | 19]</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>Coordinates: </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> time: [1753152..1823256]</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> level: [10..10]</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> lat: [14.2855..-14.2855]</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> lon: [90..123.75]</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>Number Of Attributes: 20</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> cell_methods :<span style="white-space:pre-wrap">        </span>time: mean (of 4 6-hourly values in one day)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> standard_name :<span style="white-space:pre-wrap">        </span>eastward_wind</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> parent_stat :<span style="white-space:pre-wrap">        </span>Individual Obs</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> statistic :<span style="white-space:pre-wrap">        </span>Mean</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> level_desc :<span style="white-space:pre-wrap">        </span>10 m</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> dataset :<span style="white-space:pre-wrap">        </span>NCEP/DOE AMIP-II Reanalysis (Reanalysis-2) Daily Averages</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> var_desc :<span style="white-space:pre-wrap">        </span>u-wind</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> GRIB_name :<span style="white-space:pre-wrap">        </span>U GRD</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> GRIB_id :<span style="white-space:pre-wrap">        </span>33</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> least_significant_digit :<span style="white-space:pre-wrap">        </span>1</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> precision :<span style="white-space:pre-wrap">        </span>2</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> missing_value :<span style="white-space:pre-wrap">        </span>32766</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> scale_factor :<span style="white-space:pre-wrap">        </span>0.01</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> add_offset :<span style="white-space:pre-wrap">        </span>207.65</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> units :<span style="white-space:pre-wrap">        </span>m/s</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> actual_range :<span style="white-space:pre-wrap">        </span>( -32.79, 37.59 )</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> unpacked_valid_range :<span style="white-space:pre-wrap">        </span>( -120, 120 )</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> valid_range :<span style="white-space:pre-wrap">        </span>( -32765, -8765 )</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> long_name :<span style="white-space:pre-wrap">        </span>Daily Forecast of U-wind at 10 m</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span> _FillValue :<span style="white-space:pre-wrap">        </span>-32767</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>(0,0,0,0)<span style="white-space:pre-wrap">        </span>-21257</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>(0,0,0,1)<span style="white-space:pre-wrap">        </span>-21082</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>(0,0,0,2)<span style="white-space:pre-wrap">        </span>-20933</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>(0,0,0,3)<span style="white-space:pre-wrap">        </span>-20810</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>(0,0,0,4)<span style="white-space:pre-wrap">        </span>-20792</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>(0,0,0,5)<span style="white-space:pre-wrap">        </span>-20868</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>(0,0,0,6)<span style="white-space:pre-wrap">        </span>-21008</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>(0,0,0,7)<span style="white-space:pre-wrap">        </span>-21122</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)"><span>(0,0,0,8)<span style="white-space:pre-wrap">        </span>-21094</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(35,35,35);background-color:rgb(246,253,255)">....</div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35)"><span>With regards</span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Arial;color:rgb(35,35,35)"><span>Saurabh Kumar singh </span></div></div><div><div dir="ltr"><br style="color:rgb(51,204,0)"><br><font style="color:rgb(102,102,102)" size="1"> <b><i><span style="font-family:Webdings" lang="EN-GB">P</span></i></b><b><i><span style="font-family:Tahoma,sans-serif" lang="EN-GB"> : </span></i></b><b><i><span style="font-family:Arial,sans-serif" lang="EN-GB"> </span></i></b><b><i><span style="font-family:Tahoma,sans-serif" lang="EN-GB">Please consider the environment before printing this e-mail</span></i></b> </font><br style="color:rgb(102,102,102)"><br><br><br></div></div>
</div></div></div>
_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></div></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div></div><div class="gmail_extra">-- <br></div><div class="gmail_extra"><div><div dir="ltr"><font style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif" size="2"><span>With regards</span><span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2"><span style="color:rgb(0,0,0)"><span><br></span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2"><span style="color:rgb(0,0,0)"><span>Saurabh Kumar singh</span><span></span>
</span></font><br style="color:rgb(51,204,0)"><br><font style="color:rgb(102,102,102)" size="1"> <b><i><span style="font-family:Webdings" lang="EN-GB">P</span></i></b><b><i><span style="font-family:Tahoma,sans-serif" lang="EN-GB"> : </span></i></b><b><i><span style="font-family:Arial,sans-serif" lang="EN-GB"> </span></i></b><b><i><span style="font-family:Tahoma,sans-serif" lang="EN-GB">Please consider the environment before printing this e-mail</span></i></b> </font><br style="color:rgb(102,102,102)"><br><br><br></div></div>
</div>
_______________________________________________<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>Dr. Guilherme Martins</div><div>Instituto Nacional de Pesquisas Espaciais (INPE)<br></div></font></div><div><font size="2">Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)<br></font>Grupo de Desenvolvimento em Assimilação de Dados (GDAD)<font size="2"><br></font></div><div>Telefone (INPE/CP): +55 12 3186-8551 || 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><br>Skype: guilherme.martins.<br>Homepage: <a href="https://sites.google.com/site/jgmsantos">https://sites.google.com/site/jgmsantos</a><br>Currículo Lattes: <a href="http://lattes.cnpq.br/5997657584785803">http://lattes.cnpq.br/5997657584785803</a><span><br></span>------------------------------------------------------------------------------------------</div></div>