[ncl-install] load command not found

Kevin Hallock hallock at ucar.edu
Thu Mar 23 09:29:54 MDT 2017


Hi Dawit,

“load” is an NCL command, so if you try to run it in bash it will return an error (as you experienced below). When you run NCL, your command line prompt should change from
Dagemawes-MacBook-Pro:~ dawitabebe$ 
to
ncl 0> 

Once you see the NCL prompt, then you should be able to run the “load” command:
ncl 0> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"

Also, while it used to be necessary to explicitly load gsn_code.ncl, gsn_csm.ncl, and contributed.ncl, these files are automatically loaded in NCL version 6.4.0.

I hope this helps,
Kevin

> On Mar 23, 2017, at 9:01 AM, Dawit Abebe <dawit.kan at gmail.com> wrote:
> 
> Dear Mary,
> 
> I am having a problem running the “load” command. Through step-by-step use of “cd" and “ls” commands I confirmed that the files that wanted to load (i.e. gun_code.ncl,  gsn_csm.ncl, and contributed.ncl) are there is in the “csm”directory. According to the command “which nil” , I am operating from myncl/bin/ncl (see below). I think, I should change this part of the path to myncl/lib instead of myncl/bin to reach to the files I wanted to load. Is my logic correct? If that should be done, how should I change this path? If my assumption is wrong all together, kindly get me to right direction.
> 
> Thank you so much
> 
> Dawit
> 
> Dagemawes-MacBook-Pro:~ dawitabebe$ source activate myncl
> (myncl) Dagemawes-MacBook-Pro:~ dawitabebe$ load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> -bash: load: command not found
> (myncl) Dagemawes-MacBook-Pro:~ dawitabebe$ conda info --envs
> # conda environments:
> #
> myncl                 *  /Users/dawitabebe/miniconda3/envs/myncl
> root                     /Users/dawitabebe/miniconda3
> 
> (myncl) Dagemawes-MacBook-Pro:~ dawitabebe$ which ncl
> /Users/dawitabebe/miniconda3/envs/myncl/bin/ncl
> (myncl) Dagemawes-MacBook-Pro:~ dawitabebe$ 
> ……………………………………………………………………..
> 
>> On Mar 22, 2017, at 5:13 PM, Mary Haley <haley at ucar.edu <mailto:haley at ucar.edu>> wrote:
>> 
>> Ipsita,
>> 
>> You need both triangle.c and triangle.h.
>> 
>> But, you really should only have to build NCL from source code as a last result.
>> 
>> Since you are on a 64-bit Ubuntu system, you can use "conda" to install NCL, which is as easy as:
>>   conda create -n ncl_stable -c conda-forge ncl=6.4.0
>>   source activate ncl_stable
>> Please see our "conda" page for information on how to install miniconda, which gives you conda:
>> http://www.ncl.ucar.edu/Download/conda.shtml <http://www.ncl.ucar.edu/Download/conda.shtml>
>> --Mary
>> 
>> 
>> On Wed, Mar 22, 2017 at 1:56 AM, Ipsita Putatunda <ipsita.putatunda at gmail.com <mailto:ipsita.putatunda at gmail.com>> wrote:
>> Dear all,
>>  I need to built triangle in  my NCL version.
>> Right now am using x86_64, Ubuntu 15.10 with gcc version 5.2.1 20151010 and NCL version 6.3.0
>> 
>> Which source code shall I use here to copy triangle.c or triangle.h ?
>> Could you please let me know stepwise to build triangle in my NCL version.
>> 
>> Thanks in advance,
>> Ipsita
>> 
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install <http://mailman.ucar.edu/mailman/listinfo/ncl-install>
>> 
>> 
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install <http://mailman.ucar.edu/mailman/listinfo/ncl-install>
> 
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170323/2fe7a7e2/attachment.html 


More information about the ncl-install mailing list