[ncl-talk] run ncl script in bash file

Guiting Song guitingsong at gmail.com
Tue Apr 21 01:40:40 MDT 2015


Hi, Jatin Kala,

Thank you so much for your questions. I will answer your question one by
one.

(1) There is nothing in ncl.log, no error

(2) "It does not work" means it did not generate the result file as I run
in command line.
(3) which ncl will give me
   /home/arnold/software/ncl_ncarg/bin/ncl
(4) on the command line, nothing return when I type $echo $SHELL
(5) I define NCARG_ROOT in .profile because I use Ubuntu linux. I extract
ncl_ncarg-6.1.2.Linux_Debian6.0_x86_64_nodap_gcc445.tar directly to install
ncl.

Hopeful,you could got some hinds to help me.

Tony

On Tue, Apr 21, 2015 at 3:20 PM, Jatin Kala <jatin.kala.jk at gmail.com> wrote:

>  Hi,
> what error message appears in ncl.log??
> "It does not work" is not really useful to help diagnose the problem.
> As per a previous comment by someone else, add the "which ncl" command in
> your bash script. I suspect it will return nothing, which would be the
> problem.
>
> Also, on the command line, what does this return:
> $echo $SHELL
>
> How did you install ncl on your machine, where did you define NCARG_ROOT?,
> in .bashrc or .cshrc or something else?
>
>
>
>
> On 21/04/2015 4:55 pm, Guiting Song wrote:
>
>   Hi,
>
>  I also tried
>
> #!/bin/bash
> ncl /home/arnold/ROMS_AGRIF_Vietnam/Roms_tools/Run/FORECAST/roms_5_ratio.
> ncl > ncl.log
>
>  But it does not work, any help will be welcomed.
>  Thank you,
>
>  Tony
>
>
>
> On Mon, Apr 20, 2015 at 3:32 PM, Jatin Kala <jatin.kala.jk at gmail.com>
> wrote:
>
>>  Hi,
>> If you've installed ncl correctly, which it seems that you have since you
>> ran on the command line, this should just work:
>> #!/bin/bash
>> ncl
>> /home/arnold/ROMS_AGRIF_Vietnam/Roms_tools/Run/FORECAST/roms_5_ratio.ncl >
>> ncl.log
>>
>>
>>
>>
>>
>>
>>
>> On 20/04/15 12:29 PM, Guiting Song wrote:
>>
>>   Hi, All,
>>
>> I can run my ncl script-roms_5_ratio.ncl in linux command line. But can
>> not make it in bash file. My bash file is like below
>>
>> _______________________________________________________________
>> #!/bin/bash
>>
>> export NCL=/home/arnold/software/ncl_ncarg/bin/ncl
>> $NCL
>> /home/arnold/ROMS_AGRIF_Vietnam/Roms_tools/Run/FORECAST/roms_5_ratio.ncl >
>> ncl.log
>>
>> _____________________________________________________________
>>
>>  however it does not give me the running result, does anybody have
>> experiences about how to run ncl scripts in bash file, please share with me
>> and I will be very appreciated.
>>
>> Best regards,
>>  Tony
>>
>>
>>
>>
>>
>>
>>  _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150421/56df67a7/attachment.html 


More information about the ncl-talk mailing list