[ncl-talk] problem with creating an rgb colormap

Cynthia Hays chays1 at unl.edu
Thu Jul 20 10:46:49 MDT 2017


I think the merged color map is correct.  The color bar isn’t though, besides the ocean not being blue and the urban not being red,  only have 9 of the unassigned but I get the correct 10 on labels.  The color bar also only goes to 31 while I have 33 labels.  I’ve put the two images on the ftp site put domain_d01.000001.png and put domain_d01.000002.png  I did try changing ncolors=33  in the landuse.rgb file to create those images.

=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-
Cynthia J. Hays
School of Natural Resources
University of Nebraska -Lincoln
722 Hardin Hall
3310 Holdrege Street
Lincoln, NE 68583-0987 U.S.A.

phone:                       402.472.6701
fax:                              402.472.2946
SNR web site:         http://snr.unl.edu<http://snr.unl.edu/>
=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-

From: Rick Brownrigg [mailto:brownrig at ucar.edu]
Sent: Thursday, July 20, 2017 11:30 AM
To: Cynthia Hays
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] problem with creating an rgb colormap

Hi Cynthia,
I'm getting a NetCDF4 error on that wrffile, so I can't see the plots.  I see in your script you draw the merged colormap -- does it look correct to you?
I'll look into why I'm seeing an error.
Rick

On Thu, Jul 20, 2017 at 9:57 AM, Cynthia Hays <chays1 at unl.edu<mailto:chays1 at unl.edu>> wrote:
Hi,

I’m trying to plot landuse  from a WRF file using my own defined colormap (landuse.rgb).    I’ve defined when water is the landuse that the color is blue  and urban should be red but I’m not getting those colors.  This is an old script that I had used successfully with a different landuse.rgb file for different WRF landuse categories  so I thought I could just edit the landuse.rgb file to reflect the new landuse categories and colors and it would work.  I’ve put the following files  landuse.rgb, domain_d01.ncl and wrfinput_d01 on the ftp site.   I am using ncl version 6.4.0 (I actually tried an older version that the script was first used in and I was getting the same color problems, so I don’t think it is a version problem).

Thanks

Cindy


=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-
Cynthia J. Hays
School of Natural Resources
University of Nebraska -Lincoln
722 Hardin Hall
3310 Holdrege Street
Lincoln, NE 68583-0987 U.S.A.

phone:                       402.472.6701<tel:(402)%20472-6701>
fax:                              402.472.2946<tel:(402)%20472-2946>
SNR web site:         http://snr.unl.edu<http://snr.unl.edu/>
=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170720/6667188e/attachment.html 


More information about the ncl-talk mailing list