<div dir="ltr"><div><div><div>Hello <span class=""><font color="#888888"><font size="2">Guilherme,<br><br></font></font></span></div><span class=""><font color="#888888"><font size="2">That is not an error.<br><br></font></font></span></div><span class=""><font color="#888888"><font size="2">The function changes the case of the named dimensions to avoid naming conflicts.<br><br></font></font></span></div><div><span class=""><font color="#888888"><font size="2">  xin(...,lat,lon)<br><br></font></font></span></div><div><span class=""><font color="#888888"><font size="2">  xnew = lintin2_Wrap(xin<br></font></font></span><br><pre>fo = <strong>linint2_Wrap</strong> (lon,lat,fi, True, lon_out,lat_out, 0)<br><br></pre><pre><span style="font-family:arial,helvetica,sans-serif"><font size="2">&#39;fo&#39; can not have the same named spatial dimension as &#39;fi&#39; because <br>they are different coordinates!  :-)<br><br></font></span></pre><pre><span style="font-family:arial,helvetica,sans-serif"><font size="2">So  if lon_out/lat_out  have no named dimensions, linint2_Wrap will assign <br>&quot;X&quot; and &quot;Y&quot; as the named dimensions; if lon_out/lat_out have named dimensions, <br>the function changes the case</font></span><font size="2"><span style="font-family:arial,helvetica,sans-serif"> to be unique.</span><br><br></font></pre><pre><font size="2">D<br></font></pre><pre><font size="2"></font></pre></div><div><span class=""><font color="#888888"><font size="2"><br></font></font></span></div><div><span class=""><font color="#888888"><font size="2">  <br></font></font></span></div><div><span class=""><font color="#888888"><font size="2"><br></font></font></span></div><span class=""><font color="#888888"><font size="2">eg: if you were <br></font></font></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 3, 2016 at 5:01 PM, Guilherme Martins <span dir="ltr">&lt;<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@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 users,<div><br></div><div>My original file contain the follow informations:<br></div><div><br></div><div><div>Variable: <b>prec</b></div><div>Type: float</div><div>Total Size: 27648000 bytes</div><div>            6912000 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[time | 12] x [<b>lat</b> | 400] x [<b>lon</b> | 1440]</div><div>Coordinates: </div><div>            time: [96432..104448]</div><div>            <b>lat</b>: [-49.875..49.875]</div><div>            <b>lon</b>: [-179.875..179.875]</div></div><div><br></div><div>But when I use the linint2_Wrap function:</div><div><br></div><div>prec_interp = linint2_Wrap(prec&amp;lon,prec&amp;lat,prec,True,new_lon,new_lat,0)<br></div><div><br></div><div>I realized that the name of the dimensions change to uppercase.<br></div><div><br></div><div><div>Variable: prec_interp</div><div>Type: float</div><div>Total Size: 497664 bytes</div><div>            124416 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[time | 12] x [<b>LAT</b> | 72] x [<b>LON</b> | 144]</div><div>Coordinates: </div><div>            time: [96432..104448]</div><div>            <b>LAT</b>: [-49.875..49.875]</div><div>            <b>LON</b>: [-178.75..178.75]</div></div><div><br></div><div>The NCL do not like this name in capital letters. Please, someone could look that?</div><div><br></div><div>I solved my problem by using the &quot;!&quot; to change the name of my dimensions. I do not know if this is some kind of bug.<br></div><div><br></div><div>Thanks,</div><div><br></div><div>Guilherme.</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div dir="ltr"><div><font size="2"><div>------------------------------------------------------------------------------------------</div><div>Dr. Guilherme Martins</div><div>Instituto Nacional de Pesquisas Espaciais (INPE)<br></div></font></div><div><font size="2">Centro de Ciência do Sistema Terrestre (CCST) - Prédio CES<br></font>Grupo de Superfície-Biosfera-Atmosfera (GSBA)<font size="2"><br></font></div><div>Telefone (INPE/CP): <a href="tel:%2B55%2012%203186-9520" value="+551231869520" target="_blank">+55 12 3186-9520</a> || Celular (TIM): <a href="tel:%2B55%2012%2098152-8580" value="+5512981528580" target="_blank">+55 12 98152-8580</a><br>E-mail: <a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a> || <a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a><br>Skype: guilherme.martins.<br>Homepage: <a href="https://sites.google.com/site/jgmsantos" target="_blank">https://sites.google.com/site/jgmsantos</a><br>Currículo Lattes: <a href="http://lattes.cnpq.br/5997657584785803" target="_blank">http://lattes.cnpq.br/5997657584785803</a><span><br></span>------------------------------------------------------------------------------------------</div></div>
</font></span><br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>