Follow

How can I rearrange the color Presets, or add my own custom colormaps to the Presets drop down menu in Surfer?

The Surfer Presets drop down menu lists a number of predefined colormaps for you to choose from easily. 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 manually.

 

All the colornaps in the Preset drop down menu are saved in the Gradient.ini file, located in C:\Users\<username>\AppData\Roaming\Golden Software\Surfer <version>.

 

To rearrange the presets in the drop down menu:

  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. Place your cursor in the location you want that colormap to be. This example will put the Rainbow colormap between the GrayScale and ChromaDepth colormaps:
  5. Click Edit | Paste to paste in the information.
  6. Click File | Save and resave the file.
  7. Restart Surfer and the presets will be in the new order.

 

To add a new preset:

  1. Open the Gradient.ini file in a text editor, like Notepad.
  2. Put your cursor in the location you want the new colormap to be in the Presets drop down menu.
  3. Enter the colormap information. This includes the colormap name, 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, must be specified in increasing order), then the RGB component values for that color node (0 to 255). Please note that the RGB values must be whole numbers. More information is found in the Format and Notes sections at the top of Gradient.ini.
  4. If this information is hard to come up with 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 color node information 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 position data by 100 as the CLR files save the node positions in percent (from 0 to 100) and the Gradient.ini file saves the node positions from 0 to 1.
  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 January 24, 2017

 

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

0 Comments

Please sign in to leave a comment.