<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Feng,<div><br></div><div>I got the same seg fault that you got with your file. &nbsp;My guess is something is just not quite right with that file. &nbsp;The size of that &nbsp;domain should not be an issue. &nbsp;My ncl 6.1.2 is compiled from source so the precompiled binary theory affecting it is not the case. &nbsp;I am not sure what other things will spit out seg faults so Dennis will have to take lead.</div><div><br></div><div>Sorry I couldn’t be of more help,</div><div>-Alex</div><div><br></div><div><br><div><div>On Mar 23, 2015, at 9:51 PM, ChenFeng &lt;<a href="mailto:fengfengabc003@163.com">fengfengabc003@163.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 128); line-height: 1.5; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 10px;"><div><span><span style="font-size: 10.5pt; font-family: 宋体;"><font color="#008000" size="1" face="" style="font-size: 10.5pt; font-family: 'Times New Roman'; font-weight: bold;"><span style="font-size: 10.5pt; font-family: 宋体;"><font color="#000001" face="微软雅黑" style="font-weight: normal;">And I use the&nbsp; pre-compiled binary version which is downloaded from the NCAR website.</font></span></font></span></span></div><span style="font-size: 10.5pt; font-family: 宋体;"></span><div>&nbsp;</div><div style="border-top-color: rgb(181, 196, 223); border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm;"><div style="font-size: 12px; background-color: rgb(239, 239, 239); padding: 8px;"><div><b>From:</b>&nbsp;<a href="mailto:fengfengabc003@163.com">ChenFeng</a></div><div><b>Date:</b>&nbsp;2015-03-24&nbsp;11:47</div><div><b>To:</b>&nbsp;<a href="mailto:shea@ucar.edu">Dennis Shea</a>;<span class="Apple-converted-space">&nbsp;</span><a href="mailto:alexander.schaefer@mines.sdsmt.edu">alexander.schaefer</a></div><div><b>CC:</b>&nbsp;<a href="mailto:ncl-talk@ucar.edu">ncl-talk</a></div><div><b>Subject:</b>&nbsp;Re: Re: [ncl-talk] Segmentation fault when reading variables from NC</div></div></div><div><div class="FoxDiv20150324114958256214" style="font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 128); margin: 10px; line-height: 1.5;"><div><span><span style="font-size: 10.5pt; font-family: 宋体;"><font color="#008000" size="1" face="" style="font-size: 10.5pt; font-family: 'Times New Roman'; font-weight: bold;"><span style="font-size: 10.5pt; font-family: 宋体;"><font color="#000080" face="微软雅黑"><div style="font-weight: normal;">Thanks Dennis and Alexander</div><div style="font-weight: normal;">The&nbsp;reason&nbsp;I&nbsp;use&nbsp;the&nbsp;printVarSummary(lon2d)&nbsp;is&nbsp;only&nbsp;want&nbsp;to&nbsp;make&nbsp;sure&nbsp;whether&nbsp;the&nbsp;code&nbsp;above&nbsp;this&nbsp;line&nbsp;is&nbsp;correct.</div><div style="font-weight: normal;">There&nbsp;is&nbsp;no&nbsp;problem&nbsp;when&nbsp;I&nbsp;use&nbsp;this&nbsp;code&nbsp;to&nbsp;read&nbsp;another&nbsp;geo_em.d01.nc&nbsp;file.&nbsp;So&nbsp;I&nbsp;think&nbsp;there&nbsp;is&nbsp;something&nbsp;wrong&nbsp;with&nbsp;the&nbsp;NC&nbsp;file.&nbsp;But&nbsp;I&nbsp;can&nbsp;use&nbsp;ncdump&nbsp;to&nbsp;see&nbsp;the&nbsp;structure&nbsp;and&nbsp;find&nbsp;nothing&nbsp;special.</div><div style="font-weight: normal;">Is&nbsp;the&nbsp;variable&nbsp;dimention&nbsp;too&nbsp;large&nbsp;(474*524)?&nbsp;&nbsp;But&nbsp;I&nbsp;have&nbsp;also&nbsp;use&nbsp;this&nbsp;ncl&nbsp;version&nbsp;to&nbsp;read&nbsp;variables&nbsp;more&nbsp;large&nbsp;than&nbsp;this.</div><div style="font-weight: normal;">I&nbsp;attached&nbsp;the&nbsp;file.&nbsp;Could&nbsp;you&nbsp;please&nbsp;help&nbsp;me&nbsp;check&nbsp;it&nbsp;with&nbsp;another&nbsp;ncl&nbsp;version&nbsp;and&nbsp;platform.</div><div style="font-weight: normal;">Thanks.</div><div style="font-weight: normal;">&nbsp;</div><div style="font-weight: normal;">Feng</div></font></span></font></span></span></div><span style="font-size: 10.5pt; font-family: 宋体;"></span><div>&nbsp;</div><div style="border-top-color: rgb(181, 196, 223); border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm;"><div style="font-size: 12px; background-color: rgb(239, 239, 239); padding: 8px;"><div><b>From:</b>&nbsp;<a href="mailto:shea@ucar.edu">Dennis Shea</a></div><div><b>Date:</b>&nbsp;2015-03-23&nbsp;22:40</div><div><b>To:</b>&nbsp;<a href="mailto:fengfengabc003@163.com">ChenFeng</a></div><div><b>CC:</b>&nbsp;<a href="mailto:ncl-talk@ucar.edu">ncl-talk</a></div><div><b>Subject:</b>&nbsp;Re: [ncl-talk] Segmentation fault when reading variables from NC</div></div></div><div><div class="FoxDiv20150324112727576919" style=""><div dir="ltr">Also, forgot to mention ...<br><br>Using named dimensions should only be done when reordering an array. Nothing wrong with doing so but is is&nbsp; less efficient than ..<br><br>lon2d&nbsp;=&nbsp;inp0-&gt;XLONG_M&nbsp;(0, :, :)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 23, 2015 at 8:11 AM, Dennis Shea<span class="Apple-converted-space">&nbsp;</span><span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div dir="ltr"><div>I don't understand why either.&nbsp; 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 class="Apple-converted-space">&nbsp;</span><span dir="ltr">&lt;<a href="mailto:fengfengabc003@163.com" target="_blank">fengfengabc003@163.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br></div></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div><div class="h5"><u></u><div style="font-size: 10pt; font-family: 微软雅黑; margin-left: 10px; margin-top: 10px; margin-right: 10px;"><div>Hi&nbsp;ncl-users,</div><div>&nbsp;</div><div>I&nbsp;have&nbsp;encounted&nbsp;an&nbsp;error&nbsp;when&nbsp;reading&nbsp;a&nbsp;variable&nbsp;from&nbsp;an&nbsp;NC&nbsp;file.</div><div>the&nbsp;code&nbsp;is&nbsp;listed&nbsp;below:</div><div>;************************************************</div><div>load&nbsp;"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div><div>;************************************************</div><div>begin</div><div>&nbsp;&nbsp;inp0&nbsp;=&nbsp;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;">&nbsp;&nbsp;lon2d&nbsp;=&nbsp;inp0-&gt;XLONG_M&nbsp;(Time|0,&nbsp;south_north|:,&nbsp;west_east|:)</div><div>&nbsp;&nbsp;printVarSummary(lon2d)</div><div>;************************************************</div><div>end</div><div>&nbsp;</div><div>the&nbsp;error&nbsp;message&nbsp;is:</div><div>&nbsp;Copyright&nbsp;(C)&nbsp;1995-2013&nbsp;-&nbsp;All&nbsp;Rights&nbsp;Reserved</div><div>&nbsp;University&nbsp;Corporation&nbsp;for&nbsp;Atmospheric&nbsp;Research</div><div>&nbsp;NCAR&nbsp;Command&nbsp;Language&nbsp;Version&nbsp;6.1.2</div><div>&nbsp;The&nbsp;use&nbsp;of&nbsp;this&nbsp;software&nbsp;is&nbsp;governed&nbsp;by&nbsp;a&nbsp;License&nbsp;Agreement.</div><div>&nbsp;See&nbsp;<a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a>&nbsp;for&nbsp;more&nbsp;details.</div><div>Segmentation&nbsp;fault&nbsp;(core&nbsp;dumped)</div><div>&nbsp;</div><div>The&nbsp;strange&nbsp;thing&nbsp;is&nbsp;when&nbsp;i'm&nbsp;reading&nbsp;the&nbsp;variable&nbsp;without&nbsp;any&nbsp;dimention&nbsp;name&nbsp;cited,&nbsp;the&nbsp;error&nbsp;disappeared.</div><div>The&nbsp;code&nbsp;changes&nbsp;into&nbsp;:</div><div>;************************************************</div><div>load&nbsp;"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div><div>;************************************************</div><div>begin</div><div>&nbsp;&nbsp;inp0&nbsp;=&nbsp;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;">&nbsp;&nbsp;lon2d&nbsp;=&nbsp;inp0-&gt;XLONG_M</div><div>&nbsp;&nbsp;printVarSummary(lon2d)</div><div>;************************************************</div><div>end</div><div>&nbsp;</div><div>I don't understand why. It is very appreciate if&nbsp;anybody can tell me the reason.</div><div>Thanks.</div><div>&nbsp;</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></blockquote></div></div></blockquote></div></div></div></div></div></div></div></blockquote></div><br></div></body></html>