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

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

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

Re: Plotgrids error

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


For those who are new, NCL is the utility to read GRIB files as stated in ... 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 from 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:

4. Export PATH:

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

And that should do.

Hope this helps,

Hydrology Researcher, University of Bristol
Posts: 35
Joined: Fri Jun 26, 2015 12:30 pm

Return to Installation

Who is online

Users browsing this forum: No registered users and 9 guests