<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. </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>> 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: dbrown@ucar.edu<br>> To: leiting2002@hotmail.com<br>> CC: ncl-talk@ucar.edu<br>> <br>> Hi Ting,<br>> getfiledimsizes is the function to use.<br>> See http://www.ncl.ucar.edu/Document/Functions/Built-in/getfiledimsizes.shtml<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 <leiting2002@hotmail.com> wrote:<br>> > Dear Ncl folks,<br>> > I apologize first if this is a duplicated question though I haven't 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 ,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" 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>> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br>> ><br></div></div>                                            </div></body>
</html>