[GRASS-user] Precipitation color table?

Dear Markus,

I just ran into this page
http://geography.uoregon.edu/datagraphics/color_scales.htm

that includes, among others, precipitation color tables. I don't know if that can be useful.

The page of this Lab also provides an interesting paper titled "End of the Rainbow" which elaborates on why one should not use continuously varying color schemes (and absolutely no rainbow color table). The way to go seems to be banded color schemes -- a color scheme with equally sized bands of constant color [1].

As I side note I was wondering how to draw such a color scheme (i.e. with equally sized bands of constant color) in GRASS.

Kind regards,

Luigi

[1] Borland D, Taylor II RM (2007) Rainbow color map (still) considered harmful. IEEE Computer Graphics and Applications, 27, 14-17.

From: "Markus Neteler" <neteler@osgeo.org>
Subject: [GRASS-user] Precipitation color table?
To: "GRASS user list" <grass-user@lists.osgeo.org>
Message-ID:
  <86782b610809231257v6adaef4fj4e0cfc783c6cc3ce@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

hi,

anyone having a nice precipitation color table (e.g., range from 0mm to 2000mm)?
I would like to nicely visualize data from the Global Precipitation Climatology
Project (GPCP, [1]):
ftp://rsd.gsfc.nasa.gov/pub/1dd/

Could be a nice addon for r.colors.

thanks,
Markus

[1] details ftp://rsd.gsfc.nasa.gov/pub/1dd/1dd.summary
  

Luigi Ponti wrote:

I just ran into this page
http://geography.uoregon.edu/datagraphics/color_scales.htm

that includes, among others, precipitation color tables. I
don't know if that can be useful.

The page of this Lab also provides an interesting paper titled "End of
the Rainbow" which elaborates on why one should not use continuously
varying color schemes (and absolutely no rainbow color table). The way
to go seems to be banded color schemes -- a color scheme with equally
sized bands of constant color [1].

...

[1] Borland D, Taylor II RM (2007) Rainbow color map (still) considered
harmful. IEEE Computer Graphics and Applications, 27, 14-17.

In matters of human perception the individual experience is not subject
to hard rules. Of course it is important to think about how the color-
blind will see things and how it will look printed in greyscale, etc.

An interesting subject to me, thanks for the link/look forward to reading
it. It reminds me that I still need to read "How to lie with maps":
  http://www.eyrie.org/~eagle/reviews/books/0-226-53421-9.html
(in the spirit of "How to lie with statistics")

It is really quite amazing/scary how much changing the colors affects
the interpretation and is able to hide/highlight features. After spending
a fair bit of time with the issue I personally feel it is most honest to
use a color scale which can be described as a continuous mathematical
function. e.g. log()+BCYR or something directly based on the univariate
stats of the data. -> Take the biased "what looks nicest" human out of
the picture. Choosing arbitrary band limits on a continuous value dataset
just compounds the opportunities for arbitrary human influence. The
statistical equivalent is to slowly vary the number bins in a histogram
while the peaks seemingly double and halve.

...so it is up for debate :slight_smile:

As I side note I was wondering how to draw such a color scheme (i.e.
with equally sized bands of constant color) in GRASS.

declare the number twice, e.g.

r.colors color=rules << EOF
0 red
100 red
100 yellow
200 yellow
200 cyan
300 cyan
300 blue
400 blue
EOF

Hamish

Hamish wrote:

Luigi Ponti wrote:
  
