<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dave,<div>Thank you so much. That is already the solution I need.&nbsp;</div><div>However, can NCL be "smarter" that ,say, I can directly ask for the size of a named dimension?</div><div>I know I can do it after using the function you pointed out, however, I'm just wondering if there are some tip that directly do it.</div><div>Thanks a lot.</div><div>Ting<br><br><div>&gt; Date: Fri, 24 Apr 2015 12:01:50 -0600<br>&gt; Subject: Re: [ncl-talk] how to get the dimension size in netcdf file<br>&gt; From: dbrown@ucar.edu<br>&gt; To: leiting2002@hotmail.com<br>&gt; CC: ncl-talk@ucar.edu<br>&gt; <br>&gt; Hi Ting,<br>&gt; getfiledimsizes is the function to use.<br>&gt; See http://www.ncl.ucar.edu/Document/Functions/Built-in/getfiledimsizes.shtml<br>&gt; <br>&gt; The example shows how to get the dimensions names along with the sizes.<br>&gt;  -dave<br>&gt; <br>&gt; <br>&gt; On Fri, Apr 24, 2015 at 10:12 AM, LeiTing &lt;leiting2002@hotmail.com&gt; wrote:<br>&gt; &gt; Dear Ncl folks,<br>&gt; &gt; I apologize first if this is a duplicated question though I haven't found<br>&gt; &gt; it.<br>&gt; &gt; I have a netcdf file (the "sparse grid" by NSSL), with ncdump output as<br>&gt; &gt; ^^^^^^^^^^^^<br>&gt; &gt; dimensions:<br>&gt; &gt;         Lat = 236 ;<br>&gt; &gt;         Lon = 355 ;<br>&gt; &gt;         pixel = 12596 ;<br>&gt; &gt; variables:<br>&gt; &gt;         float RefQC(pixel) ;<br>&gt; &gt; ..............................<br>&gt; &gt; VV<br>&gt; &gt;<br>&gt; &gt; I want to get the dimension lat and lon, which can 't be obtained by ,say,<br>&gt; &gt; dimsize (RefQC).<br>&gt; &gt; They are also not global attributes.<br>&gt; &gt; Hence, I 'm lost on how to access those definitions of "lat" and "lon" in<br>&gt; &gt; the netcdf file.<br>&gt; &gt; Your help is appreciated.<br>&gt; &gt; Best wishes,<br>&gt; &gt; Ting<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; ncl-talk mailing list<br>&gt; &gt; List instructions, subscriber options, unsubscribe:<br>&gt; &gt; http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br>&gt; &gt;<br></div></div>                                               </div></body>
</html>