Re: named colors

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jun 28 2010 - 17:18:56 MDT

Mike,

This may be due to an incorrect setting for the $NCARG_ROOT environment variable.
NCL needs to be able to find the file

On the UNIX command line, what does the following report:

  ncargpath database
  ls `ncargpath database`
  which ncl
  ncl -V

In the directory reported by "ncargpath database", you should see the following files:

Earth..1.areas Earth..4.lines NhlMapData
Earth..1.lines Earth..4.names PlotcharData
Earth..1.names EzmapAreaInfo.CO ezmap_area_ids
Earth..2.areas EzmapAreaInfo.PO ezmapdata
Earth..2.lines EzmapAreaInfo.PS ftfonts/
Earth..2.names EzmapAreaInfo.US pwritdata
Earth..3.areas EzmapOutlines.CO ranfdata
Earth..3.lines EzmapOutlines.PO rgb.dir
Earth..3.names EzmapOutlines.PS rgb.pag
Earth..4.areas EzmapOutlines.US rgb.txt

The "rgb.txt" one is where it gets the color lookup from.

--Mary

On Jun 28, 2010, at 3:20 PM, M Coniglio wrote:

> After an upgrade to v5.2 from v5.1, my scripts no longer recognize named
> colors. Hopefully there's an easy fix for this? For instance, I have a
> color map defined for radar reflectivity that I've been using without
> errors for years:
>
> cmap_refl = (/"white", \
> "black", \
> "white", \
> "white", \
> "cyan", \
> "dodgerBlue", \
> "blue3", \
> "lawnGreen", \
> "green2", \
> "green4", \
> "yellow", \
> "darkGoldenrod2", \
> "darkOrange2", \
> "red", \
> "red3", \
> "red4", \
> "deepPink2", \
> "darkOrchid3" /)
>
> This color map now gives me these errors:
>
> warning:CvtStringGenArrayToCmap:Unable to find rgb of "white", using white
> warning:CvtStringGenArrayToCmap:Unable to find rgb of "black", using white
> warning:CvtStringGenArrayToCmap:Unable to find rgb of "white", using white
> warning:CvtStringGenArrayToCmap:Unable to find rgb of "white", using white
> warning:CvtStringGenArrayToCmap:Unable to find rgb of "blue3", using white
> warning:CvtStringGenArrayToCmap:Unable to find rgb of "yellow", using white
>
> Any help is appreciated. Thanks.
>
> Mike
>
>
> --
> *************************
> Dr. Michael Coniglio
> National Severe Storms Laboratory
> 120 David L. Boren Blvd
> Norman, OK 73072
> (405) 325-6227
> Michael.Coniglio@noaa.gov
> *************************
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 28 17:19:03 2010

This archive was generated by hypermail 2.1.8 : Fri Jul 02 2010 - 07:45:13 MDT