<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div><span>Hi Adam:</span></div><div id="yui_3_16_0_1_1440032260009_71405"><span></span><br></div><div id="yui_3_16_0_1_1440032260009_71404"><span>Thanks for your help!</span></div><div id="yui_3_16_0_1_1440032260009_71403"><span></span><br></div><div id="yui_3_16_0_1_1440032260009_71402"><span id="yui_3_16_0_1_1440032260009_71406">I found my problem. The text file contains some string.</span></div><div id="yui_3_16_0_1_1440032260009_71407"><span></span><br></div><div id="yui_3_16_0_1_1440032260009_71408"><span>Cheers!</span></div><div><span>Ed</span></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Friday, August 21, 2015 8:33 AM, Adam Phillips <asphilli@ucar.edu> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv3620729605"><div><div dir="ltr"><div><div><div><div><div>Hi Ed,<br clear="none"></div>First of all, version 6.0.0 is over 5 years old so we highly recommend you upgrade to the newest version (6.3.0). This is likely not the cause of the issue though.<br clear="none"><br clear="none"></div>As far as I know asciiread does not have a limit on the size of the file or on the dimensions of the data array. <br clear="none"><br clear="none"></div>Does your ascii file contain anything other than float values? Also, what happens if you read in the data with a (/-1/) as opposed to (/mn,ml/), do you get all the data?<br clear="none"><br clear="none"></div>As always when you respond please include the ncl-talk email list in your reply.<br clear="none"></div>Adam<br clear="none"></div><div class="yiv3620729605gmail_extra"><br clear="none"><div class="yiv3620729605gmail_quote">On Wed, Aug 19, 2015 at 7:25 PM, Yang Yang <span dir="ltr"><<a href="mailto:yang123yang@yahoo.com" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:yang123yang@yahoo.com">yang123yang@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv3620729605gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div class="yiv3620729605yqt7455577985" id="yiv3620729605yqt30118"><div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"><div><br clear="none"></div><div><br clear="none"><br clear="none"></div><div style="display: block;"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"><div dir="ltr"><br clear="none"></div> <div><div><div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"><div><div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"> Dear Sir/Madam:</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">I have a text file with 13376 col. I used the following script to read:</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">------------------------------------------------------------------------------------------------------------<br clear="none"></div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">mn = numAsciiRow("NIWA_Haast_20140624.dat")<br clear="none">ml = numAsciiCol("NIWA_Haast_20140624.dat")<br clear="none">data = asciiread("NIWA_Haast_20140624.dat", (/mn,ml/),"float")<br clear="none">print(mn)<br clear="none">print(ml)<br clear="none">print(data(mn-1,10))</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">------------------------------------------------------------------------------------------------------------<br clear="none"></div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br clear="none"></div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">After ran the script, I got:</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br clear="none"></div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">----------------------------------------------------------------------------<br clear="none"></div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">Variable: mn<br clear="none">Type: integer<br clear="none">Total Size: 4 bytes<br clear="none"> 1 values<br clear="none">Number of Dimensions: 1<br clear="none">Dimensions and sizes: [1]<br clear="none">Coordinates:<br clear="none">(0) 13376</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br clear="none">Variable: ml<br clear="none">Type: integer<br clear="none">Total Size: 4 bytes<br clear="none"> 1 values<br clear="none">Number of Dimensions: 1<br clear="none">Dimensions and sizes: [1]<br clear="none">Coordinates:<br clear="none">(0) 21</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br clear="none">Variable: data (subsection)<br clear="none">Type: float<br clear="none">Total Size: 4 bytes<br clear="none"> 1 values<br clear="none">Number of Dimensions: 1<br clear="none">Dimensions and sizes: [1]<br clear="none">Coordinates:<br clear="none">Number Of Attributes: 1<br clear="none"> _FillValue : 9.96921e+36<br clear="none">(0) 9.96921e+36<br clear="none">------------------------------------------------------------------------------------------------------</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">The data(mn-1,10) is not a missing value. Actually, more than 100 col numbers from the end of the file were not read correctly. What is the problem? I used nclv.6.0.0</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">What is the maximum value of the column of a text file allowed in asciiread?</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br clear="none"></div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">Thank you very much!</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br clear="none"></div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">Regards</div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">Ed<br clear="none"></div></div></div></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div> </div></div></div><br clear="none">_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="nofollow" shape="rect">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"><br clear="all"><br clear="none">-- <br clear="none"><div class="yiv3620729605gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br clear="none"></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br clear="none"></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank" rel="nofollow" shape="rect">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br clear="none"></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank" rel="nofollow" shape="rect"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div><br><br></div> </div> </div> </div></div></body></html>