[ncl-install] load command not found

Mary Haley haley at ucar.edu
Thu Mar 23 09:27:47 MDT 2017


Dawit,


The problem is that you are trying to execute NCL commands directly from a
UNIX terminal window.

In order to execute NCL commands, you must use a UNIX editor to create a
file with NCL commands in it, and then you run "ncl" on this file to
execute the commands.

If you have never used a UNIX editor, then I suggest that you google for
something like "what are the best MacOS editors" or "what are the best UNIX
editors".

You should also look at NCL's "editor enhancements" page, which provides
some color-coding for NCL scripts that can be *really* useful for new users:

http://www.ncl.ucar.edu/Applications/editor.shtml

Several editors listed on this page (Atom, TextWrangler, Sublime Text) are
popular on MacOS systems.  The most widely known UNIX editors that are
pretty much available on any UNIX system are "vi" or "vim". It can useful
to know basic vi and vim commands in case you end up on a system where your
favorite UNIX editor is not available.

Once you find a UNIX editor that you want to learn, and you have it
installed on your system, then you can write your first "NCL script" using
this editor.

For example, open a UNIX editor and copy-and-paste these six lines into the
editor window:

print("Hello world")
i = 10
; This is a comment statement
j = i + 20
print("i = " + i)
print("j = " + j)

Save the file as "myscript.ncl" and exit the UNIX editor.

Now, on the UNIX command line, you can "execute" these commands in your
file by typing:

ncl myscript.ncl

You should see the following output:

 Copyright (C) 1995-2017 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.4.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
(0) Hello world
(0) i = 10
(0) j = 30

Since you are new to NCL, I highly recommend that you read the the NCL User
Guide. This is an extensive document, but even just reading the first few
chapters will be helpful:

http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/

Good luck,

--Mary




On Thu, 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> 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
>
> --Mary
>
>
>
> On Wed, Mar 22, 2017 at 1:56 AM, Ipsita Putatunda <
> 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
>>
>>
> _______________________________________________
> 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/57cb3c19/attachment-0001.html 


More information about the ncl-install mailing list