Try something like<br><br>For example, you have file this way:<br><br><a href="http://u.1990.nc">u.1990.nc</a><br><a href="http://u.1991.nc">u.1991.nc</a><br><a href="http://u.1992.nc">u.1992.nc</a><br><br>Just do it:<br><br>
'sdfopen <a href="http://u.1990.nc">u.1990.nc</a> u.%<a href="http://y4.nc">y4.nc</a> 100'<br>'d variable'<br><br><a href="http://u.1990.nc">u.1990.nc</a> = your fist nc file<br>u.%<a href="http://y4.nc">y4.nc</a> = your template<br>
100 = numbers times you want display<br><br>Guilherme.<br><br><br><br><div class="gmail_quote">2010/2/24 hersala <span dir="ltr"><<a href="mailto:hersala@gmail.com">hersala@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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" target="_blank">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" target="_blank">mhsanabary9@yahoo.com</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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></div></div><br>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------------------------------------------------<br>José Guilherme Martins dos Santos<br>Grupo de Modelagem da Atmosfera e Interfaces - GMAI<br>Divisão de Modelagem e Desenvolvimento - DMD<br>
Centro de Previsão de Tempo e Estudos Climáticos - INPE<br>Rodovia Presidente Dutra, km 39 - CEP 12630-000<br>Cachoeira Paulista, SP, Brasil<br>Telefone(CP): +55 12 3186 8502<br>Celular(SJC): +55 12 91678770 / +55 12 81528580<br>
E-mail: <a href="mailto:guilherme.martins@cptec.inpe.br">guilherme.martins@cptec.inpe.br</a><br>E-mail alternativo: <a href="mailto:jgmsantos@gmail.com">jgmsantos@gmail.com</a><br>Homepage: <a href="http://guilhermemartins.hd1.com.br/">http://guilhermemartins.hd1.com.br/</a><br>
-----------------------------------------------------------<br>