<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>As noted by the previous email:<br></div><div><br>%> ncl_filedump MOD14CMH.201604.005.01.hdf | less<br><br>===<br></div>Did you look at this?<br><br>Variable: f<br>Type: file<br>filename: MOD14CMH.201604.005.01<br>path: MOD14CMH.201604.005.01.hdf<br> file global attributes:<br> Satellite : Terra<br> Instrument : MODIS<br> StartDate : 2016-04-01T00:00:00<br> EndDate : 2016-04-30T23:59:59<br> BinSize : 0.5<br> dimensions:<br> LatRows = 360 <===named dimensions and sizes<br> LonCols = 720<br><br></div>They are **not** variables, the are named dimension sizes<br><br></div>The file contains **no variables** which contain latitude and longitude. Hence, in my view, a poorly written file.<br><br></div>Given the sizes I speculate that <br><br><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/latGlobeFo.shtml">http://www.ncl.ucar.edu/Document/Functions/Contributed/latGlobeFo.shtml</a><br><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/lonGlobeFo.shtml">http://www.ncl.ucar.edu/Document/Functions/Contributed/lonGlobeFo.shtml</a><br><br></div>could be used to generate the lat/lon arrays. You may have to rearrange to the correct order.<br><br></div><div> lat = latGlobeFo(..)<br></div><div> lon = lonGlobeFo()<br></div><div><br></div> x = f=>X ; (LatRows,LonCols)<br></div> x!0 = "lat"<br></div> x!1 = "lon"<br><br></div> x&lat = lat<br></div> x&lon = lon<br><br></div>HTH<br><div><div><div><div><div><br><div><div><div><div><br><div><br></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 11:07 PM, Griffith Young <span dir="ltr"><<a href="mailto:griffith.young@bom.gov.au" target="_blank">griffith.young@bom.gov.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-AU">
<div class="m_-8052025831298176927WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Try a print(a) statement and see if the variables you are looking for exist.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You may have the wrong name for the variable...<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> Griff.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d">Griffith Young
</span></b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d">| SITOC </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><br>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><img id="m_-8052025831298176927Picture_x0020_1" src="cid:image001.gif@01D2A25D.27F82DC0" alt="cid:409470105@28052013-3564" height="87" width="250"><br>
</span><b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d">Research and Development Branch</span></b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d"><br>
Bureau of Meteorology<br>
GPO Box 1289 Melbourne VIC 3001<br>
Level 9, 700 Collins Street, Docklands VIC 3008<br>
Tel: <a href="tel:+61%203%209616%208381" value="+61396168381" target="_blank">+61 3 9616 8381</a> | <a href="mailto:G.Young@bom.gov.au" target="_blank"><span style="color:blue">G.Young@bom.gov.au</span></a><br>
<a href="http://www.bom.gov.au/" target="_blank"><span style="color:blue">www.bom.gov.au</span></a> - <a href="http://cawcr.gov.au" target="_blank">cawcr.gov.au</a> - <a href="http://poama.bom.gov.au" target="_blank">poama.bom.gov.au</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.<wbr>edu</a>]
<b>On Behalf Of </b>Kunal Bali<br>
<b>Sent:</b> Tuesday, 21 March 2017 3:39 PM<br>
<b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> [ncl-talk] set_dimension<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Dear NCL users,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I have data with dimension and size as<br>
<br>
Dimensions and sizes: [LatRows | 360] x [LonCols | 720]<u></u><u></u></p>
</div>
<p class="MsoNormal">for that, I am trying to read my dimensions as<br>
<br>
lat = a->LatRows<br>
lon = a->LonCols<br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">so resources are using as <br>
res@sfXArray = lon<br>
res@sfYArray = lat<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
BUT it is still showing an error <br>
<b>variable (LatRows) is not in file (a</b>)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">So please let me know how to read the dimensions my the attached file.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thank You<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
Regards<br>
Kunal Bali<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif""><u></u> <u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>