[ncl-talk] Symbol ">"

Guilherme Martins jgmsantos at gmail.com
Thu Jun 23 11:44:26 MDT 2016


Hi Kevin,

I tried that:

dir="/home/gui/guilherme/novo_dolman_ppt_sst/cdo/"

system("paste " +dir+"tmp.djf.txt " +dir+"tmp.jja.txt " +dir+"tmp.anual.txt
> " +dir+"slope.evap.prec.txt")
system("rm -f teste.*.txt")

But, nothing.

My files and script are in attachment. My files are created in the same
directory of my script.

Thanks,

Guilherme.

Em qui, 23 de jun de 2016 às 11:12, HAVENER, KEVIN F GS-12 USAF ACC 14
WS/WXED <kevin.havener at us.af.mil> escreveu:

> 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:
>
> system("paste /path/to/tmp.djf.txt /path/to/tmp.jja.txt
> /path/to/tmp.anual.txt > /output/path/slope.evap.prec.txt")
>
> 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.
>
> Kevin Havener
>
> -----Original Message-----
> From: Guilherme Martins [mailto:jgmsantos at gmail.com]
> Sent: Thursday, June 23, 2016 8:46 AM
> To: HAVENER, KEVIN F GS-12 USAF ACC 14 WS/WXED <kevin.havener at us.af.mil>;
> NCL <ncl-talk at ucar.edu>
> Subject: Re: [ncl-talk] Symbol ">"
>
> Hi Kevin,
>
> 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 ">".
>
> Thanks,
>
> Guilherme.
>
> Em qui, 23 de jun de 2016 às 09:39, HAVENER, KEVIN F GS-12 USAF ACC 14
> WS/WXED <kevin.havener at us.af.mil <mailto:kevin.havener at us.af.mil> >
> escreveu:
>
>
>         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.
>
>         Kevin Havener
>
>         -----Original Message-----
>         From: ncl-talk-bounces at ucar.edu <mailto:ncl-talk-bounces at ucar.edu>
> [mailto:ncl-talk-bounces at ucar.edu <mailto:ncl-talk-bounces at ucar.edu> ] On
> Behalf Of Guilherme Martins
>         Sent: Thursday, June 23, 2016 7:55 AM
>         To: NCL <ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu> >
>         Subject: [ncl-talk] Symbol ">"
>
>         Hi users,
>
>         I'm trying to use the symbol ">" to create a file together the
> system function in my NCL script, according to the line below:
>
>         system("paste tmp.djf.txt tmp.jja.txt tmp.anual.txt >
> slope.evap.prec.txt")
>
>         But I receive:
>
>         paste: tmp.jja.txt: Arquivo ou diretório não encontrado
>         paste: tmp.djf.txt: Arquivo ou diretório não encontrado
>         paste: tmp.djf.txt: Arquivo ou diretório não encontrado
>
>         I tried to concatenate with "+" symbol, but nothing.
>
>         Any help is very appreciated.
>
>         Thanks,
>
>         Guilherme.
>         --
>
>
> ------------------------------------------------------------------------------------------
>         Dr. Guilherme Martins
>         Instituto Nacional de Pesquisas Espaciais (INPE)
>
>         Centro de Previsão de Tempo e Estudos Climáticos (CPTEC) Grupo de
> Desenvolvimento em Assimilação de Dados (GDAD)
>
>         Telefone (INPE/CP): +55 12 3186-8551 || Celular (TIM): +55 12
> 98152-8580
>         E-mail: guilherme.martins at inpe.br <mailto:
> guilherme.martins at inpe.br>  <mailto:guilherme.martins at inpe.br <mailto:
> guilherme.martins at inpe.br> >  || jgmsantos at gmail.com <mailto:
> jgmsantos at gmail.com>  <mailto:jgmsantos at gmail.com <mailto:
> jgmsantos at gmail.com> >
>         Skype: guilherme.martins.
>         Homepage: https://sites.google.com/site/jgmsantos
>         Currículo Lattes: http://lattes.cnpq.br/5997657584785803
>
> ------------------------------------------------------------------------------------------
>
>
> --
>
>
> ------------------------------------------------------------------------------------------
> Dr. Guilherme Martins
> Instituto Nacional de Pesquisas Espaciais (INPE)
>
> Centro de Previsão de Tempo e Estudos Climáticos (CPTEC) Grupo de
> Desenvolvimento em Assimilação de Dados (GDAD)
>
> Telefone (INPE/CP): +55 12 3186-8551 || Celular (TIM): +55 12 98152-8580
> E-mail: guilherme.martins at inpe.br <mailto:guilherme.martins at inpe.br>  ||
> jgmsantos at gmail.com <mailto:jgmsantos at gmail.com>
> Skype: guilherme.martins.
> Homepage: https://sites.google.com/site/jgmsantos
> Currículo Lattes: http://lattes.cnpq.br/5997657584785803
>
> ------------------------------------------------------------------------------------------
>
-- 
------------------------------------------------------------------------------------------
Dr. Guilherme Martins
Instituto Nacional de Pesquisas Espaciais (INPE)
Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)
Grupo de Desenvolvimento em Assimilação de Dados (GDAD)
Telefone (INPE/CP): +55 12 3186-8551 || Celular (TIM): +55 12 98152-8580
E-mail: guilherme.martins at inpe.br || jgmsantos at gmail.com
Skype: guilherme.martins.
Homepage: https://sites.google.com/site/jgmsantos
Currículo Lattes: http://lattes.cnpq.br/5997657584785803
------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160623/b63472f9/attachment.html 
-------------- next part --------------
5.92
4.67
2.67
2.15
4.15
4.55
2.26
2.13
2.72
2.75
2.78
2.73
4.10
3.70
2.17
7.85
6.73
4.99
3.19
2.61
0.85
4.03
-------------- next part --------------
2.55
-0.31
2.09
2.30
-3.02
0.21
2.22
1.30
2.26
2.46
3.09
2.92
-4.75
-0.78
1.34
3.23
2.76
4.77
1.21
0.15
-3.47
-3.18
-------------- next part --------------
0.34
1.21
1.55
0.87
0.63
1.76
1.16
1.36
0.80
0.69
0.70
2.08
0.86
4.16
1.31
0.89
0.17
0.53
0.60
0.86
-2.28
1.48
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 06.coef.angular.evap.prec.ncl
Type: text/x-ncl
Size: 2162 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160623/b63472f9/attachment.bin 


More information about the ncl-talk mailing list