<div dir="ltr"><div>I don'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">On Mon, Mar 23, 2015 at 2:47 AM, ChenFeng <span dir="ltr"><<a href="mailto:fengfengabc003@163.com" target="_blank">fengfengabc003@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div>
<div>;************************************************</div>
<div>begin</div>
<div> inp0 = addfile("/public/home/chenf/AHWRF/TEST/WPSwks.T02/<a href="http://geo_em.d01.nc" target="_blank">geo_em.d01.nc</a>","r")</div>
<div style="FONT-WEIGHT:bold"> lon2d = inp0->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'm reading the variable without any dimention name cited, the error disappeared.</div>
<div>The code changes into :</div>
<div>;************************************************</div>
<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div>
<div>;************************************************</div>
<div>begin</div>
<div> inp0 = addfile("/public/home/chenf/AHWRF/TEST/WPSwks.T02/<a href="http://geo_em.d01.nc" target="_blank">geo_em.d01.nc</a>","r")</div>
<div style="FONT-WEIGHT:bold"> lon2d = inp0->XLONG_M</div>
<div> printVarSummary(lon2d)</div>
<div>;************************************************</div>
<div>end</div>
<div> </div>
<div>I don'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>_______________________________________________<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>