<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.9600.17690"><LINK rel=stylesheet 
href="Body{}">
<STYLE>BLOCKQUOTE {
        MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
P {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
BODY {
        FONT-SIZE: 10.5pt; FONT-FAMILY: Î¢ÈíÑźÚ; COLOR: #000000; LINE-HEIGHT: 1.5
}
</STYLE>
</HEAD>
<BODY 
style="FONT-SIZE: 10pt; FONT-FAMILY: Î¢ÈíÑźÚ; COLOR: #000000; 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/geo_em.d01.nc","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;http://www.ncl.ucar.edu/&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/geo_em.d01.nc","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></BODY></HTML>