<div dir="ltr"><div><div><div>Dear NCL<br><br></div>I have a file with the variable summary. The dimensions are in 2D. <br><br>ncl 2> printVarSummary(var)<br><br>Variable: var<br>Type: short<br>Total Size: 2880000 bytes<br> 1440000 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [<b>YDim_grid1km | 1200] x [XDim_grid1km | 1200]</b><br>Coordinates: <br>Number Of Attributes: 7<br> long_name : AOT at 0.55 micron<br> scale_factor : 0.001<br> add_offset : 0<br> unit : None<br> _FillValue : -28672<br> valid_range : ( -100, 5000 )<br> hdf_name : Optical_Depth_055<br><br><br></div>I am trying to read the dimensions of this file as<br><br>begin<br>;---Read data <br> a = addfile("/media/Local Disk/NPL/MODIS_FPC/MAIACTAOT.h00v02.20000570505.hdf","r")<br> <br> var = a->Optical_Depth_055(:,:)<br><br> var&XDim_grid1km = lat<br> var&YDim_grid1km = lon<br><br> nlat = 1200<br> nlon = 1200<br> lat = latGlobeFo(nlat, "lat", "latitude", "degrees_north")<br> lon = lonGlobeFo(nlon, "lon", "longitude", "degrees_east") <br> lat = lat(::-1)<br> lon = (/ lon - 180. /) ; subtract 180 from all values <br> lon&lon = lon ; update coordinates<br> <br> <br> var!0 = "lat"<br> var!1 = "lon"<br> <br><br></div>But the error appeared as <br><b>fatal:Variable (lat) is undefined</b><br><br><div><div><div><br></div><div>So, could anyone please let me know that how to read dimension of this file. <br><br></div><div>Thank You<br></div><div><br><div><br></div><div>Regards<br clear="all"></div><div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Kunal Bali<br></div><br><div><br></div><div><br></div><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div>
</div></div></div></div></div></div>