# How the logarithmically scaled node values in the Colormap dialog are calculated in Surfer

The nodal values in a logarithmically scaled colormap are calculated by taking the log of the current extents (the minimum and maximum of the colormap), calculating the log value of the node in the same position along the colormap as it was originally, and then taking the antilog of that value.

For example:

- Open
*Logarithmic.srf*, from the Surfer Samples folder. - Select the map in the lower right of the page.
- In the
**Properties**window, click the**Levels**tab and click the ellipses button in the*Fill colors*field. This opens the**Colormap Editor**dialog. - Uncheck
*Logarithmic scaling*(to see how the log values are calculated from the linear values). - Let's look at the yellow node. Select the yellow node and you can see that the
*Value*is 2625.406. Now let's calculate what value this would be on the logarithmic scale. It is not as simple as just taking the log of 2625.406. - First, calculate the log of the current extents. The data extents of the colormap are 0.007299754353 to 4375.671427. Take the log of both these values to calculate the log extents of -2.136691754 to 3.641044703.
- Find the % position of the yellow node along the colormap for the new extents. You can find this in the
*Position*field in the*Color Mapping*section. The yellow node is at the 59.96% position. - Find the new value at the 59.96% position. The 59.96% position between the calculated log extents (-2.136691754 to 3.641044703) is 1.3277.
- The antilog of 1.3277 is 21.2705. This is the new node value on the log scaled colormap.
- Check
*Logarithmic scaling*and you can see that the*Value*for the yellow node is 21.2705.

*Updated **December 19, 2021*

## Comments

0 comments

Please sign in to leave a comment.