<div dir="ltr"><div>Notwithstanding Rick's question, try using a simple large string array, instead of the large list constructor for this particular application.  Then avoid the extra and mostly redundant formatting stage in write_table.  Complete your own formatting in smaller pieces.  Something like:</div><div><br></div><div>do ...</div><div>   latString(...) = sprintf ("%6.3f",latPoints(...))</div><div><div>   lonString(...) = sprintf ("%6.3f",lonPoints(...))</div><div>end do</div><div><br></div><div>alist = latString + lonString + hsString + ... \</div><div>   ... + ptpwindString</div>asciiwrite ("outf_data.txt", alist)</div><div><br></div><div>You could also merge these last two statements, thereby reducing memory demand somewhat.</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 24, 2021 at 10:18 AM Rick Brownrigg via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I can't find anywhere in the source code where such an error message would arise. Is that a literal copy/paste of the error?</div><div><br></div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 24, 2021 at 10:03 AM Micah Sklut via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi NCL Talk, <div><br></div><div>I'm using write_table to output a large amount of data to file. </div><div>Here's the output statement: </div><div><br></div>alist = [/latPoints,lonPoints,hsString,perString,dirString,winduString,windvString,phs1String,phs2String,phs3String,phs4String,phs5String,phswindString,pdir1String,pdir2String,pdir3String,pdir4String,pdir5String,pdirwindString,ptp1String,ptp2String,ptp3String,ptp4String,ptp5String,ptpwindString/]<br><br>write_table("outf_data.txt","w",alist,"%6.3f,%6.3f,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s");<div><br></div><div>I'm getting the following message:</div><div><br></div>*** buffer overflow detected ***: ncl terminated<br>Aborted<div><br></div><div>When I reduce the string lengths of the variables, then I don't get this error, so I"m guessing I"m running into an NCL string length maximum? </div><div><br></div><div>Any suggestions on how to get around this problem? </div><div><br></div><div>Thank you. <br><div><br><div>-- <br><div dir="ltr">Micah Sklut</div></div></div></div></div></blockquote></div></blockquote></div></div>