This script will open a seismic file and, using rectangular bounds for trace number and time hardcoded into the script, iterate through the first ten inline sections of a selected dataset. It will create a spectrum from those bounds and save an image of the resulting spectrum analysis to a directory also hardcoded into the script.
Your desktop will be empty after executing this script.
You can download this script at the bottom of the page.