Hi MMME:<br><br>As far as I know, it is possible to open several files (at least .nc files) using Templates. Please see <a href="http://www.iges.org/grads/gadoc/gadocindex.html">http://www.iges.org/grads/gadoc/gadocindex.html</a> for details. <br>
In my case I used two files to do that, one control file and a txt file with some command lines. I have attached both files, perhaps it serves you as example.<br>Cheers,<br><br>Hernán Sala<br>DCT-IAA<br><br><br><div class="gmail_quote">
2010/2/23 MMME <span dir="ltr"><<a href="mailto:mhsanabary9@yahoo.com">mhsanabary9@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi<br>
I have group of files and I want to read all of them by one script. Is it possible?<br>
<br>
I have:<br>
<br>
i=1<br>
while (i < 9) 'sdfopen BlueNILEB-6i-ECMWF.nc'<br>
'set prnopts %10.8<br>
'set lat<br>
'set lon<br>
'set t 1<br>
<br>
<br>
'd<br>
ascii = result<br>
asciifile = 'precipitation.asc'<br>
numbers = sublin(result,2)<br>
if (numbers != '')<br>
rc = write (asciifile,numbers)<br>
else<br>
say 'no ascii data to write'<br>
return<br>
endif<br>
* write out remaining ascii data<br>
i=3<br>
while(1)<br>
numbers = sublin(result,i)<br>
if (numbers != '')<br>
rc = write (asciifile,numbers,append)<br>
else<br>
break<br>
endif<br>
i = i+1<br>
endwhile<br>
rc = close(asciifile)<br>
say 'return code from close is:'rc'set gxout print'e1 1'7.5'35'1461'(cp+lsp+sf)*1000/60/60/6''set gxout contour'<br>
'd cp'i = i + 1<br>
endwhile<br>
<br>
<br>
<br>
</blockquote></div><br>