<div dir="ltr">Thank Alan for you guidance. </div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><br></div><div><b><font size="1">Gibies George,<br></font></b><b><font size="1">Senior Research Fellow (</font></b><b><font size="1">CSIR)</font></b><b><font size="1">,</font></b><b><font size="1"><br>Climate and Global Modelling Division,<br>Indian Institute of Tropical Meteorology,<br>Dr. Homi Bhabha Road, NCL (P. O.), Pashan,<br>Pune 411008, India.<br>Office Teleph  : +912025904423<br>Office mail      : <a href="mailto:gibies@tropmet.res.in" target="_blank">gibies@tropmet.res.in</a><br><br>________________<br><br>Vettikuzhiyil House<br>Ezhakkaranadu South<br>Puthencruz-682308, Kochi, India.<br>Mobile number :  +919028523910, +919420407392, +919881707796<br>Personal mail : <a href="mailto:gibiesgeorge@gmail.com" target="_blank">gibiesgeorge@gmail.com</a><br><a href="http://sites.google.com/site/gibiesge/" target="_blank">http://sites.google.com/site/gibiesge/</a></font></b><div style="margin-left:80px"><b><font size="1"><br></font></b></div><font color="#274e13"><b><span style="font-family:Arial;font-size:16px">_______________________________________________________</span><br>&quot;Please do not print this e-mail unless you really need. Because every 3000 pages cost a tree. </b></font><div><b><font color="#274e13">Save Trees, Save mother Earth.&quot;</font></b></div></div></div></div></div>
<br><div class="gmail_quote">On 12 February 2015 at 20:47, 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">Not sure if this is really a bug as such. <div><br></div><div> You&#39;re longitude data does not exactly fall on the pivot point you request.  (/.... -0.75,-0.25, 0.25, 0.75 .... /) .  NCL is finding the nearest point through coordinate subscripting and as they are equally far from 0 it is choosing -0.25. <div><br></div><div>The line in question from the function is  `  indP = ind(xlon.eq.xlon({pivotLon}))  ; must be exact `  because it&#39;s not exact it will find the nearest location. Given two values the same distance away, NCL will pick the first one. </div><div><br></div><div>Redefining the longitude as you do is not the correct solution, your data will be offset 0.5degrees from the grid it was actually on.  Instead change your pivot point 0.25 or a point that your longitude data includes. </div><div><br></div><div>Good luck, </div><div>Alan. </div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 12, 2015 at 8:40 AM, gibies george <span dir="ltr">&lt;<a href="mailto:gibies@tropmet.res.in" target="_blank">gibies@tropmet.res.in</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 dir="ltr"><br clear="all"><div><div><div dir="ltr"><div>Dear NCL support team,</div><div><br></div><div>Here I am reporting a probable bug in the lonPivot function. </div><div><br></div><div>Hope the following script and its output are self-explanatory.</div><div><br></div><div>Regards</div><div><br></div><div>Gibies</div><div><br></div><div>________________Script_________________</div><div><br></div><div><div>printVarSummary(hcst_sst)</div><div>hcst_sst=lonPivot(hcst_sst,0)</div><div>printVarSummary(hcst_sst)</div><div><b>lonnew=fspan(0.25,359.75,720)</b></div><div><b>hcst_sst&amp;lon=lonnew</b></div><div>printVarSummary(hcst_sst)</div></div><div>_________________________Output________</div><div><br></div><div><br></div><div><div>Variable: hcst_sst</div><div>Type: float</div><div>Total Size: 273945600 bytes</div><div>            68486400 values</div><div>Number of Dimensions: 4</div><div>Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[year | 29] x [month | 8] x [lat | 410] x [lon | 720]</div><div>Coordinates: </div><div>            year: [1981..2009]</div><div>            month: [2..9]</div><div>            lat: [-80.75..89.75]</div><div>            lon: [-279.75..79.75]</div><div>Number Of Attributes: 1</div><div>  _FillValue :<span style="white-space:pre-wrap">        </span>-1e+10</div><div><br></div><div>Variable: hcst_sst</div><div>Type: float</div><div>Total Size: 273945600 bytes</div><div>            68486400 values</div><div>Number of Dimensions: 4</div><div>Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[year | 29] x [month | 8] x [lat | 410] x [lon | 720]</div><div>Coordinates: </div><div>            year: [1981..2009]</div><div>            month: [2..9]</div><div>            lat: [-80.75..89.75]</div><div>            lon:<b> [-0.25..-0.75]</b></div><div>Number Of Attributes: 2</div><div>  lonPivot :<span style="white-space:pre-wrap">        </span>reordered via lonPivot [NCL]: pivotLon=0</div><div>  _FillValue :<span style="white-space:pre-wrap">        </span>-1e+10</div><div><br></div><div>Variable: hcst_sst</div><div>Type: float</div><div>Total Size: 273945600 bytes</div><div>            68486400 values</div><div>Number of Dimensions: 4</div><div>Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[year | 29] x [month | 8] x [lat | 410] x [lon | 720]</div><div>Coordinates: </div><div>            year: [1981..2009]</div><div>            month: [2..9]</div><div>            lat: [-80.75..89.75]</div><div>            lon: [0.25..359.75]</div><div>Number Of Attributes: 2</div><div>  lonPivot :<span style="white-space:pre-wrap">        </span>reordered via lonPivot [NCL]: pivotLon=0</div><div>  _FillValue :<span style="white-space:pre-wrap">        </span>-1e+10</div></div><div><br></div></div></div></div>
</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>