In this script, we look for Segy files in a directory. Each Segy file is indexed as a volume. From that indexing process, the bounding box of the X-Y coordinates is calculated for each dataset.
This script is attached to the bottom of this page.
See the Indexing Multiple 2D Lines for a detailed explanation of the scaler. In this example, the LOC SCALER is used as scaler.
The files in the F:\Data\Volumes directory use a header format that is not standard. A mapping file is specified with the setMappingFilePath method. This mapping file is attached to this page as a reference.
The output of the Python terminal will look like this:
Note that the X and Y values might not be exact. The corner point geometry that is calculated is a good fit across the entire survey. It might not be the best fit for the 4 corner traces. Also, depending on the orientation of the survey and whether the survey has missing traces, the bounding box of X and Y values might not match the bounding box of the transformed INLINE-XLINE corners. For an exact calculation, use this other example.