[Thread Prev][Thread Next][Index]

Re: [ferret_users] Customized palette



Tony,

| Thanks! But that (percentage method) only works when you use
| lev=(-a,a,b). If 0 is not in the middle of your value range, it does
| not work to show 0 as white.

So, you want the white near zero values whatever the entire contouring
range is.  I guess that's a tall order.

You could normalize your variable in such a way as to bring zero to the
center:

   let newvar = if var gt 0 then var/maxpos else var/maxneg
   fill/palette=whatever_centered newvar

when var's range is (-maxneg, maxpos).

But in this case, you would have to fix the colorbar manually.

Regards,
Ryo


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement