position of the value 0 in cnLevels to be represented by white colour.

From: gibies george <gibies_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 08 2011 - 05:47:03 MST

How can I get the position of the value 0 in cnLevels while setting the
resources for contour plot ?

My requirement is as follows.

I would like to get *white to represent the value near to zero* in
contour interval irrespective of the data range.
---------
----------
-----------

 gsn_define_colormap(wkspnl,"ViBlGrWhYeOrRe")
  white = 52
data_min = min(data)
data_max = max(data)

 if (data_min .gt. 0) resc@gsnSpreadColorStart = white
resc@cnLevelSelectionMode = "ManualLevels" resc@cnMinLevelValF = 0 end if if
(data_max .lt. 0) resc@gsnSpreadColorEnd = white resc@cnLevelSelectionMode =
"ManualLevels" resc@cnMaxLevelValF = 0 end if

if ((data_min .lt. 0) .and. (data_max .gt. 0))
*----------*
*???????*
*----------* end if
----------------------
-----------------------
----------------------

How can I implement this?

-- 
*Gibies George,   CSIR-RF,*
*Seasonal Scale Prediction Group,
Climate and Global Modelling Division,
Indian Institute of Tropical Meteorology,
Dr. Homi Bhabha Road,
NCL (P. O.), Pashan,
Pune 411008, India.*
*http://sites.google.com/site/gibiesge/*
Please Think about the environment. Save paper; Save Trees; and don't print
this e-mail unless it is necessary.

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 8 05:47:22 2011

This archive was generated by hypermail 2.1.8 : Thu Mar 10 2011 - 21:44:37 MST