In this script, we look for Segy files in a directory. Each Segy file is indexed as a 2D line.
This script is attached to the bottom of this page.
In this example, the CDPX and CDPY represent the X and Y coordinates of each trace.
If a scaler needs to be applied, the "multipler type" needs to be changed for accurate X and Y values.
For example, to use the LOC SCALER header:
indexer.setXyMultiplierType('Field')
indexer.setXyMultiplierFieldName("LOC SCALER")
To use a fixed-value scaler:
indexer.setXyMultiplierType('Fixed')
indexer.setXyFixedMultiplier("-100")
The scaler rules mimick the rules followed by the Segy format:
This script assumes that the CDPX and CDPY headers are at their standard location (byte offset 181 and 185) and have a standard format (4-byte int). To customize the mapping, use the setMappingFilePath method to point to a mapping file. An example of using a mapping file is available in Indexing Multiple Volumes