Salinity Color Palette & Color Range for a Global view

153 views
Skip to first unread message

Douglas White

unread,
Aug 25, 2020, 11:58:29 AM8/25/20
to HYCOM.org Forum
Aloha from Delaware!

Is there a widely accepted academia/industry color palette and a color range for displaying salinity?

I am pulling down global imagery to display on a spherical display and I want to make the data stand out on the globe but I also don't want to make a faux pas & use a color palette that confuses viewers who might be used to viewing salinity in a specific color palette.

I'm exploring various ocean-related color palettes both from the Hycom WMS server as well as external add-on packages for R & MatLab like CMOCEAN (https://matplotlib.org/cmocean/) which has a Haline palette.

TIA! Doug

Alan Wallcraft

unread,
Aug 26, 2020, 10:58:34 AM8/26/20
to HYCOM.org Forum, d...@udel.edu
The NRL GOFS 3.1 plots of all fields at https://www7320.nrlssc.navy.mil/GLBhycomcice1-12/ use a false color palette of 100 values which are coded in colors.f

This isn't a salinity palette, and I would not recommend it for your application, but it does represent values out of range well (mapped to the first and last colors in the palette).  NRL's plots also illustrate that selecting the displayed range is important, and is difficult to do globally where salinity can range from close to zero (e.g. near rivers) to 40 psu (in the Mediterranean Sea).  Alternatives to mapping out of range values onto the palette include skipping these points, or using a distinct  "out of range" color, or defining a non-uniform mapping onto the color bar to cover the full range.

Alan.
globalsssnowcast.gif
medseasssnowcast.gif
nbrazlsssnowcast.gif

Alexandra Bozec

unread,
Aug 26, 2020, 11:15:54 AM8/26/20
to HYCOM.org Forum, d...@udel.edu, Alan Wallcraft
To add to Alan’s comment, a commonly used color palette is the Matlab jet color palette (https://www.mathworks.com/help/matlab/ref/jet.html ).
 It is very similar to the HYCOM color palette but without the purple to blue part.

The Haline palette of cmocean is also good choice.

Alex



--
--
You received this message because you are a member of HYCOM.org
To ask a question, send an email to fo...@hycom.org

---
To unsubscribe from this group and stop receiving emails from it, send an email to forum+un...@hycom.org.
<globalsssnowcast.gif><medseasssnowcast.gif><nbrazlsssnowcast.gif>

Rodrigo Duran

unread,
Aug 26, 2020, 11:22:28 AM8/26/20
to Alexandra Bozec, HYCOM.org Forum, d...@udel.edu, Alan Wallcraft
matlab's jet is not a good option, especially for salinity or temperature because it creates a false impression of a front. 

It is true that jet is commonly used, probably because it was the default colormap in Matlab for a very long time. Matlab moved away from jet in 2014.

you can read more about the problem with jet here:

White, Douglas

unread,
Aug 26, 2020, 11:27:06 AM8/26/20
to Alexandra Bozec, HYCOM.org Forum, Alan Wallcraft

Dmitry Dukhovskoy

unread,
Aug 27, 2020, 9:37:34 AM8/27/20
to HYCOM.org Forum, d...@udel.edu
Hi,

making good salinity plots showing fronts and water masses is not easy. From my experience, you cannot use any existing colormaps in Matlab for creating good plots. I always create my own. There are two options: 1) add as many colors as you can to cover S range of your interest (for example, you are not so interested in the near-shore low S regions) or 2) make exponential transformation of the S field expanding high-value S. 
I couldn't append examples of my S plots to this post, I can email them to you if you like. 

Dmitry

On Tuesday, August 25, 2020 at 11:58:29 AM UTC-4 d...@udel.edu wrote:

Douglas White

unread,
Oct 2, 2020, 10:15:51 AM10/2/20
to HYCOM.org Forum, Dmitry Dukhovskoy, Douglas White
Yes please - I am looking for example code for plotting in both R and in Python.
Reply all
Reply to author
Forward
0 new messages