<div dir="ltr"><div>Feng, <br><br></div><div>This may be a computer hardware issue?  Did you use a pre-compiled binary or compile the source code yourself?<br><br>As I was not able to reproduce the error you got while using 6.1.2.<br></div><div><br> Copyright (C) 1995-2013 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.1.2<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>ncl 0&gt; load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>ncl 1&gt; f = addfile(&quot;<a href="http://geo_em.d01.nc" target="_blank">geo_em.d01.nc</a>&quot;,&quot;r&quot;)<br>ncl 2&gt; lon2d = f-&gt;XLONG_M(Time|0,south_north|:,west_east|:)<br>ncl 3&gt; printVarSummary(lon2d)<br>Variable: lon2d<br>Type: float<br>Total Size: 158404 bytes<br>            39601 values<br>Number of Dimensions: 2<br>Dimensions and sizes:   [south_north | 199] x [west_east | 199]<br>Coordinates: <br>Number Of Attributes: 7<br>  FieldType :   104<br>  MemoryOrder : XY <br>  units :       degrees longitude<br>  description : Longitude on mass grid<br>  stagger :     M<br>  sr_x :        1<br>  sr_y :        1<br>ncl 4&gt; <br><br></div><div>Maybe one of the Software Engineers/Code Developers will be able to offer more insight.<br><br></div><div>-Alex<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 23, 2015 at 8:11 AM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</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>I don&#39;t understand why either.  6.1.2 is no longer available here so I can not test with 6.1.2<br><br></div>When it does work ... what does printVarSummary(lon2d) indicate?<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Mar 23, 2015 at 2:47 AM, ChenFeng <span dir="ltr">&lt;<a href="mailto:fengfengabc003@163.com" target="_blank">fengfengabc003@163.com</a>&gt;</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"><u></u>





<div style="FONT-SIZE:10pt;FONT-FAMILY:微软雅黑;COLOR:#000000;MARGIN-LEFT:10px;MARGIN-TOP:10px;MARGIN-RIGHT:10px">
<div>Hi ncl-users,</div>
<div> </div>
<div>I have encounted an error when reading a variable from an NC file.</div>
<div>the code is listed below:</div>
<div>;************************************************</div>
<div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div>
<div>;************************************************</div>
<div>begin</div>
<div>  inp0 = addfile(&quot;/public/home/chenf/AHWRF/TEST/WPSwks.T02/<a href="http://geo_em.d01.nc" target="_blank">geo_em.d01.nc</a>&quot;,&quot;r&quot;)</div>
<div style="FONT-WEIGHT:bold">  lon2d = inp0-&gt;XLONG_M (Time|0, south_north|:, west_east|:)</div>
<div>  printVarSummary(lon2d)</div>
<div>;************************************************</div>
<div>end</div>
<div> </div>
<div>the error message is:</div>
<div> Copyright (C) 1995-2013 - All Rights Reserved</div>
<div> University Corporation for Atmospheric Research</div>
<div> NCAR Command Language Version 6.1.2</div>
<div> The use of this software is governed by a License Agreement.</div>
<div> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.</div>
<div>Segmentation fault (core dumped)</div>
<div> </div>
<div>The strange thing is when i&#39;m reading the variable without any dimention name cited, the error disappeared.</div>
<div>The code changes into :</div>
<div>;************************************************</div>
<div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div>
<div>;************************************************</div>
<div>begin</div>
<div>  inp0 = addfile(&quot;/public/home/chenf/AHWRF/TEST/WPSwks.T02/<a href="http://geo_em.d01.nc" target="_blank">geo_em.d01.nc</a>&quot;,&quot;r&quot;)</div>
<div style="FONT-WEIGHT:bold">  lon2d = inp0-&gt;XLONG_M</div>
<div>  printVarSummary(lon2d)</div>
<div>;************************************************</div>
<div>end</div>
<div> </div>
<div>I don&#39;t understand why. It is very appreciate if anybody can tell me 
the reason.</div>
<div>Thanks.</div>
<div> </div>
<div>Feng</div></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<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>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
ncl-talk mailing list<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>
<br></blockquote></div><br></div>