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

162 Views Asked by At

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.

1

There are 1 best solutions below

1
On BEST ANSWER

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.