How I can get the value (amplitude) at a given point by a HorizonInterpretation2D within a SeismicLine2D?

StackOverflow https://stackoverflow.com/questions/10710846

  •  10-06-2021
  •  | 
  •  

Question

The input parameters are a HorizonInterpretation2D and SeismicLine2D. by selecting the horizon, petrel shows the value as shown in the image (red). To find this value from code I need to get the number of the sample (blue). How could obtain the number of the sample?

Screenshot.

ScreenShot Solution [full size]:

Screenshot solution.

Was it helpful?

Solution

The sample index on the seismic trace can be computed using the SeismicLine2D.FirstSampleAt and SeismicLine2D.SamplingRate, i.e. (pickedValue-FirstSampleAt)/SamplingeRate. Expect the seismic pick to be in between samples and plan for interpolation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top