I just ran into this page
[http://geography.uoregon.edu/datagraphics/color_scales.htm](http://geography.uoregon.edu/datagraphics/color_scales.htm)

that includes, among others, precipitation color tables. I
don't know if that can be useful.

The page of this Lab also provides an interesting paper titled "End of 
the Rainbow" which elaborates on why one should not use continuously 
varying color schemes (and absolutely no rainbow color table). The way 
to go seems to be banded color schemes -- a color scheme with equally 
sized bands of constant color [1].
    
...
  
[1] Borland D, Taylor II RM (2007) Rainbow color map (still) considered 
harmful. IEEE Computer Graphics and Applications, 27, 14-17.
    

In matters of human perception the individual experience is not subject
to hard rules. Of course it is important to think about how the color-
blind will see things and how it will look printed in greyscale, etc.

An interesting subject to me, thanks for the link/look forward to reading
it. It reminds me that I still need to read "How to lie with maps":
  [http://www.eyrie.org/~eagle/reviews/books/0-226-53421-9.html](http://www.eyrie.org/~eagle/reviews/books/0-226-53421-9.html)
(in the spirit of "How to lie with statistics")
  

I found the refs I posted while browsing the net in search for good color schemes: it puzzled me that the majority of the maps (including mine) would use a rainbow, continuous color bar despite good arguments against this technique were available in the literature. I have no bias since my experience in very limited (nor do I want to lie with maps).

It is really quite amazing/scary how much changing the colors affects
the interpretation and is able to hide/highlight features. After spending
a fair bit of time with the issue I personally feel it is most honest to
use a color scale which can be described as a continuous mathematical
function. e.g. log()+BCYR or something directly based on the univariate
stats of the data. -> Take the biased "what looks nicest" human out of
the picture. 

Thanks: I was about to ask your opinion on this. Intuitively, I also feel that continuously varying stuff should be represented as such.

Choosing arbitrary band limits on a continuous value dataset
just compounds the opportunities for arbitrary human influence. 

The argument I read is that color bands act as contours lines do in elevation maps. It is true that choosing arbitrary band limits on a continuous value dataset is simply… …arbitrary. However, when you have a continuously varying color bar in the map, you will have label numbers next to the bar and you will try to associate the bar color next to the label value with a color in the map. The argument Borland & Taylor (2007) make is that if each label of the color bar is located between two constant color bands in the bar, you will have that value easily located in the map along the boundary between the two contiguous areas of constant color. What do you think about this?

I have no bias given my very limited experience on the matter – just trying to make an informed decision. Thanks again for discussing this and sorry if this is way off topic for the list (please advice).

The
statistical equivalent is to slowly vary the number bins in a histogram
while the peaks seemingly double and halve.
  

Yes, you lose information that way.

Kind regards,

Luigi

Luigi Ponti wrote:

I found the refs I posted while browsing the net in search for good
color schemes: it puzzled me that the majority of the maps (including
mine) would use a rainbow, continuous color bar despite good arguments

[for and ...]

against this technique were available in the literature.

I would not say the matter that is fully "solved"; no more than any
other matter of human cognition. (I am just yet another opinion; but
that's sort of my point)

I have no bias since my experience in very limited

we all have bias on some level. I did not mean intentional bias or
bias about the topic we speak of.

(nor do I want to lie with maps).

The point of "How to lie with statistics" etc is not a guide on how to
become a better villain, but rather how to spot when someone is trying to
sneak something past you, or how to make sure you do not accidentally
fool yourself or miss some important meaning because you are looking at
the data in a bad light. ... a lesson in avoiding common traps.

The argument I read is that color bands act as contours lines do in
elevation maps. It is true that choosing arbitrary band limits on a
continuous value dataset is simply... ...arbitrary.

exactly, as is splitting contour lines by arbitrary human-created units
on a natural landscape. So the matter becomes which devil to choose?

However, when you have a continuously varying color bar in the map,
you will have label numbers next to the bar and you will try to
associate the bar color next to the label value with a color in the
map. The argument Borland & Taylor (2007) make is that if each label
of the color bar is located between two constant color bands in the
bar, you will have that value easily located in the map along the
boundary between the two contiguous areas of constant color. What do
you think about this?

So they argue that (filled) contour lines are better than continuous
rainbow legend. Well, why not draw contour lines over the top of a
continuous rainbow then? It is a false dichotomy, as you can do both
together. My feeling is that there is more room for danger with
contour lines than with the reader squinting to see what orangish-
yellow means. Contour lines are dangerous because they state loudly
where a transition is, regardless of if the data has that confidence or
not. It is like the difference between politicial speak and scientist
speak in a way, one gives black and white options, the other gives some
probability that a theory is correct.

The other interesting physical tangent of this is the way the human eye
sees a (sky) rainbow as bands of colors, and yet in a spectrograph it
is really a steady continuous spectrum. The distinct color bands are
entirely "in our heads" and the breaks are in slightly different places
to all viewers depending on our individual optical/brain physiology.

I have no bias given my very limited experience on the matter -- just
trying to make an informed decision. Thanks again for discussing this
and sorry if this is way off topic for the list (please advice).

I veer way offtopic as well, and again it reminds me about the next book
I need to borrow from the library (www.edwardtufte.com).

To claw back on topic I will mention that you can have a rainbow
colorscale with crossing band lines in ps.map: give the "tickbar"
instruction to the colortable command. (then create and overlay contours
at those levels)

FWIW Matlab has a compromise -- their colorbar legend has little inward
ticks at the labeled numbers.

> The statistical equivalent is to slowly vary the number
> bins in a histogram while the peaks seemingly double and halve.

Yes, you lose information that way.

And worse, it is very easy to do so without noticing that you've done it.

Hamish

Hamish wrote:

Luigi Ponti wrote:
  

[…]

However, when you have a continuously varying color bar in the map,
you will have label numbers next to the bar and you will try to
associate the bar color next to the label value with a color in the
map. The argument Borland & Taylor (2007) make is that if each label
of the color bar is located between two constant color bands in the
bar, you will have that value easily located in the map along the
boundary between the two contiguous areas of constant color. What do
you think about this?
    

So they argue that (filled) contour lines are better than continuous
rainbow legend. Well, why not draw contour lines over the top of a
continuous rainbow then? It is a false dichotomy, as you can do both
together. My feeling is that there is more room for danger with
contour lines than with the reader squinting to see what orangish-
yellow means. Contour lines are dangerous because they state loudly
where a transition is, regardless of if the data has that confidence or
not. It is like the difference between politicial speak and scientist
speak in a way, one gives black and white options, the other gives some
probability that a theory is correct.
  

OK – I got the point and that’s good because I don’t have to change the way I am doing things. Plus you provided good arguments to support it.

  
I have no bias given my very limited experience on the matter -- just 
trying to make an informed decision. Thanks again for discussing this 
and sorry if this is way off topic for the list (please advice).
    

I veer way offtopic as well, and again it reminds me about the next book
I need to borrow from the library ([www.edwardtufte.com](http://www.edwardtufte.com)).
  

Yes: it’s highly cited by both supporters and enemies of constant color bands.

To claw back on topic I will mention that you can have a rainbow
colorscale with crossing band lines in ps.map: give the "tickbar"
instruction to the colortable command. (then create and overlay contours
at those levels)
  

That’s something that can turn useful, thanks!

[…]

The statistical equivalent is to slowly vary the number
bins in a histogram while the peaks seemingly double and halve.
      
Yes, you lose information that way.
    

And worse, it is very easy to do so without noticing that you've done it.
  

Thank you for a very interesting thread – it’s nice to veer off-topic every now and then.

Luigi