<div dir="ltr"><div><div><div><div><div><div><div><div><div>I have your file and I have no problems reading the data with 6.3.0 or the beta (6.4.0). I do not have 6.2.1 available.<br>OlgaKelbin.ncl:<br><br> diri = "./"<br> fili = "ERA2T63_SFC_DM_19810101_20141201.nc"<br> f = addfile(diri+fili, "r")<br><br> t2m_short = f->t2m ; explicitly import the 'short' variable<br> printVarSummary(t2m_short)<br> printMinMax(t2m_short, 0)<br> print("-----")<br><br> t2m = short2flt(t2m_short) ; convert to float<br> printVarSummary(t2m)<br> printMinMax(t2m, 0)<br> print("-----")<br><br> T2M = short2flt( f->t2m ) ; direct from file<br> printVarSummary(T2M)<br> printMinMax(T2M, 0)<br> print("-----")<br><br></div>The output is attached.<br><br></div>As I noted, the 'totype' function is not used within 'short2flt'. Something is not right but I have no idea what the problem might be.<br><br>=====<br></div>Offline, you sent me the following which resulted in a 'segmentation fault'<span class="gmail-im"><br>
<pre>ncl <return>
</pre>
</span><span class="gmail-im"><pre>a = addfile("ERA2T63_SFC_DM_<wbr><a href="http://19810101_20141201.nc">19810101_20141201.nc</a>","r")
</pre></span><span class="gmail-im">
<pre>t2m = a=>t2m
</pre>
<pre>printVarSummary(t2m)
era_hlp = short2flt(t2m)
</pre>
<pre>printVarSummary(era_hlp)
</pre>
<pre>quit
</pre></span>
and get a segmentation fault... <======<br><br></div>Again, I am not sure what the problem might be. We can not replicate it.<br><br>++++++<br></div>You could send me the 6.2.1 contributed.ncl that you are using.<br><br></div>%> <span class="gmail-im">
cp </span><br><font face="Courier New, Courier, monospace">$NCARG_ROOT/ncarg/nclscripts/<wbr>csm/contributed.ncl contributed.ncl_621<br><br></font></div><font face="Courier New, Courier, monospace">Then send me this version of contributed.ncl_621 via email (gzip) or send to the ftp site.<br><br></font></div><font face="Courier New, Courier, monospace">Regards<br></font></div><font face="Courier New, Courier, monospace">D<br></font><div><div><div><div><br><div><br><div><div><div class="gmail-yj6qo gmail-ajU"><div tabindex="0" class="gmail-ajR" id="gmail-:1df"><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" class="gmail-ajT"></div></div><br><div><div><div><br></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 7:29 AM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@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 dir="ltr"><div><div><div><div><div><div><div><div><div><div>I am not sure why you are getting the "totype" error. I do not have the 6.2.1 version of contributed.ncl. However, to my knowledge, the "totype" function is not used in the "short2flt" function.<br><br>---<br></div>Could you ftp the file to:<br><br></div>ftp <a href="http://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a><br></div>anonymous<br></div>your_email<br></div>cd incoming<br></div>put .... file ....<br></div>quit<br><br></div>Then send am email after successful transfer.<br><br></div>THX<br></div>D<br><div><div><div><div><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Oct 6, 2016 at 5:25 AM, Kelbin Olga <span dir="ltr"><<a href="mailto:Olga.Kelbin@dwd.de" target="_blank">Olga.Kelbin@dwd.de</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>I'm using <i>NCAR Command Language Version 6.2.1</i> and I have
some problems with <i>contributed.ncl (short2flt </i>command<i>)<br>
</i></p>
<p>My script contains</p>
<p><font face="Courier New, Courier, monospace">load
"$NCARG_ROOT/ncarg/nclscripts/<wbr>csm/contributed.ncl</font></p>
<p>and <br>
</p>
<font face="Courier New, Courier, monospace">era_hlp = short2flt(
a->t2m )</font><br>
<br>
The error message is the following:<br>
<br>
<font face="Courier New, Courier, monospace">fatal:Undefined
identifier: (totype) is undefined, can't continue<br>
fatal:["Execute.c":8578]:Execu<wbr>te: Error occurred at or near line
478 in file $NCARG_ROOT/ncarg/nclscripts/c<wbr>sm/contributed.ncl<br>
fatal:["Execute.c":8578]:Execu<wbr>te: Error occurred at or near line
1987 in file $NCARG_ROOT/ncarg/nclscripts/c<wbr>sm/contributed.ncl<br>
</font><br>
How can I fix this error?<br>
<br>
<br>
Thank you in advance<span><font color="#888888"><br>
Olga<br>
<br>
<br>
<br>
<pre cols="72">--
Dr. Olga Kelbin
Deutscher Wetterdienst
Klima und Umweltberatung
Zentrales Klimabüro
Frankfurter Str. 135
63067 Offenbach
Phone <a href="tel:%2B49%20%280%2969%208062-2472" value="+496980622472" target="_blank">+49 (0)69 8062-2472</a>
Email <a href="mailto:olga.kelbin@dwd.de" target="_blank">olga.kelbin@dwd.de</a>
</pre>
</font></span></div>
<br></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>