[ncl-talk] NCL error managing SCM output

Paolina Bongioannini Cerlini paolina.cerlini at unipg.it
Wed Apr 20 01:18:58 MDT 2016


Hi,

thank you all for trying to solve this error. 
I have followed your suggestion and I have obtained the same (see below).
But the vary same error happens with all the ncl scripts, even when I obtain 
the output that was supposed  to look like (with other color maps..).

I think there is something deeper inside this machine, and I will inquire it
with a system manager not of my department, next week as I may see him. 
I will forward possibly the "solution".
Thank you again.

Paolina

[paolina at cloud test-run]$ pwd
/home/paolina/Documents/OPEN-IFS/scm-40r1v1.1.ref-oifs/test-run
[paolina at cloud test-run]$ env|grep NCAR*
NCARG_ROOT=/usr/local/ncl_ncarg-6.2.0
[paolina at cloud test-run]$ ncargpath colormaps
/usr/local/ncl_ncarg-6.2.0/lib/ncarg/colormaps
[paolina at cloud test-run]$ ncl plot1d.ncl
 Copyright (C) 1995-2014 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.2.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
(0)	Top pressure shown on plot will be 150 hPa
(0)	Bot pressure shown on plot will be 1000 hPa
(0)	 
(0)	Files where the script will look for 1D SCM output variables are:
(0)			progvar.nc  = True
(0)			diagvar.nc  = True
(0)			diagvar2.nc = True
(0)	 
(0)	*-------- Plotting from PROGVAR ---------*
(0)	*----------------------------------------*
fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to ColorMap
warning:Error retrieving resource wkColorMap from DB - Using default value
(0)	 
(0)	*-------- Plotting from DIAGVAR ---------*
(0)	*----------------------------------------*
fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to ColorMap
warning:Error retrieving resource wkColorMap from DB - Using default value
(0)	 
(0)	*-------- Plotting from DIAGVAR2 --------*
(0)	*----------------------------------------*
fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to ColorMap
warning:Error retrieving resource wkColorMap from DB - Using default value
(0)	 
(0)	*----------------------------------------*
(0)	Done plotting 1D variables found in files
[paolina at cloud test-run]$ 


----- Original Message -----
From: "Mary Haley" <haley at ucar.edu>
To: "paolina cerlini" <paolina.cerlini at unipg.it>
Cc: "ncl-talk" <ncl-talk at ucar.edu>, "Rick Brownrigg" <brownrig at ucar.edu>
Sent: Tuesday, 19 April, 2016 4:48:36 PM
Subject: Re: [ncl-talk] NCL error managing SCM output



If I may jump in here: I think the issue is with NCARG_LIB. Why is it set to: 


NCARG_LIB=/usr/local/ncl_ ncarg-6.2.0/lib:/usr/lib64 



I don't think you can even set NCARG_LIB to multiple paths, as this feature isn't supported by NCL. 


It looks to me like you have everything installed under /usr/local/ ncl_ncarg-6.2.0, so the only NCARG_XXXX environment variable you should have set is: 



NCARG_ROOT=/usr/local/ncl_ncarg-6.2.0 


Try unsetting all of these: 



NCARG_FONTCAPS=/usr/local/ncl_ncarg-6.2.0/lib/ncarg/fontcaps 
NCARG_GRAPHCAPS=/usr/local/ncl_ncarg-6.2.0/lib/ncarg/graphcaps 
NCARG_DATABASE=/usr/local/ncl_ncarg-6.2.0/lib/ncarg/database 

NCARG_LIB=/usr/local/ncl_ncarg-6.2.0/lib:/usr/lib64 
NCARG_NCARG=/usr/local/ncl_ncarg-6.2.0/lib/ncarg 


and then rerunning your script. 


Also, as another "debugging" effort to see where NCL is trying to find your colormaps, you can type the following on the UNIX command line: 


ncargpath colormaps 


Whatever is echoed here is the path that NCL will use to look for colormaps, and this is where the " BlueWhiteOrangeRed.rgb" file better be. 


--Mary 






On Fri, Apr 15, 2016 at 2:30 PM, Rick Brownrigg < brownrig at ucar.edu > wrote: 




Hi, 

Those environment variables seem reasonable, and I've verified that the "BlueWhiteOrangeRed" colormap was indeed part of the NCL 6.2.0 distribution. I don't know what else to suggest. If you are able to send me your data, I try to can test/diagnose things here. If its more than a few megabytes, you can FTP it to our site as per below, and drop me a quick note when its in place (let me know the exact filename). 

You can ftp larger datasets and files to: 

ftp ftp.cgd.ucar.edu anonymous
<use your email address for the password>
cd incoming
put ...
put ...
. 
. 
. 
quit 

Note that for security reasons, you cannot list the contents of this directory, and neither can we. We need to know the exact names of the files in order to retrieve them. 





On Fri, Apr 15, 2016 at 2:28 AM, Paolina Bongioannini Cerlini < paolina.cerlini at unipg.it > wrote: 


Hi Rick, 

I do see the file inside $NCARG_ROOT/lib/ncarg/colormaps , where all the colormaps are located. 
I have these environment variables set, see the following, do you see anything wrong? 
Thank you a lot! 

Paolina 
------------------------------------------------------------------------------------------------- 
[paolina at cloud test-run]$ env|grep NCAR* 

