[ncl-talk] Help needed to run NCL script
Mary Haley
haley at ucar.edu
Thu Jul 5 09:14:38 MDT 2018
Bellamy,
The issue looks to be that NCARG_ROOT is not set correctly. It should be
set to the *root* directory of wherever NCL is installed.
The error message is complaining about not finding things in:
/gpfs1/software/ncarg/lib/ncarg/lib/ncarg/sysresfile
Note that "ncarg/lib" appears twice in this path. I think that you have
NCARG_ROOT set to
/gpfs1/software/ncarg/lib
when it should be set to:
/gpfs1/software/ncarg
You may also need to be sure you have no other NCARG_*XXXX *environment
variables set. To check this, type the following from the UNIX command line:
env | grep NCARG
If you see anything else like NCARG_LIB or NCARG_NCARG being set, then make
sure these are NOT set. These are usually set in one of your .xxxx files in
your home directory, which you can verify with:
grep NCARG ~/.*
IMPORTANT: You are using a version of NCL that is 9 years old. You are
likely to run into many issues with this version. I suggest upgrading to
NCL V6.4.0 (or wait for NCL V6.5.0 which should be this month).
The download and install instructions are here, I recommend using the
"conda" instructions:
http://www.ncl.ucar.edu/Download/
Good luck,
--Mary
On Wed, Jul 4, 2018 at 4:24 AM, Bellamy Baron <bellamybaron87 at gmail.com>
wrote:
> Hi everyone,
>
> Your help would be really appreciated here.
>
> I want to plot wps analysis file using wrf_wps_ter.ncl and I've modified
> as follows:
> load "/gpfs1/software/ncarg/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> begin
>
> a = addfile("./geo_em.d01.nc","r")
> type = "x11"
> ; type = "pdf"
> ; type = "ps"
> ; type = "ncgm"
> wks = gsn_open_wks(type,"plt_geo_2")
> ter = a->HGT_M(0,:,:)
> res = True
> res at cnFillOn = True
> res at gsnSpreadColors = True
> plot = gsn_contour(wks,ter,res)
> end
> here I'm using ncl-5.1.1 on AIX-5.3
>
> I have run the command as:
> ncl wrf_wps_ter.ncl
>
> and I got the massage...
>
> Copyright (C) 1995-2009 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 5.1.1
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> warning:Unable to load System Resource File /gpfs1/software/ncarg/lib/
> ncarg/lib/ncarg/sysresfile
> warning:WorkstationClassInitialize:Unable to access rgb color database -
> named colors unsupported:[errno=2]
> warning:["Palette.c":1533]:NhlLoadColormapFiles: Invalid colormap
> directory: /gpfs1/software/ncarg/lib/ncarg/lib/ncarg/colormaps
> Illegal instruction (core dumped)
>
>
> Thanks in advance for your assistance.
>
> Regards
>
>
> ------------------------------------------------------------
> --------------------------------------------
> Bellamy
> Specialist - iWYZE
> Car Insurance <https://www.iwyze.co.za/products/car-insurance>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180705/2bbe6f20/attachment.html>
More information about the ncl-talk
mailing list