[ncl-talk] NCARG_COLORMAPS

Kyle Griffin ksgriffin2 at wisc.edu
Tue Jun 16 10:33:18 MDT 2015


Hi Laura,

You might not need them, but that is the error with your script. You are
looking for the default color table "BlueWhiteOrangeRed". The error you
included, specifically,

fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to
ColorMap

means that there is an attempt to find the "BlueWhiteOrangeRed" color table
and it is not being found in any of the NCARG_COLORMAPS locations (just the
one, in your case) and thus, from NCL's perspective, does not exist.

After a bit of poking around in your home directory, I think I see the
issue. In your .hluresfile, you specify BlueWhiteOrangeRed as the default
color map. Therefore, it is likely that at some point (such as opening a
new wks), NCL goes looking for the file and can't find it, throwing this
error and falling back to the system default. To fix, either add the
default directory back in to your path or change your default color map in
your .hluresfile.

Although one of the developers will need to vouch for this, there is no
practical reason to not have the other colormap directory in your path -
NCL does not actively read the colormaps until specified to do so.


Kyle

----------------------------------------
Kyle S. Griffin
Department of Atmospheric and Oceanic Sciences
University of Wisconsin - Madison
Room 1421
1225 W Dayton St, Madison, WI 53706
Email: ksgriffin2 at wisc.edu

On Tue, Jun 16, 2015 at 11:15 AM, Laura Fowler <laura at ucar.edu> wrote:

> Kyle:
> I always use my own color table (colorTable.rbg in my home directory),
> and I do not need to use the default color tables. Thanks for your
> suggestion anyway,
> Laura
>
>
> On Tue, Jun 16, 2015 at 10:00 AM, Kyle Griffin <ksgriffin2 at wisc.edu>
> wrote:
> > Laura,
> >
> > You need to be sure to include the default colormaps directory in your
> path
> > as well, or move all of NCL's colormaps into the one directory you have
> set.
> > Since you don't include that directory, most of the default colormaps
> will
> > not work.
> >
> > See:
> >
> http://ncl.ucar.edu/Document/Graphics/create_color_table.shtml#MoveColorTableFile
> >
> >
> > Kyle
> >
> > ----------------------------------------
> > Kyle S. Griffin
> > Department of Atmospheric and Oceanic Sciences
> > University of Wisconsin - Madison
> > Room 1421
> > 1225 W Dayton St, Madison, WI 53706
> > Email: ksgriffin2 at wisc.edu
> >
> > On Tue, Jun 16, 2015 at 10:57 AM, Laura Fowler <laura at ucar.edu> wrote:
> >>
> >> Hi:
> >> For the last week or so, I have trouble with setting NCARG_COLORMAPS
> >> on yellowstone to use my color table /glade/u/home/laura/colorTable. I
> >> have:
> >>
> >> [laura at yslogin5 QUASI-UNIFORM]$ echo $NCARG_ROOT
> >> /glade/apps/opt/ncl/6.3.0/intel/12.1.5
> >>
> >> and
> >>
> >> echo $NCARG_COLORMAPS
> >> /glade/u/home/laura
> >>
> >> I get the error:
> >> fatal:CvtStringToCmap:Unable to convert string "BlueWhiteOrangeRed" to
> >> ColorMap
> >> warning:Error retrieving resource wkColorMap from DB - Using default
> value
> >>
> >>
> >> This error seems to be recent as I have used that color table without
> >> any issue in the last few weeks. I am not sure what I am doing wrong
> >> and need a few hints to help figure this one out.
> >>
> >> Thanks,
> >> Laura
> >>
> >>
> >>
> >> --
> >>
> >>
> !-------------------------------------------------------------------------------------------------------------
> >> Laura D. Fowler
> >> Mesoscale and Microscale Meteorology Division (MMM)
> >> National Center for Atmospheric Research
> >> P.O. Box 3000, Boulder CO 80307-3000
> >>
> >> e-mail: laura at ucar.edu
> >> phone: 303-497-1628
> >>
> >>
> >>
> !-------------------------------------------------------------------------------------------------------------
> >> _______________________________________________
> >> ncl-talk mailing list
> >> ncl-talk at ucar.edu
> >> List instructions, subscriber options, unsubscribe:
> >> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> >
>
>
>
> --
>
> !-------------------------------------------------------------------------------------------------------------
> Laura D. Fowler
> Mesoscale and Microscale Meteorology Division (MMM)
> National Center for Atmospheric Research
> P.O. Box 3000, Boulder CO 80307-3000
>
> e-mail: laura at ucar.edu
> phone: 303-497-1628
>
>
> !-------------------------------------------------------------------------------------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150616/b0bbad2d/attachment.html 


More information about the ncl-talk mailing list