Search code examples
c#oceanpetrel

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


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.


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.