<p dir="ltr">printVarSummary(VAR&amp;lat)</p>
<p dir="ltr">The line I typed explicitly states to only print the summary of the lat coordinate. ** Please read the documentation and understand what it is you&#39;re copying.  **</p>
<p dir="ltr">  units :    degrees<br>
This is the cause of your problems. Again read the coordinate documentation this is all already explained for you.  Degrees is not really a unit. Ncl doesn&#39;t know whether its north, east, celcius, Fahrenheit etc. Hence changing it to &quot;degrees_north&quot; for latitude. </p>
<p dir="ltr">These are trivial problems that can be solved by taking an afternoon to read the documentation on the website. It&#39;ll save you time in the short and long term. <br><br></p>
<div class="gmail_quote">On 15 Oct 2014 01:41, &quot;Kunal Bali&quot; &lt;<a href="mailto:kunal.bali9@gmail.com">kunal.bali9@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>After editing the scripts according to you , the dimensions size not showing [lon | 421] ??<br><br></div><div>How to fix it ?? <br></div><br>its shows like<br><br><span style="background-color:rgb(255,255,255)"><b>Variable: lat (coordinate)</b></span><br>Type: float<br>Total Size: 1252 bytes<br>            313 values<br>Number of Dimensions: 1<br>Dimensions and sizes:    [lat | 313]<br>Coordinates: <br>Number Of Attributes: 9<br>  scale :    0<br>  stride :    0.08333334<br>  gridReference :    edge<br>  standard_name :    latitude<br>  endValue :    26<br>  units :    degrees<br>  scaleType :    linear<br>  startValue :    -0.08333065<br>  size :    313<br><br></div><div class="gmail_extra"><br clear="all"><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><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>
<br><div class="gmail_quote">On Wed, Oct 15, 2014 at 10:50 AM, Alan Brammer <span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.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">Kunal, <div><span><br><div><span style="font-size:13px;font-family:arial,sans-serif">Coordinates: </span><br style="font-size:13px;font-family:arial,sans-serif"><span style="font-size:13px;font-family:arial,sans-serif">            G3fakeDim0: [-0.04166399..25.95834]</span><br style="font-size:13px;font-family:arial,sans-serif"><span style="font-size:13px;font-family:arial,sans-serif">            G3fakeDim1: [59.95834..94.95834]</span><br></div></span><div>Are these coordinates correct with respect to the data?   NCL map routines expect coordinates to have lat/lon relative units .e.g &quot;degrees_north&quot;. </div><div>Therefore if the data is expect to span 0 to 25N and 60 to 94E, you could first rename the coordinates so they are a litle more user friendly, then attach the respective units to both lat and lon coordinates.   </div><div><br></div><div><br></div><div>!!!!  This is untested psuedo-code it  may not work directly but should show the general idea to be applied. Please edit appropriately !!!!  </div><div><br></div><div>VAR!0 = &quot;lat&quot;</div><div>VAR!1 = &quot;lon&quot;<br></div></div><div><br></div><div>printVarSummary(VAR&amp;lat)</div><div><br></div><div>VAR&amp;lat@units = &quot;degrees_north&quot;</div><div>VAR&amp;lon@units = &quot;degrees_east&quot;<br></div><div><br></div><div>printVarSummary(VAR&amp;lat)<br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 12:50 AM, Kunal Bali <span dir="ltr">&lt;<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</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">Dear NCL users <br><br>printVarSummary(VAR) shows the <br><br>Variable: VAR<br>Type: float<br>Total Size: 527092 bytes<br>            131773 values<br>Number of Dimensions: 2<br>Dimensions and sizes:    [G3fakeDim0 | 313] x [G3fakeDim1 | 421]<br>Coordinates: <br>            G3fakeDim0: [-0.04166399..25.95834]<br>            G3fakeDim1: [59.95834..94.95834]<br>Number Of Attributes: 11<br>  Scaling :    linear<br>  Slope :    0.000717185<br>  Scaling_Equation :    (Slope*l3m_data) + Intercept = Parameter value<br>  Intercept :    -2<br>  Fill :    65535<br>  _FillValue :    65535<br>  structureType :    Grid<br>  unitsCategory :    science<br>  units :    C<br>  scale_factor :     1<br>  add_offset :     0<br> <br><br></div><div class="gmail_extra"><span><br clear="all"><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><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>
<br></span><div><div><div class="gmail_quote">On Wed, Oct 15, 2014 at 2:40 AM, Maria Gehne - NOAA Affiliate <span dir="ltr">&lt;<a href="mailto:maria.gehne@noaa.gov" target="_blank">maria.gehne@noaa.gov</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">Hi Kunal,<div><br></div><div>most likely your data does not have coordinate variables attached to it. What does the printVarSummary(VAR) return? That should tell you if your data has lat/lon coordinates. If it doesn&#39;t then you need to attach those prior to plotting. You seem to know what the latitudes  and longitudes of your data are supposed to be so you could generate the two arrays for lat and lon yourself if they are not in the file.</div><div><br></div><div>Hope this helps. Replies to NCL-talk only please.</div><div><br></div><div>Maria</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Tue, Oct 14, 2014 at 11:53 AM, Kunal Bali <span dir="ltr">&lt;<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</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><div dir="ltr">Dear NCL users<br><br>I tried to plot SST.nc attached file through NCL . Actually 
the SST.nc file have the coordinates from lat - 0 26 and lon - 60 95 <br><br>But when i run the scripts so its showing data all over the world not on my coordinates, see the SST.pdf file<br><br>How to fix it ?? <br><span><font color="#888888"><br clear="all"><div><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><br></div><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></font></span></div>
<br></div></div>_______________________________________________<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></blockquote></div><br></div>
</blockquote></div><br></div></div></div>
<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></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
<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></blockquote></div>