<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10px"><div><span>Its now work, Thank you very much</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 10px;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"> <div dir="ltr"> <font size="2" face="Arial"> On Thursday, 25 September 2014, 6:48, Mary Haley &lt;haley@ucar.edu&gt; wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv9941420775"><div><div dir="ltr"><div class="yiv9941420775gmail_default" style="font-size:small;">If I understand what you're asking, then "write_table" is probably what you need:</div><div class="yiv9941420775gmail_default" style="font-size:small;"><br clear="none"></div><div
 class="yiv9941420775gmail_default" style=""><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Document/Functions/Built-in/write_table.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/write_table.shtml</a><br clear="none"></div><div class="yiv9941420775gmail_default" style=""><br clear="none"></div><div class="yiv9941420775gmail_default" style="">See the "examples" section.</div><div class="yiv9941420775gmail_default" style=""><br clear="none"></div><div class="yiv9941420775gmail_default" style="">Or, a very simple script:</div><div class="yiv9941420775gmail_default" style=""><br clear="none"></div><div class="yiv9941420775gmail_default" style="">







<div class="yiv9941420775"><font face="courier new, monospace">years &nbsp;= (/2006,2006,2006/)<br clear="none">months = (/ &nbsp; 1, &nbsp; &nbsp;1, &nbsp; 1/)<br clear="none">days &nbsp; = (/ &nbsp; 1, &nbsp; &nbsp;2, &nbsp; 3/)<br clear="none">ntime &nbsp;= dimsizes(years)</font></div><div class="yiv9941420775"><font face="courier new, monospace">lines = new(ntime+1,string)</font></div><div class="yiv9941420775"><font face="courier new, monospace">;---header<br clear="none">lines(0) = "year,month,day"</font></div><div class="yiv9941420775"><font face="courier new, monospace">;--rest of values<br clear="none">do i=0,ntime-1<br clear="none">&nbsp; lines(i+1) = str_join((/years(i),months(i),days(i)/),",")<br clear="none">end do</font></div><div class="yiv9941420775"><font face="courier new, monospace">asciiwrite("test.csv",lines)<br clear="none"></font></div><div>Or, see other ASCII writing examples at:</div><div><br clear="none"></div><div><a
 rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Applications/o-ascii.shtml">http://www.ncl.ucar.edu/Applications/o-ascii.shtml</a><br clear="none"></div></div><div class="yiv9941420775gmail_default" style=""><br clear="none"></div><div class="yiv9941420775gmail_default" style="">--Mary</div></div><div class="yiv9941420775gmail_extra"><br clear="none"><div class="yiv9941420775gmail_quote">On Wed, Sep 24, 2014 at 1:51 AM, azizul haque <span dir="ltr">&lt;<a rel="nofollow" shape="rect" ymailto="mailto:haque.azizul320@yahoo.com" target="_blank" href="mailto:haque.azizul320@yahoo.com">haque.azizul320@yahoo.com</a>&gt;</span> wrote:<br clear="none"><blockquote class="yiv9941420775gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv9941420775yqt3193590574" id="yiv9941420775yqt73677"><div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size:
 10px; background-color: rgb(255, 255, 255);"><div>Hi NCL User,</div><div>I need to convert a netcdf time dimension to csv in the following excel format. Your suggestion are highly appreciated.</div><div><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 10px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;">Regards</div><div style="color: rgb(0, 0, 0); font-size: 10px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;">Azizul</div><div>year &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; month &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;day &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; precipitation</div><div style="color: rgb(0, 0, 0); font-size: 10px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;"><br clear="none">









</div><table border="0" cellpadding="0" cellspacing="0" width="260" style="border-collapse:collapse;width:260pt;"><colgroup span="1"><col span="4" width="65" style="width:65pt;"></colgroup><tbody><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" width="65" style="height:15.0pt;width:65pt;">        2006</td><td align="right" colspan="1" rowspan="1" width="65" style="width:65pt;">1</td><td align="right" colspan="1" rowspan="1" width="65" style="width:65pt;">1</td><td align="right" colspan="1" rowspan="1" width="65" style="width:65pt;">1.84E-02</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">2</td><td align="right" colspan="1" rowspan="1">1.64E-01</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td
 align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">3</td><td align="right" colspan="1" rowspan="1">7.19E-04</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">4</td><td align="right" colspan="1" rowspan="1">1.10E-03</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">5</td><td align="right" colspan="1" rowspan="1">1.64E-03</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">6</td><td align="right" colspan="1" rowspan="1">1.04E-03</td></tr><tr
 height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">7</td><td align="right" colspan="1" rowspan="1">1.50E-03</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">8</td><td align="right" colspan="1" rowspan="1">1.90E-03</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">9</td><td align="right" colspan="1" rowspan="1">2.03E-01</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td
 align="right" colspan="1" rowspan="1">10</td><td align="right" colspan="1" rowspan="1">5.19E-01</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">11</td><td align="right" colspan="1" rowspan="1">1.30E-01</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">12</td><td align="right" colspan="1" rowspan="1">1.34E-02</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">13</td><td align="right" colspan="1" rowspan="1">2.46E-03</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1"
 rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">14</td><td align="right" colspan="1" rowspan="1">2.12E-03</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">15</td><td align="right" colspan="1" rowspan="1">2.27E-03</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">16</td><td align="right" colspan="1" rowspan="1">2.50E-03</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">17</td><td
 align="right" colspan="1" rowspan="1">1.62E-03</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">18</td><td align="right" colspan="1" rowspan="1">1.10E-03</td></tr><tr height="15" style="height:15.0pt;"><td colspan="1" rowspan="1" height="15" style="height:15.0pt;">        2006</td><td align="right" colspan="1" rowspan="1">1</td><td align="right" colspan="1" rowspan="1">19</td><td align="right" colspan="1" rowspan="1">1.11E-03</td></tr></tbody></table></div></div></div><br clear="none">_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div>  </div> </div>  </div> </div></body></html>