[ncl-install] ncl-install Digest, Vol 57, Issue 6

Chad Herman chad.scott.herman at gmail.com
Thu Jul 19 13:21:06 MDT 2012


On 07/19/2012 02:00 PM, ncl-install-request at ucar.edu wrote:
> Message: 2
> Date: Thu, 19 Jul 2012 15:12:32 +0800
> From: ???<daiguokun at gmail.com>
> Subject: [ncl-install] install NCL6.1.0beta on Ubuntu11.10
> To:ncl-install at ucar.edu
> Message-ID:
> 	<CAFFJXbc+0qjjBiBV-7bmBcjVze5DJC-4JB79rQxMqsmzZ5kiSA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear all,
> I am new to NCL and Linux.
> I am using Ubuntu11.10 on my laptop, and I want to install NCL6.1.0beta on
> it.
> Could you please tell me what steps should I follow?
> Thank you!
>
> Dai

Dai,

I'm using Ubuntu 12.04 so my installation instructions should work for 
you. You need to have an account at the Earth System Grid, 
http://www.earthsystemgrid.org/. If you don't have login credentials, 
click "New Account Registration" and proceed to get registered.

Steps:

0) After logging in, go to the main page and under the header "Analysis 
& Visualization Software", click on "NCL: NCAR Command Language" near 
the bottom of the page.

Near the bottom of the page, click "NCL Version 6.1.0-beta".

On the next page, click "NCL Version 6.1.0-beta precompiled binaries, 
OPeNDAP-enabled".

On the next page, click "Download Files".

On the next page, accept the "End User License Agreement". Click 
"Download Individual Files".

If you're laptop is running a 32-bit edition of Ubuntu, download "ncl_​ 
ncarg-​6.​1.​0-​beta.​Linux_​Debian_​i686_​gcc445.​tar.​gz". Otherwise, 
download "ncl_​ncarg-​6.​1.​0-​beta.​Linux_​Debian_​x86_​64_​gcc445.​ 
tar.​gz".

1)
In the terminal, cd to the directory containing the NCL gzipped tarball 
you downloaded. You'll need superuser privileges to install it. Enter 
the following commands

sudo su
mkdir /usr/local/ncl-6.1.0-beta

# If you downloaded the 32-but version, enter:
tar -xf ncl_​ncarg-​6.​1.​0-​beta.​Linux_​Debian_​i686_​gcc445.​tar.​gz 
-C /usr/local/ncl-6.1.0-beta

# If you downloaded the 64-bit version, enter:
tar -xf ncl_​ncarg-​6.​1.​0-​beta.​Linux_​Debian_​x86_​64_​gcc445.​tar.​ 
gz -C /usr/local/ncl-6.1.0-beta

exit

2)
Edit your .bashrc file:
 From the terminal (in the home directory), type "gedit .bashrc"
Add the following to the bottom of the file:

NCARG_ROOT=/usr/local/ncl-6.1.0-beta
NCL_BIN=/usr/local/ncl-6.1.0-beta/bin

export NCARG_ROOT
export PATH=$PATH:$NCL_BIN

3)
Get the .hluresfile file from 
http://www.ncl.ucar.edu/Document/Graphics/hlures.shtml by copy and 
pasting the file contents at the bottom of the page into Gedit. Save it 
in your home directory as .hluresfile.

4)
Close any terminals open and open one terminal and enter "ng4ex 
gsun01n". NCL should launch and a few plots should be generated. Click 
on the plots to cycle through them. The "Getting Started" page 
(http://www.ncl.ucar.edu/get_started.shtml) suggests running "xeyes" in 
the terminal to check that your DISPLAY environmental variable is 
correctly set. I never set this and I don't think it matters (at least 
for us Ubuntu users). On my system, typing "echo $DISPLAY" yields ":0". 
It should already be set.


I recommend you use Gedit for your script development. I contributed a 
syntax-highlighted file for Gedit to beautify your code, available at 
http://www.ncl.ucar.edu/Applications/editor.shtml#gedit.

You're all set to begin using NCL. Open up a terminal and type NCL. You 
should see:
  Copyright (C) 1995-2012 - All Rights Reserved
  University Corporation for Atmospheric Research
  NCAR Command Language Version 6.1.0-beta
  The use of this software is governed by a License Agreement.
  See http://www.ncl.ucar.edu/ for more details.
ncl 0>

If this doesn't work, let us know exactly what error messages appear in 
the terminal and we'll take it from there.

Happy NCLing.

Regards,
Chad


More information about the ncl-install mailing list