Re: Why i can not use the color table of "BlueYellowRed"?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jun 11 2012 - 12:36:02 MDT

Hi Lin,

It looks like you are using your own personal "ncl", but NCARG_ROOT is pointing to some system NCL installation.

You have NCARG_ROOT set to /usr/local/ncarg, but you are using an "ncl" executable that's installed in your own personal ~/bin directory.

My guess is that the NCL software that's installed in /usr/local/ncarg is version 5.2.1 or earlier, and since this is what NCARG_ROOT is pointing to, it can't find the BlueYellowRed colormap.

If you installed NCL V6.0.0 to your own directory, then you need to set the NCARG_ROOT environment variable to "~/" instead of "/usr/local/ncarg".

If you only have the "ncl" 6.0.0 executable, and not the full software in your home directory, then you can download the BlueYellowRed colormap yourself. See

http://www.ncl.ucar.edu/prev_releases.shtml#NewColorTables6.0.0

for more information.

--Mary

On Jun 11, 2012, at 11:51 AM, xiang lin wrote:

> Hi, Mary
>
>
> Thank you for the reply!
>
> 1. which ncl -> ~/bin/ncl
> 2. ncl -V -> 6.0.0
> 3. printenv NCARG_ROOT - > /usr/local/ncarg
>
> 4. ls $NCARG_ROOT/lib/ncarg/colormaps
> 3gauss.ncmap BlGrYeOrReVi200.gp BrownBlue12.rgb helix1.ncmap prcp_2.rgb StepSeq25.rgb tbrVar1.gp WhBlReWh.gp
> 3saw.ncmap BlGrYeOrReVi200.rgb Cat12.rgb helix.ncmap prcp_3.rgb tbr_240-300.gp tbrVar1.rgb WhViBlGrYeOrRe.gp
> amwg_blueyellowred.rgb BlRe.rgb cosam12.rgb hlu_default.rgb radar_1.rgb tbr_240-300.rgb testcmap.rgb WhViBlGrYeOrRe.rgb
> amwg.rgb BlueDarkOrange18.rgb cosam.rgb hotres.ncmap radar.rgb tbrAvg1.rgb thelix.rgb WhViBlGrYeOrReWh.gp
> BkBlAqGrYeOrReViWh200.gp BlueDarkRed18.rgb default.rgb ncview_default.ncmap rainbow.gp tbrStd1.gp ViBlGrWhYeOrRe.gp WhViBlGrYeOrReWh.rgb
> BkBlAqGrYeOrReViWh200.rgb BlueGreen14.rgb detail.ncmap nrl_sirkes_nowhite.rgb rainbow+gray.gp tbrStd1.rgb ViBlGrWhYeOrRe.rgb wxpEnIR.rgb
> BlAqGrYeOrRe.gp BlueRedGray.rgb extrema.ncmap nrl_sirkes.rgb rainbow+white.gp tbr_stdev_0-30.gp wgne15.rgb
> BlAqGrYeOrRe.rgb BlueRed.rgb GreenMagenta16.rgb posneg_1.rgb rainbow+white+gray.gp tbr_stdev_0-30.rgb wh-bl-gr-ye-re.gp
> BlAqGrYeOrReVi200.gp BlWhRe.gp GreenYellow.rgb posneg_2.rgb so4_21.gp tbr_var_0-500.gp WhBlGrYeRe.gp
> BlAqGrYeOrReVi200.rgb BlWhRe.rgb gui_default.rgb prcp_1.rgb so4_23.gp tbr_var_0-500.rgb WhBlGrYeRe.rgb
>
> 5. ncargpath colormaps - > /usr/local/ncarg/lib/ncarg/colormaps
>
>
>
> Lin
>
>
>
>
>
> 2012/6/12 Mary Haley <haley@ucar.edu>
> Hi Lin,
>
> This color map was added in V6.0.0, so you should have access to it. You can verify this with:
>
> ls $NCARG_ROOT/lib/ncarg/colormaps/BlueYellowRed.rgb
>
> If this says something like "file not found", then you may have NCARG_ROOT set incorrectly.
>
> If the above shows the file, then you might have your NCARG_COLORMAP environment variable set to point to another directory.
>
> To verify this, can you type the following and send me the output:
>
> which ncl
> ncl -V
> printenv NCARG_ROOT
> ls $NCARG_ROOT/lib/ncarg/colormaps
> ncargpath colormaps
>
> Thanks,
>
> --Mary
>
> On Jun 11, 2012, at 11:00 AM, xiang lin wrote:
>
> > Hi, all
> >
> > I met an error when I use the color table of "BlueYellowRed".
> >
> > fatal:CvtStringToCmap:Unable to convert string "BlueYellowRed" to ColorMap
> > warning:Error retrieving resource wkColorMap from args - Ignoring Arg
> >
> > I use Ncl 6.0.0 and the my workstation is
> > Linux t610 2.6.18-128.el5PAE #1 SMP Wed Dec 17 12:02:33 EST 2008 i686 i686 i386 GNU/Linux
> >
> > Anyone can show me an instruction? Thanks!
> >
> >
> > Regards
> >
> >
> > Lin
> >
> > _______________________________________________
> > 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 11 12:36:13 2012

This archive was generated by hypermail 2.1.8 : Tue Jun 12 2012 - 13:58:38 MDT