<div dir="ltr"><div><div><div><div>Hello,<br><br></div><div>Please post only NCL i<b>nstallation questions</b> to the <a href="mailto:ncl-install@ucar.edu">ncl-install@ucar.edu</a> mail list.<br><br></div><div>Please post all NCL <b>usage questions</b> to <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br></div><div>You must subscribe.<br></div><div><br>----<br></div><div><br>The following uses 'asciiwrite':<br> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/asciiwrite.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/asciiwrite.shtml</a><br><br>;*********************************<br>; Write to ASCII<br>;*********************************<br> diro = "./"<br> filo = "Setareh_SPI.txt"<br> ptho = diro + filo<br> system("/bin/rm -f "+ptho) ; remove any pre-existing file<br><br> text = sprinti("%0.6i", YYYYMM) +" "+sprintf("%8.2f",yrfrac) +" "+\ <br> sprintf("%9.3f", spi_ts(0,:))+" "+sprintf("%9.3f", spi_ts(1,:))+" "+\<br> sprintf("%9.3f", spi_ts(2,:))+" "+sprintf("%9.3f", spi_ts(3,:))<br> ascrrwrite(ptho, text)<br><br></div><div>----<br>There are numerous examples of writing text (ascii) files. See:<br><br> <a href="https://www.ncl.ucar.edu/Applications/list_io.shtml">https://www.ncl.ucar.edu/Applications/list_io.shtml</a><br><br>----<br></div>Also, a very <b>nice tutorial </b>for NCL including plotting at:<br><br> <a href="https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/">https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/</a><br><br>----<br></div>Many more usage examples at:<br> <b><a href="https://www.ncl.ucar.edu/Applications/">https://www.ncl.ucar.edu/Applications/</a><br><br></b></div>See XY plots<br><br></div>Good luck<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 5, 2017 at 1:09 PM, Setareh Rahimi <span dir="ltr"><<a href="mailto:setareh.rahimi@gmail.com" target="_blank">setareh.rahimi@gmail.com</a>></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 All, <div><br></div><div>I have a script which gives me a plot of SPI( drought index), but I do not need to have a plot of results in Ncl, I just need an output, so I can plot it in Excel. Please help me how can I do so. Please have a look at the attached file which is the script of the SPI.</div><div><br></div><div>Look forward to hearing from you,<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div class="m_-7793848872563502436gmail_signature" data-smartmail="gmail_signature">S.Rahimi<br><br></div>
</font></span></div></div>
<br>______________________________<wbr>_________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-install</a><br>
<br></blockquote></div><br></div>