<div dir="ltr"><div><div><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">Hello, I would like to 
create a new vector to vary in time depending on the variation of the 
temperature field that I open in several files:</span></span><br><br></div>I would<br><br>&#39;set z 1&#39;<br>nfiles=124<br>i=1<br>while (i&lt;=nfiles)<br>    &#39;temp(t=&#39;i&#39;)=tmp2m.&#39;i&#39;(t=1)-273.15&#39;<br>  i=i+1<br>endwhile<br><br><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">But I have difficulties because grads does not accept this way, nor this:</span></span><br><br>&#39;set z 1&#39;<br>nfiles=124<br>i=1<br>while (i&lt;=nfiles)<br>    &#39;temp.&#39;i&#39;(t=1)=tmp2m.&#39;i&#39;(t=1)-273.15&#39;<br>  i=i+1<br>endwhile<br><br></div>or this:<br><br>set z 1&#39;<br>nfiles=124<br>i=1<br>while (i&lt;=nfiles)<br>    &#39;temp.&#39;i&#39;=tmp2m.&#39;i&#39;(t=1)-273.15&#39;<br>  i=i+1<br>endwhile<div><br><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">You can help me to solve this question?<br><br></span></span></div><div><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">Best regards,<br></span></span></div><div><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">Isilda<br></span></span></div></div>