Python APIs for 2D Seismic Layers
View Seismic Data in a XSection window
View Seismic Data in a XSection window
seismicData = SeismicData("F:\\Data\\Segy\\Attributes\\cdp_stack.xgy")
window = XSectionWindow("Test")
seismicLayer = SeismicLayer(window, seismicData)
print seismicLayer.getAllProperties()
seismicLayer.setNormalizationScale(0.5)
Setting a color map
Setting a color map
colorMap = ColorMap('GreyOrange')
seismicLayer.setColorMap(colorMap)
Applying a profile
Applying a profile
manager = ProfileManager()
manager.applyProfileToLayer(seismicLayer, 'MyProfileName')
To list all profile names, you can use this method:
print ProfileManager().getAvailableProfileNames()
View a Seismic Time Slice in a Map window
View a Seismic Time Slice in a Map window
seismicData = SeismicData("F:\\Data\\Segy\\Attributes\\cdp_stack.xgy")
window = MapWindow("Test")
seismicLayer = MapSeismicLayer(window, seismicData)
seismicLayer.setTimeOffset(2.3)
seismicLayer.setSynchronizeTimeSlice(True)
View a Seismic Outline in a Map window
View a Seismic Outline in a Map window
seismicData = SeismicData("F:\\Data\\Segy\\Attributes\\cdp_stack.xgy")
window = MapWindow("Test")
seismicLayer = MapSeismicOutlineLayer(window, seismicData)
View a 2D Seismic Line in a Map window
View a 2D Seismic Line in a Map window
seismicData = SeismicData("F:\\Data\\Segy\\Attributes\\cdp_stack.sgy")
window = MapWindow("Test")
seismicLayer = MapSeismicLineLayer(window, seismicData, "CDPX", "CDPY")
Use Trace processors
Use Trace processors
Example of trace processor being added to a seismic layer. The trace processor has no parameter
seismicData = SeismicData("F:\\Data\\Segy\\Attributes\\cdp_stack.xgy")
window = XSectionWindow("Test")
seismicLayer = SeismicLayer(window, seismicData)
processor = SeismicLayerProcessor(seismicLayer, "AGC")
Example of trace processor being added to a seismic layer. The trace processor has a parameter
seismicData = SeismicData("F:\\Data\\Segy\Attributes\\cdp_stack.xgy")
window = XSectionWindow("Test")
seismicLayer = SeismicLayer(window, seismicData)
processor = SeismicLayerProcessor(seismicLayer, "Vertical Shift")
processor.setParameterValue("Time Shift", "1")
Example of writing an entire processed seismic layer to disk
window = XSectionWindow("Test")
seismicLayer = SeismicLayer(window, seismicData)
processor = SeismicLayerProcessor(seismicLayer, "AGC")
processedData = seismicLayer.getProcessedData()
writer = SeismicDataWriter(processedData)
writer.writeInBackground("F:\\Data\\Segy\\Attributes\\cdp_stack5.xgy")