<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Alan,<br>Great. That is the one I finally need. <br>All the helps from both of you are appreciated.<br>Best wishes,<br>Ting<br><br><div><hr id="stopSpelling">From: abrammer@albany.edu<br>Date: Fri, 24 Apr 2015 14:53:49 -0400<br>Subject: Re: [ncl-talk] how to get the dimension size in netcdf file<br>To: leiting2002@hotmail.com<br>CC: ncl-talk@ucar.edu; dbrown@ucar.edu<br><br><div dir="ltr"><div class="ecxgmail_default" style="font-family:verdana,sans-serif;">Isn't that functionality in this function?&nbsp;</div><div class="ecxgmail_default" style="font-family:verdana,sans-serif;"><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/getfilevardimsizes.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/getfilevardimsizes.shtml</a><br></div><div class="ecxgmail_default" style="font-family:verdana,sans-serif;"><br></div><div class="ecxgmail_default" style="font-family:verdana,sans-serif;"><br></div><div class="ecxgmail_default" style="font-family:verdana,sans-serif;">Alan.&nbsp;</div></div><div class="ecxgmail_extra"><br><div class="ecxgmail_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="ecxgmail_quote" style="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>
&nbsp;-dave<br>
<div class="ecxHOEnZb"><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 "smarter" 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'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't<br>
&gt;&gt; &gt; found<br>
&gt;&gt; &gt; it.<br>
&gt;&gt; &gt; I have a netcdf file (the "sparse grid" 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 '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 'm lost on how to access those definitions of "lat" and "lon"<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></div>                                               </div></body>
</html>