<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I have created a procedure to read an ASCII dataset.  The procedure will fill several 1D variable arrays and pass them back to the main NCL script.  My problem is that the call statement contains several variables that
 have not been previously defined.  The length of these arrays will be determined in the procedure and is dataset dependent.  Is there a way to predefine a variable array w/o knowing its size?  Attached is a snippet of code:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Dave Vollaro<br>
</p>
<p style="margin-top:0;margin-bottom:0">...</p>
<p style="margin-top:0;margin-bottom:0">main script...</p>
<p style="margin-top:0;margin-bottom:0"><br>
<span>data_read(file,lat,lon)</span></p>
<p style="margin-top:0;margin-bottom:0"><span></span>....</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div> procedure data_read(rfile:string,rlat[*]:float,rlon[*]:float)<br>
 begin<br>
<br>
  recon_data   := asciiread(rfile,-1,"string")<br>
  rlat = stringtofloat(str_get_cols(recon_data, 9,15))<br>
  rlon = stringtofloat(str_get_cols(recon_data, 23,29))</div>
  return
<p></p>
<p style="margin-top:0;margin-bottom:0"> end<br>
<span>fatal:Variable (lat) is undefined</span><br>
<br>
</p>
</div>
</body>
</html>