Python APIs for Fault Data
Loading a fault dataset from a file
Loading a fault dataset from a file
faultData = FaultData("F:\\Data\\Fault\\F3_demo.aft")
Using the Fault Data File Chooser
Using the Fault Data File Chooser
An example of a data chooser for selecting one file:
chooser = FaultDataChooser()
faultData = chooser.getSelectedData()
An example of a data chooser for selecting multiple files:
chooser = MultipleFaultDataChooser()
faultDataArray = chooser.getSelectedData()
Getting information about the data keys
Getting information about the data keys
Example of getting all key attribute names for a fault data:
keyNamesArray = faultData.getKeyNames()
Using this information, you can access specific key range information by using the following methods:
dataInlineMin = faultData.getKeyMinimum("Inline")
dataInlineMax = faultData.getKeyMaximum("Inline")
dataInlineRange = faultData.getKeyRange("Inline")
Getting information about fault segments
Getting information about fault segments
Example of creating a new fault segment:
newFaultSegment = faultData.createFaultSegment()
Example of getting all fault segments from a fault dataset:
faultSegmentArray = faultData.getAllFaultSegments()
Example of getting information from a fault segment:
int totalPointsInSegment = faultSegment.getNumberOfPoints()
int faultSegmentNumber = faultSegment.getSegmentNumber()
Adding point data to a fault segment
Adding point data to a fault segment
Example of adding a point to a fault segment:
faultData.addPoitnData(faultSegment, pointData)