Hi Saji-
I didn't have any luck with that resource.
In the example, the colors are specified with numbers. Are those numbers
directly associated with the colors from the colormap (eg Where 0 is the
first color in that colormap, or does it refer to the color "0"?)
jimmyc
On Wed, Sep 21, 2011 at 3:16 PM, Saji Hameed <saji.nh@gmail.com> wrote:
> Hi James,
>
> You should use cnLineColors
> http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillColors
>
> See the example below that explicitly assigns color levels for each
> contour.
> http://www.ncl.ucar.edu/Applications/Scripts/conLev_3.ncl
>
> saji
>
> On Thu, Sep 22, 2011 at 4:35 AM, James Correia <jimmyc42@gmail.com> wrote:
> > Hi-
> > I am trying to use the existing colors in my colormap to color specific
> > contours in my contour plot. How do I assign the value for col(q) in the
> > example below? Or should I be using the gsnSpreadColorStart (and End) to
> use
> > the different colors individually for each specific contour?
> >
> > colors=(/"white","black","white","blue"/)
> > gsn_merge_colormaps(wks,colors,"radar")
> >
> > res@cnLineColor = col(q)
> >
> > --
> >
> > James Correia Jr.
> > OU CIMMS Research Associate
> > SPC HWT Liaison
> >
> > "The highest function of the teacher consists not so much in imparting
> > knowledge as in stimulating the pupil in its love and pursuit. To know
> how
> > to suggest is the art of teaching."
> >
> >
> ------------------------------------------------------------------------------------------
> > The views expressed in this email do not necessarily reflect those of
> NOAA,
> > the National Weather Service, or the University of Oklahoma.
> >
> ------------------------------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> >
>
-- James Correia Jr. OU CIMMS Research Associate SPC HWT Liaison "The highest function of the teacher consists not so much in imparting knowledge as in stimulating the pupil in its love and pursuit. To know how to suggest is the art of teaching." ------------------------------------------------------------------------------------------ The views expressed in this email do not necessarily reflect those of NOAA, the National Weather Service, or the University of Oklahoma. ------------------------------------------------------------------------------------------
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Sep 22 11:39:08 2011
This archive was generated by hypermail 2.1.8 : Thu Sep 22 2011 - 17:12:44 MDT