<div dir="ltr">Hi Kevin,<div><br></div><div>I tried that:</div><div><br></div><div><div>dir="/home/gui/guilherme/novo_dolman_ppt_sst/cdo/"</div><div><br></div><div>system("paste " +dir+"tmp.djf.txt " +dir+"tmp.jja.txt " +dir+"tmp.anual.txt > " +dir+"slope.evap.prec.txt")</div><div>system("rm -f teste.*.txt")</div></div><div><br></div><div>But, nothing.</div><div><br></div><div>My files and script are in attachment. My files are created in the same directory of my script.</div><div><br></div><div>Thanks,</div><div><br></div><div>Guilherme.</div><br><div class="gmail_quote"><div dir="ltr">Em qui, 23 de jun de 2016 às 11:12, HAVENER, KEVIN F GS-12 USAF ACC 14 WS/WXED <<a href="mailto:kevin.havener@us.af.mil">kevin.havener@us.af.mil</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Are you specifying the path to the files? If you can do the paste command from within the directory where the files are, then it is likely the ncl working directory is different than the one where the files exist. Try to explicitly set the path:<br>
<br>
system("paste /path/to/tmp.djf.txt /path/to/tmp.jja.txt /path/to/tmp.anual.txt > /output/path/slope.evap.prec.txt")<br>
<br>
would work. If that is not it, you got me! I don't think the angle bracket is the problem though, all ncl is doing is passing that command to your shell, and you've proven that it works as written. It is quite possible your shell is being executed from a different directory than where the files are. Giving an absolute path should solve any file location issues, but a relative path might work as well.<br>
<br>
Kevin Havener<br>
<br>
-----Original Message-----<br>
From: Guilherme Martins [mailto:<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a>]<br>
Sent: Thursday, June 23, 2016 8:46 AM<br>
To: HAVENER, KEVIN F GS-12 USAF ACC 14 WS/WXED <<a href="mailto:kevin.havener@us.af.mil" target="_blank">kevin.havener@us.af.mil</a>>; NCL <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Symbol ">"<br>
<br>
Hi Kevin,<br>
<br>
The command line works outside of NCL and the file exist in my directory. The problem is inside of NCL in the system function. I don't know if I have to use some special symbol to use the ">".<br>
<br>
Thanks,<br>
<br>
Guilherme.<br>
<br>
Em qui, 23 de jun de 2016 às 09:39, HAVENER, KEVIN F GS-12 USAF ACC 14 WS/WXED <<a href="mailto:kevin.havener@us.af.mil" target="_blank">kevin.havener@us.af.mil</a> <mailto:<a href="mailto:kevin.havener@us.af.mil" target="_blank">kevin.havener@us.af.mil</a>> > escreveu:<br>
<br>
<br>
Does the command work from the command line (outside of ncl)? Do the files exist, and are they in the expected directories? The error message indicates the files do not exist or aren't in the directories ncl is looking in. I'd say this is not an ncl problem at all unless both answers are yes.<br>
<br>
Kevin Havener<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> <mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> <mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>> ] On Behalf Of Guilherme Martins<br>
Sent: Thursday, June 23, 2016 7:55 AM<br>
To: NCL <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> ><br>
Subject: [ncl-talk] Symbol ">"<br>
<br>
Hi users,<br>
<br>
I'm trying to use the symbol ">" to create a file together the system function in my NCL script, according to the line below:<br>
<br>
system("paste tmp.djf.txt tmp.jja.txt tmp.anual.txt > slope.evap.prec.txt")<br>
<br>
But I receive:<br>
<br>
paste: tmp.jja.txt: Arquivo ou diretório não encontrado<br>
paste: tmp.djf.txt: Arquivo ou diretório não encontrado<br>
paste: tmp.djf.txt: Arquivo ou diretório não encontrado<br>
<br>
I tried to concatenate with "+" symbol, but nothing.<br>
<br>
Any help is very appreciated.<br>
<br>
Thanks,<br>
<br>
Guilherme.<br>
--<br>
<br>
------------------------------------------------------------------------------------------<br>
Dr. Guilherme Martins<br>
Instituto Nacional de Pesquisas Espaciais (INPE)<br>
<br>
Centro de Previsão de Tempo e Estudos Climáticos (CPTEC) Grupo de Desenvolvimento em Assimilação de Dados (GDAD)<br>
<br>
Telefone (INPE/CP): +55 12 3186-8551 || Celular (TIM): +55 12 98152-8580<br>
E-mail: <a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a> <mailto:<a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a>> <mailto:<a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a> <mailto:<a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a>> > || <a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a> <mailto:<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a>> <mailto:<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a> <mailto:<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a>> ><br>
Skype: guilherme.martins.<br>
Homepage: <a href="https://sites.google.com/site/jgmsantos" rel="noreferrer" target="_blank">https://sites.google.com/site/jgmsantos</a><br>
Currículo Lattes: <a href="http://lattes.cnpq.br/5997657584785803" rel="noreferrer" target="_blank">http://lattes.cnpq.br/5997657584785803</a><br>
------------------------------------------------------------------------------------------<br>
<br>
<br>
--<br>
<br>
------------------------------------------------------------------------------------------<br>
Dr. Guilherme Martins<br>
Instituto Nacional de Pesquisas Espaciais (INPE)<br>
<br>
Centro de Previsão de Tempo e Estudos Climáticos (CPTEC) Grupo de Desenvolvimento em Assimilação de Dados (GDAD)<br>
<br>
Telefone (INPE/CP): +55 12 3186-8551 || Celular (TIM): +55 12 98152-8580<br>
E-mail: <a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a> <mailto:<a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a>> || <a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a> <mailto:<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a>><br>
Skype: guilherme.martins.<br>
Homepage: <a href="https://sites.google.com/site/jgmsantos" rel="noreferrer" target="_blank">https://sites.google.com/site/jgmsantos</a><br>
Currículo Lattes: <a href="http://lattes.cnpq.br/5997657584785803" rel="noreferrer" target="_blank">http://lattes.cnpq.br/5997657584785803</a><br>
------------------------------------------------------------------------------------------<br>
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div><font size="2"><div>------------------------------------------------------------------------------------------</div><div>Dr. Guilherme Martins</div><div>Instituto Nacional de Pesquisas Espaciais (INPE)<br></div></font></div><div><font size="2">Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)<br></font>Grupo de Desenvolvimento em Assimilação de Dados (GDAD)<font size="2"><br></font></div><div>Telefone (INPE/CP): +55 12 3186-8551 || Celular (TIM): +55 12 98152-8580<br>E-mail: <a href="mailto:guilherme.martins@inpe.br">guilherme.martins@inpe.br</a> || <a href="mailto:jgmsantos@gmail.com">jgmsantos@gmail.com</a><br>Skype: guilherme.martins.<br>Homepage: <a href="https://sites.google.com/site/jgmsantos">https://sites.google.com/site/jgmsantos</a><br>Currículo Lattes: <a href="http://lattes.cnpq.br/5997657584785803">http://lattes.cnpq.br/5997657584785803</a><span><br></span>------------------------------------------------------------------------------------------</div></div></div>