Hello!
I am writing because I am trying to generate a colour palette for my maps with the 0 with a certain colour. I explain my case:
I have a series of data in 3 columns (lat long & data). In order to automate the process I have saved the maximum($max_val) and minimum($min_val) value of the data column and used them to create my cpt with
gmt makecpt -Cpolar_pallete.cpt > colour.cpt
The structure of the file polar_pallete.cpt is as follows:
#----------------------------------------------------------------------------
Simulates the POLAR
#----------------------------------------------------------
COLOUR_MODEL = RGB
SOFT_HINGE
#----------------------------------------------------------
min_val blue 0 white
0 white max_val red
#----------------------------------------------------------
The result is as desired since white is 0, blue negatives and red positives. However, the scale used is a continuous scale and I need a discontinuous one.
Any advice? Thank you in advance!