Follow

How can I rearrange, or add my gradients/colormaps to, the Fill Colors list in Surfer?

The Surfer Fill Colors list displays a number of predefined colormaps (or gradients) for you to choose from. There is not a way in the user interface to change the order of the items in this list, or to add your own colormaps, however, you can do this by editing the Gradient.ini file that ships with Surfer.

 

All the colornaps in the Fill colors list are saved in the Gradient.ini file, located in C:\Users\<username>\AppData\Roaming\Golden Software\Surfer <version>.

 

To rearrange the colormaps in the Fill colors list:

  1. Open the Gradient.ini file in a text editor, like Notepad++.
  2. Select all the lines of data for a particular colormap that you want to move. For example, the example below selects the Rainbow colormap information:
  3. Click Edit | Cut.
  4. Delete the empty line and then place your cursor at the beginning of the line you want this colormap to begin.
  5. Press ENTER to add a new, empty line, and then place your cursor on that line. This example will put the Rainbow colormap between the GrayScale and ChromaDepth colormaps:
  6. Click Edit | Paste to paste in the information.
  7. Click File | Save and resave the file.
  8. Restart Surfer and the colormap presets will be in the new order.

 

To add a new colormap preset:

  1. Open the Gradient.ini file in a text editor, like Notepad++.
  2. Put your cursor at the beginning of the line you want the new color to be on and press ENTER.
  3. Put your cursor in the empty line and enter the colormap information. This includes the colormap name (containing no spaces), a 0 and the number of color nodes. This is followed by the information for each color node, starting with a number between 0 and 1 (which determines the color node location, in increasing order), then the RGB component values for that color node (integers from 0 to 255). More information is found in the Format and Notes sections at the top of the Gradient.ini file.
  4. If this information is hard to create manually, you can create the colormap you want in the Colormap dialog of the user interface, and click the Save button to save it to a CLR file. Open the CLR file in Notepad++ and copy the colormap from the CLR file into the Gradient.ini file. You will need to make sure the header information is correct, and then divide the node positions by 100, since CLR files save the node positions in percent (from 0 to 100).
  5. Click File | Save and resave the Gradient.ini file.
  6. Restart Surfer and the new preset will be included in the drop down menu.

 

Updated October 16, 2018

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.