<div dir="ltr"><div><div>Dear Dannis<br><br></div>I tried using <br><br>         var  = a-&gt;MeanPower(:,:)<br>         nlat = 360<br>          nlon = 720<br>          lat = latGlobeFo(nlat, &quot;lat&quot;, &quot;latitude&quot;, &quot;degrees_north&quot;)<br>          lon = lonGlobeFo(nlon, &quot;lon&quot;, &quot;longitude&quot;, &quot;degrees_east&quot;)   <br>   <br>        var!0 = &quot;lat&quot;<br>        var!1 = &quot;lon&quot;<br> <br>        var&amp;lat = lat<br>        var&amp;lon = lon<br><br></div> <img src="cid:ii_j0kr52z20_15af549a1b6c9b8d" style="margin-right: 0px;" height="223" width="223"><br><br><br>But still, the values are not within the coordinates.<br>​<br><div><br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Kunal Bali<br></div><div>Research Scholar <br></div><div>Radio &amp; Atmospheric Science Division <br></div><div>CSIR - National Physical Laboratory<br></div><div>New Delhi - 110012<br></div><div>India<br></div><div><br></div><div><br></div><div><br></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Mar 21, 2017 at 11:13 PM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>As noted by the previous email:<br></div><div><br>%&gt; 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     &lt;===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" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Functions/<wbr>Contributed/latGlobeFo.shtml</a><br><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/lonGlobeFo.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Functions/<wbr>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=&gt;X    ; (LatRows,LonCols)<br></div>   x!0 = &quot;lat&quot;<br></div>   x!1  = &quot;lon&quot;<br><br></div>   x&amp;lat = lat<br></div>   x&amp;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"><div><div class="h5">On Mon, Mar 20, 2017 at 11:07 PM, Griffith Young <span dir="ltr">&lt;<a href="mailto:griffith.young@bom.gov.au" target="_blank">griffith.young@bom.gov.au</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">





<div link="blue" vlink="purple" lang="EN-AU">
<div class="m_-8811645668865167802m_-8052025831298176927WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;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:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;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:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">                Griff.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d">Griffith Young
</span></b><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d">| SITOC </span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><br>
</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><img id="m_-8811645668865167802m_-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:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d">Research and Development Branch</span></b><span style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;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:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" 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-&gt;LatRows<br>
      lon =  a-&gt;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:&quot;Tahoma&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>