[ncl-talk] buffer overflow detected

Micah Sklut micahs2005 at gmail.com
Fri Sep 24 10:02:57 MDT 2021


Hi NCL Talk,

I'm using write_table to output a large amount of data to file.
Here's the output statement:

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/]

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");

I'm getting the following message:

*** buffer overflow detected ***: ncl terminated
Aborted

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?

Any suggestions on how to get around this problem?

Thank you.

-- 
Micah Sklut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210924/cd222170/attachment.html>


More information about the ncl-talk mailing list