<div dir="ltr">Hi all,<div><br></div><div>Trying to read in sounding data that I have in a .txt file using the asciiread function (<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/asciiread.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/asciiread.shtml</a>):</div><div><br></div><div><div><font face="monospace, monospace">f = addfile("../2016020512_sounding.asc","r")</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> data_obs = asciiread(f,-1,"string") % Loads text file</font></div><div><font face="monospace, monospace"> p_obs = tofloat(str_get_field(data_obs,1," ")) % Reads in first column, which is pressure in hPa</font></div><div>etc...</div><div><br></div><div>But I get:</div><div><br></div><div><div><font face="monospace, monospace">warning:["FileSupport.c":3026]:NCL does not know anything about file suffix <txt>. </font></div><div><font face="monospace, monospace">But NCL will try its best to figure out the file format.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">fatal:An internal error has occurred. The file format requested does not appear to be supported, could not open (../2016020500_sounding_OKX.txt)</font></div><div><font face="monospace, monospace">fatal:Argument type mismatch on argument (0) of (asciiread) can not coerce</font></div></div><div><br></div><div><br></div><div>Even the examples on this page use .txt files, and I've tried .asc and .csv with the same error message, so what is the problem here?</div><div><br></div><div>Ryan</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font size="1">Ryan Connelly</font></div><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><font color="#000000"><font size="1">M.S. Student in Atmospheric Sciences, </font><span style="font-size:x-small">Stony Brook University</span><br></font></div><div dir="ltr" style="font-size:12.8px"><div><font color="#000000"><font size="1">B.S. in Meteorology with Minors in Mathematics and GIS, </font><span style="font-size:x-small">Valparaiso University</span></font></div></div><div><a href="mailto:rconne01@gmail.com" style="font-size:x-small" target="_blank">rconne01@gmail.com</a><br></div><div><font size="1"><a href="mailto:ryan.connelly@stonybrook.edu" target="_blank">ryan.connelly@stonybrook.edu</a></font></div></div></div></div></div></div></div></div></div></div>
</div></div>