<div class="gmail_quote">
<div>Hi, dear all,</div>
<div> </div>
<div>Can collect, gr2stn(), and coll2gr() be applied to defined variables? I use the opengrads v2.0.a7.oga.3 little-endian version in the MS Windows system.</div>
<div> </div>
<div>'define uu=ugrd' ;* the ugrd is variable defined in ctl file</div>
<div>'collect 1 free'</div>
<div>i=0</div>
<div>while(i<=10)</div>
<div>......</div>
<div>i=i+1</div>
<div>'collect 1 gr2stn(uu,'xlon','xlat')'</div>
<div>......</div>
<div>endwhile</div>
<div>'set x 1 'i</div>
<div>'d coll2gr(1,-u)'</div>
<div> </div>
<div>I got error message:</div>
<div>************************</div>
<div>Error from COLL2GR: Invalid dimension environment<br>Operation Error: Error from coll2gr function<br>DISPLAY error: Invalid expression<br> Expression = coll2gr(1,-u)</div>
<div>************************</div>
<div> </div>
<div>But, the following is OK:</div>
<div> </div>
<div>.....</div>
<div>'collect 1 gr2stn(ugrd,'xlon','xlat')'</div>
<div>.....</div>
<div>'d coll2gr(1,-u)'</div>
<div> </div>
<div> </div>
<div>Thank you.</div>
<div> </div><font color="#888888">
<div>MY</div></font></div><br>