<div dir="ltr">Perhaps I do not understand:<br><br>sst =: <strong>lonPivot</strong>(sst, 0.5) ; reassign [ := ] 'sst' (could create new variable 'ss')<br><div><pre>printVarSummary(sst)<br>print("---")<br>print(sst&lon)<br>print("---")<br><br>newsst = linint2(sst&lon,sst&lat,sst,True,<wbr>newlon,newlat,0)<br><br>=============<br><br></pre><pre> asciiwrite("lonSave", sst&lon) ; write to ascii file</pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 26, 2018 at 2:49 AM, sjd.marjani via ncl-talk <span dir="ltr"><<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Tahoma,Arial,Helvetica,sans-serif">
<p>Hi</p>
<p><br></p>
<p>I have a file which its longitude is from <span>-279.5 to 79.5 , I reorder the longitudes with the help of using "lonPivot(sst, 0.5) "</span></p>
<p><span>here I send you the result of "printVarSummary" befor and afte using "lonPivot".</span></p>
<p><span>==============================<wbr>==================</span></p>
<p><span>Variable: sst<br>Type: float<br>Total Size: 653460480 bytes<br> 163365120 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 1956] x [rlat | 232] x [rlon | 360]<br>Coordinates:<br> time: [15.5..59479.5]<br> rlat: [-81.5..89.5]<br> rlon: [-279.5..79.5]</span></p>
<p><span>------------------------------<wbr>------------</span></p>
<p><span>Variable: ss<br>Type: float<br>Total Size: 653460480 bytes<br> 163365120 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 1956] x [rlat | 232] x [rlon | 360]<br>Coordinates:<br> time: [15.5..59479.5]<br> rlat: [-81.5..89.5]<br> rlon: [ 0.5..359.5]</span></p>
<p><span>==============================<wbr>=========================</span></p>
<p><span><span style="font-size:18pt">my problem is :</span></span></p>
<p><span>I want to print and save new longitudes, cause i want to use it in command below =></span></p>
<pre>newsst = linint2(lon,sst&LAT,sst,True,<wbr>newlon,newlat,0)<br><br> which is in this example <span><a href="https://www.ncl.ucar.edu/Applications/Scripts/regrid_1.ncl" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/Scripts/regrid_1.<wbr>ncl</a></span></pre>
<p>but i can not call new longitude.</p>
<p>infact I want to rearrange the longitude and then regrid it and use with some other sst data ,that i interpolate them before.</p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br><br></p>
</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>