Plotgrids error

All things involving the setup (compiling, NetCDF, etc.) of the WRF Model itself.

Plotgrids error

Postby jean2017 » Wed Jul 05, 2017 6:02 pm

I am currently working the tutorial of WRF and the first step is the plotgrids part. Wen I run it the following error appears:

fatal:Could not open($NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl)
fatal:error at line 7 in file util/plotgrids.ncl

I have seen some possible solutions and edited the environment (in bashrc) to:
export NCARG_ROOT=/usr
export PATH=$NCARG_ROOT/bin:$PATH

I am using Ubuntu 16.04 and NCL 6.3, using the command "which ncl" shows :
/usr/bin/ncl

Does anyone has a solution to this problem?
Thanks for your help!
jean2017
 
Posts: 1
Joined: Fri Jun 30, 2017 5:16 pm

Re: Plotgrids error

Postby alainaketh » Wed Jan 24, 2018 8:59 pm

Hello,

For those who are new, NCL is the utility to read GRIB files as stated in
http://www2.mmm.ucar.edu/wrf/users/docs ... m#_Tools_3
Subsection "Display intermediate (ungrib) files). It is relatively easy to use and doesn't require much to be run.

I'd recommend to download and get the utility ready from scratch, that is:

1. Download the appropriate NCL file fromhttp://www.ncl.ucar.edu/ according to your OS version.

2. Place the file in any directory, for example, in ~/NCL and untar it:
1) gunzip file.tar.gz
2) tar -xf file.tar
This contains libraries lib, bin, and include.

3. Set NCAR_ROOT variable pointing at the directory where the three folders are:
export NCARG_ROOT=~/NCL

4. Export PATH:
export PATH=$NCARG_ROOT/bin:$PATH

5. Verify that ncl is correctly installed by issuing:
which ncl
Answer should be something like:
~/NCL/bin/ncl

And that should do.

Hope this helps,

Alaina.
alainaketh
 
Posts: 30
Joined: Fri Jun 26, 2015 12:30 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 4 guests