<div dir="ltr">Dave,<div><br></div><div>The problem is in "nlvl".  You are using floats in a place that requires integers only.  Change the function call on this line to "stringtointeger".  Also, "tointeger" or "toint" would be better.</div><div><br></div><div>nlvl = stringtofloat(str_get_cols(<wbr>data,13,15))</div><div><br></div><div>--Dave A.</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 12, 2018 at 12:51 PM, David Adams <span dir="ltr"><<a href="mailto:dave.k.adams@gmail.com" target="_blank">dave.k.adams@gmail.com</a>></span> wrote:<br><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 style="font-size:small">Hi all,</div><div style="font-size:small">I am using the skew T plot routine. I try to open each ascii file and plot it as a pdf. My file list contains the file name and number of lines (i.e., pressure levels) in the sounding files.</div><div style="font-size:small">filename       nlvl<br></div><div style="font-size:small">7_11_00.dat  129<br>7_11_12.dat  122<br>7_12_00.dat  148</div><div style="font-size:small"> etc...</div><div style="font-size:small">I read and open the files this way</div><div style="font-size:small">------------------------------<wbr>------------------------------<wbr>-------------<br></div><div style="font-size:small"> filename ="Sounding_file_list.txt"<br>   data = asciiread(filename,-1,"string"<wbr>)<br>    input  = str_get_cols(data,0,10)<br>    nlvl = stringtofloat(str_get_cols(<wbr>data,13,15))<br>    ncol =11<br> </div><div style="font-size:small">  do i = 0,47<br>      fsl_data = asciiread(input(i),(/nlvl(i),<wbr>ncol/), "float")<br></div><div style="font-size:small">etc...</div><div style="font-size:small">But I get the following error.<br></div><div style="font-size:small"><br></div><div style="font-size:small">fatal:asciiread: The input dimension sizes must be byte, short, integer or long  fatal:["Execute.c":8575]:<wbr>Execute: Error occurred at or near line 27 in file test.ncl</div><div style="font-size:small"><br></div><div style="font-size:small">Here is the print out of the variable filenames</div><div style="font-size:small">------------------------------<wbr>---------------<br></div><div style="font-size:small">Variable: input<br>Type: string<br>Total Size: 384 bytes<br>            48 values<br>Number of Dimensions: 1<br>Dimensions and sizes:    [48]<br>Coordinates: <br></div><div style="font-size:small"><br></div><div style="font-size:small">I am sure this is a simple error, but I am brain dead at this point.</div><div style="font-size:small">thanks in advance,</div><div style="font-size:small">Dave</div></div></blockquote></div></div></div></div>