Associating specific colors with specific contour levels?

From: Gary Strand <strandwg_at_nyahnyahspammersnyahnyah>
Date: Thu, 31 Jul 2008 11:21:18 -0600

I'm attempting to replicate a Ferret code that I have in NCL, and one
of the things Ferret allows you to do is associate specific colors
with specific contour levels. One does this by giving the contour
level and color triplet in the colormap file used, e.g.:

RGB_Mapping By_Value
! Val R G B
-6000. 0. 0. 20. ! blue-black
-4000. 10. 18. 90.
-2000. 20. 35. 100. ! blue
-300. 40. 70. 100.
-100. 50. 100. 100.
  -50. 40. 80. 70.
   -0.1 90. 100. 100. ! light green-blue
    0. 0. 40. 00. ! dark green
  100. 0. 70. 30. ! light green
  300. 90. 100. 0. ! light yellow
1200. 60. 30. 0. ! rust
4000. 90. 90. 100. ! ice blue
5000. 100. 100. 100. ! white

Is there a way to do something like this in NCL?

Also, can I specify contour levels in "chunks" without having to
specify all of them explicitly? Ferret allows you to this via the
"LEV" command:

shade/lev=(-10250,-250,250)(-250,250,25)(250,8250,250) topo

That is, from -10250 to -250, use 250 increments, from -250 to 250,
increment by 25, and then from 250 to 8250, go back to 250.

Thanks!

Gary Strand
strandwg_at_ucar.edu

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 31 2008 - 11:21:18 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 31 2008 - 14:58:46 MDT