[ncl-talk] NCL error managing SCM output

Paolina Bongioannini Cerlini paolina.cerlini at unipg.it
Fri Apr 15 02:28:46 MDT 2016


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 
-- 


More information about the ncl-talk mailing list