[ncl-talk] dividing color map to intervals
Dennis Shea
shea at ucar.edu
Fri Nov 22 08:34:44 MST 2019
Please read NCL documentation.
NCL automatically spans all color maps.
res at cnLevelSelectionMode = "ManualLevels" ; set manual contour levels
res at cnMinLevelValF = ; set min contour level
res at cnMaxLevelValF = ; set max contour level
res at cnLevelSpacingF = ; set contour spacing
On Thu, Nov 21, 2019 at 8:11 PM M P via ncl-talk <ncl-talk at ucar.edu> wrote:
> Hello,
> I define a colormap as
>
> gsn_define_colormap(wks,"WhiteBlueGreenYellowRed")
>
> I want to divide it into e.g. 20 equal intervals so I can plot data in
> different ranges
> with different colors.
>
> Can you help how to e.g. create an array colors[i] that would span the
> whole range? Or there is another way to do it?
>
> Thanks,
> Mark
> _______________________________________________
> ncl-talk mailing list
> 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/20191122/492e4252/attachment.html>
More information about the ncl-talk
mailing list