This contextual script for Seismic Layers will create a color map for a Seismic Layer based on the percentiles of the underlying data.
Percentiles are calculated automatically when a dataset is indexed. As a result, this script will work for indexed-segy datasets (.xgy) but not for raw segy (.sgy) or SEP (.h) files.
The resulting color map is generated by adding more colors to areas of the color map where the percentile ranges are the largest.
Here is an example of a screen before the script is executed:
After selecting the "SetColorMapFromPercentiles.py" script from the contextual menu of the seismic plot, our screen will look like this:
You can download this script at the bottom of this page.
Here is the code for this script:
To use this script, put your Python script in your Python directory under a directory called Contextual_XSection_Seismic_Layer.