<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Isn'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"><<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>></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 <<a href="mailto:leiting2002@hotmail.com">leiting2002@hotmail.com</a>> wrote:<br>
> Dave,<br>
> Thank you so much. That is already the solution I need.<br>
> However, can NCL be "smarter" that ,say, I can directly ask for the size of<br>
> a named dimension?<br>
> I know I can do it after using the function you pointed out, however, I'm<br>
> just wondering if there are some tip that directly do it.<br>
> Thanks a lot.<br>
> Ting<br>
><br>
>> Date: Fri, 24 Apr 2015 12:01:50 -0600<br>
>> Subject: Re: [ncl-talk] how to get the dimension size in netcdf file<br>
>> From: <a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a><br>
>> To: <a href="mailto:leiting2002@hotmail.com">leiting2002@hotmail.com</a><br>
>> CC: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
><br>
>><br>
>> Hi Ting,<br>
>> getfiledimsizes is the function to use.<br>
>> See<br>
>> <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>
>><br>
>> The example shows how to get the dimensions names along with the sizes.<br>
>> -dave<br>
>><br>
>><br>
>> On Fri, Apr 24, 2015 at 10:12 AM, LeiTing <<a href="mailto:leiting2002@hotmail.com">leiting2002@hotmail.com</a>> wrote:<br>
>> > Dear Ncl folks,<br>
>> > I apologize first if this is a duplicated question though I haven't<br>
>> > found<br>
>> > it.<br>
>> > I have a netcdf file (the "sparse grid" by NSSL), with ncdump output as<br>
>> > ^^^^^^^^^^^^<br>
>> > dimensions:<br>
>> > Lat = 236 ;<br>
>> > Lon = 355 ;<br>
>> > pixel = 12596 ;<br>
>> > variables:<br>
>> > float RefQC(pixel) ;<br>
>> > ..............................<br>
>> > VV<br>
>> ><br>
>> > I want to get the dimension lat and lon, which can 't be obtained by<br>
>> > ,say,<br>
>> > dimsize (RefQC).<br>
>> > They are also not global attributes.<br>
>> > Hence, I 'm lost on how to access those definitions of "lat" and "lon"<br>
>> > in<br>
>> > the netcdf file.<br>
>> > Your help is appreciated.<br>
>> > Best wishes,<br>
>> > Ting<br>
>> ><br>
>> ><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>
>> ><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>