Follow

How are the logarithmically scaled node values in Surfer's Colormap dialog calculated?

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:

  1. Open Logarithmic.srf, from the Surfer Samples folder.
  2. Select the map in the lower right of the page.
  3. In the Properties window, click the Levels tab and click the ellipses   button in the Fill colors field. This opens the Colormap Editor dialog.
  4. Uncheck Logarithmic scaling (to see how the log values are calculated from the linear values).
  5. 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.
  6. 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.
  7. 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. 
  8. 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.
  9. The antilog of 1.3277 is 21.2705. This is the new node value on the log scaled colormap.
  10. Check Logarithmic scaling and you can see that the Value for the yellow node is 21.2705.

 

Updated October 24, 2018

 

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.