<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Isn&#39;t that functionality in this function? </div><div class="gmail_default" style="font-family:verdana,sans-serif"><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/getfilevardimsizes.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/getfilevardimsizes.shtml</a><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Alan. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 April 2015 at 14:36, David Brown <span dir="ltr">&lt;<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@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">Well we would need to create another function to do that. We will<br>
consider it. Thanks for the suggestion.<br>
 -dave<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Apr 24, 2015 at 12:32 PM, LeiTing &lt;<a href="mailto:leiting2002@hotmail.com">leiting2002@hotmail.com</a>&gt; wrote:<br>
&gt; Dave,<br>
&gt; Thank you so much. That is already the solution I need.<br>
&gt; However, can NCL be &quot;smarter&quot; that ,say, I can directly ask for the size of<br>
&gt; a named dimension?<br>
&gt; I know I can do it after using the function you pointed out, however, I&#39;m<br>
&gt; just wondering if there are some tip that directly do it.<br>
&gt; Thanks a lot.<br>
&gt; Ting<br>
&gt;<br>
&gt;&gt; Date: Fri, 24 Apr 2015 12:01:50 -0600<br>
&gt;&gt; Subject: Re: [ncl-talk] how to get the dimension size in netcdf file<br>
&gt;&gt; From: <a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a><br>
&gt;&gt; To: <a href="mailto:leiting2002@hotmail.com">leiting2002@hotmail.com</a><br>
&gt;&gt; CC: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi Ting,<br>
&gt;&gt; getfiledimsizes is the function to use.<br>
&gt;&gt; See<br>
&gt;&gt; <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/getfiledimsizes.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Built-in/getfiledimsizes.shtml</a><br>
&gt;&gt;<br>
&gt;&gt; The example shows how to get the dimensions names along with the sizes.<br>
&gt;&gt; -dave<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Apr 24, 2015 at 10:12 AM, LeiTing &lt;<a href="mailto:leiting2002@hotmail.com">leiting2002@hotmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Dear Ncl folks,<br>
&gt;&gt; &gt; I apologize first if this is a duplicated question though I haven&#39;t<br>
&gt;&gt; &gt; found<br>
&gt;&gt; &gt; it.<br>
&gt;&gt; &gt; I have a netcdf file (the &quot;sparse grid&quot; by NSSL), with ncdump output as<br>
&gt;&gt; &gt; ^^^^^^^^^^^^<br>
&gt;&gt; &gt; dimensions:<br>
&gt;&gt; &gt; Lat = 236 ;<br>
&gt;&gt; &gt; Lon = 355 ;<br>
&gt;&gt; &gt; pixel = 12596 ;<br>
&gt;&gt; &gt; variables:<br>
&gt;&gt; &gt; float RefQC(pixel) ;<br>
&gt;&gt; &gt; ..............................<br>
&gt;&gt; &gt; VV<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I want to get the dimension lat and lon, which can &#39;t be obtained by<br>
&gt;&gt; &gt; ,say,<br>
&gt;&gt; &gt; dimsize (RefQC).<br>
&gt;&gt; &gt; They are also not global attributes.<br>
&gt;&gt; &gt; Hence, I &#39;m lost on how to access those definitions of &quot;lat&quot; and &quot;lon&quot;<br>
&gt;&gt; &gt; in<br>
&gt;&gt; &gt; the netcdf file.<br>
&gt;&gt; &gt; Your help is appreciated.<br>
&gt;&gt; &gt; Best wishes,<br>
&gt;&gt; &gt; Ting<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; ncl-talk mailing list<br>
&gt;&gt; &gt; List instructions, subscriber options, unsubscribe:<br>
&gt;&gt; &gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;&gt; &gt;<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>
</div></div></blockquote></div><br></div>