Python APIs for Cross-Plot Data and Layers

View seismic amplitude Cross-Plot data in a Cross-Plot window

seismicData1 = SeismicData("F:\\data\\segy\\glyph\\RMSVfast.xgy")
seismicData2 = SeismicData("F:\\data\\segy\\glyph\\RMSVfast-Vslow.xgy")
seismicData3 = SeismicData("F:\\data\\segy\\glyph\\RMSVfast_Azimuth.xgy")
# Parameters are x data, y data and z data
xpData = CrossPlotData(seismicData1, seismicData2, seismicData3)
xpWindow = CrossPlotWindow("Test")
xpLayer = CrossPlotLayer(xpWindow, xpData, "Z Data")

View seismic header Cross-Plot data in a Cross-Plot window

seismicData = SeismicData("C:\\data\\segy\\tony\\stack-tony.xgy")
headerXpData = CrossPlotData(seismicData, seismicData, seismicData)
headerXpData.setXAttribute("INLINE")
headerXpData.setYAttribute("XLINE")
headerXpData.setZAttribute("TraceNumber")
xpWindow = CrossPlotWindow("Test")
xpLayer = CrossPlotLayer(xpWindow, headerXpData, "Z Data")

View horizon Cross-Plot data in a Cross-Plot window

horizonData = HorizonData("C:\\Data\\Segy\\Attributes\\bighorizon.xhz")
xpData = CrossPlotData(horizonData, horizonData, None)
xpData.setXAttribute("INLINE")
xpData.setYAttribute("XLINE")
xpWindow = CrossPlotWindow("Test")
xpLayer = CrossPlotLayer(xpWindow, xpData, "Time/Depth")

View log curve Cross-Plot data in a Cross-Plot window

wellData = WellData("C:\\Data\\34_10-A-6A.las")
xpData = CrossPlotData(wellData, wellData, wellData)
xpData.setXAttribute("DEPT")
xpData.setYAttribute("GR")
xpData.setZAttribute("ILD")
xpWindow = CrossPlotWindow("Test")
xpLayer = CrossPlotLayer(xpWindow, xpData, "Z Data")

Adding trend lines to Cross Plot Layers based on the entire cross plot

#Available trend types are "Linear", "Polynomial", "Power", "Logarithmic" and "Exponential"
trend = CrossPlotTrend(xpLayer, "Exponential")

Adding a trend line based on a polygonal selection

traverseData = TraverseData("F:\\data\\segy\\tony\\polyline.txt")
trend = CrossPlotTrend(xpLayer, traverseData, "Power")