NCARG_FONTCAPS=/usr/local/ncl_ncarg-6.2.0/lib/ncarg/fontcaps 
NCARG_GRAPHCAPS=/usr/local/ncl_ncarg-6.2.0/lib/ncarg/graphcaps 
NCARG_ROOT=/usr/local/ncl_ncarg-6.2.0 
NCARG_DATABASE=/usr/local/ncl_ncarg-6.2.0/lib/ncarg/database 
NCARG_LIB=/usr/local/ncl_ncarg-6.2.0/lib:/usr/lib64 
NCARG_NCARG=/usr/local/ncl_ncarg-6.2.0/lib/ncarg 

[paolina at cloud test-run]$ ncl plot1d.ncl 


Copyright (C) 1995-2014 - All Rights Reserved 
University Corporation for Atmospheric Research 
NCAR Command Language Version 6.2.0 
The use of this software is governed by a License Agreement. 
See http://www.ncl.ucar.edu/ for more details. 
(0) Top pressure shown on plot will be 150 hPa 
(0) Bot pressure shown on plot will be 1000 hPa 
(0) 
(0) Files where the script will look for 1D SCM output variables are: 
(0) progvar.nc = True 
(0) diagvar.nc = True 
(0) diagvar2.nc = True 
(0) 
(0) *-------- Plotting from PROGVAR ---------* 
(0) *----------------------------------------* 
fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to ColorMap 
warning:Error retrieving resource wkColorMap from DB - Using default value 
(0) 
(0) *-------- Plotting from DIAGVAR ---------* 
(0) *----------------------------------------* 
fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to ColorMap 
warning:Error retrieving resource wkColorMap from DB - Using default value 
(0) 
(0) *-------- Plotting from DIAGVAR2 --------* 
(0) *----------------------------------------* 
fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to ColorMap 
warning:Error retrieving resource wkColorMap from DB - Using default value 
(0) 
(0) *----------------------------------------* 
(0) Done plotting 1D variables found in files 





----- Original Message ----- 
From: "Rick Brownrigg" < brownrig at ucar.edu > 
To: "paolina cerlini" < paolina.cerlini at unipg.it > 
Cc: "ncl-talk" < ncl-talk at ucar.edu > 
Sent: Wednesday, 13 April, 2016 7:32:46 PM 
Subject: Re: [ncl-talk] NCL error managing SCM output 




Hi Paolina, 

I don't see in your script where or what is calling for that colormap? In any case, it sounds like its not being found. Do you have an environment variable NCARG_ROOT set? If so, the colormap should reside in $NCARG_ROOT/lib/ncarg/colormaps -- do you see a file named "BlueWhiteOrangeRed.rgb" there? 

Rick 




On Wed, Apr 13, 2016 at 9:41 AM, Paolina Bongioannini Cerlini < paolina.cerlini at unipg.it > wrote: 


Hello NCL people, 

I am trying to plot a SCM output from a ncl script 
but-as other times- I get this error about 
ColorMap resource. 
Since in this case I have a white background it turns out 
that no box is drawn around the graphs. 
I attach the script. 
What is wrong in this case? 
Thank you. 

Paolina 
-------------------------------------------------------------------- 
ncl plot1d.ncl 
Copyright (C) 1995-2014 - All Rights Reserved 
University Corporation for Atmospheric Research 
NCAR Command Language Version 6.2.0 
The use of this software is governed by a License Agreement. 
See http://www.ncl.ucar.edu/ for more details. 
(0) Top pressure shown on plot will be 150 hPa 
(0) Bot pressure shown on plot will be 1000 hPa 
(0) 
(0) Files where the script will look for 1D SCM output variables are: 
(0) progvar.nc = True 
(0) diagvar.nc = True 
(0) diagvar2.nc = True 
(0) 
(0) *-------- Plotting from PROGVAR ---------* 
(0) *----------------------------------------* 
fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to ColorMap 
warning:Error retrieving resource wkColorMap from DB - Using default value 
(0) 
(0) *-------- Plotting from DIAGVAR ---------* 
(0) *----------------------------------------* 
fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to ColorMap 
warning:Error retrieving resource wkColorMap from DB - Using default value 
(0) 
(0) *-------- Plotting from DIAGVAR2 --------* 
(0) *----------------------------------------* 
fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to ColorMap 
warning:Error retrieving resource wkColorMap from DB - Using default value 
(0) 
(0) *----------------------------------------* 
(0) Done plotting 1D variables found in files 

-- 
Paolina Bongioannini Cerlini Ph.D. 
University of Perugia 
CIRIAF -room 8 
06125 - Perugia 

Tel. +39 075 5853576 


e-mail: paolina.cerlini at unipg.it 
skype: pcerlini 
-- 

_______________________________________________ 
ncl-talk mailing list 
ncl-talk at ucar.edu 
List instructions, subscriber options, unsubscribe: 
http://mailman.ucar.edu/mailman/listinfo/ncl-talk 

-- 
Paolina Bongioannini Cerlini Ph.D. 
University of Perugia 
CIRIAF -room 8 
06125 - Perugia 

Tel. +39 075 5853576 
e-mail: paolina.cerlini at unipg.it 
skype: pcerlini 
-- 


_______________________________________________ 
ncl-talk mailing list 
ncl-talk at ucar.edu 
List instructions, subscriber options, unsubscribe: 
http://mailman.ucar.edu/mailman/listinfo/ncl-talk 

-- 
Paolina Bongioannini Cerlini Ph.D. 
University of Perugia 
CIRIAF -room 8 
06125 - Perugia 

Tel.+39 075 5853576 
e-mail: paolina.cerlini at unipg.it 
skype: pcerlini 
-- 


More information about the ncl-talk mailing list