Overview

There are certain parameters and values used by SegyTool that are set to industry standard values. For instance the location for the shotpoint number when scaling shotpoints by 1000 or importing XY coordinates is bytes 17-20.
Prior to version 4.0 these values were fixed and could not be changed by the user. In version 4.0 users have the ability to set defaults to match their data requirements. Multiple sets of defaults can be created and saved to defaults files and imported as needed.
Some of the defaults that can be set are byte locations for common header values, trace display and mapping parameters, as well as output sample format codes.
Note that most default parameters can be over-ridden while running SegyTool, the defaults files just set the preliminary parameters that the user will see 'by default'.
SegyTool will search for a file called SegyTool_Defaults.cfg or SegyTool_Defaults.txt in the user's home directory on startup.
If it is not found in the home directory standard defaults will be used. These are the values shown in the file image below.
Before selecting a SEGY file to load the user can import a new defaults file, or edit the current default ets and save it to a file.

Defaults File

The defaults file is a simple text file that contains starting default parameters for SegyTool.
Lines starting with " # " are comments that are ignored on import. Blank lines are ignored.
Parameters are identified by a field name followed by a value. As an example the following would set the X cordinate byte location and format
X_BYTE = 81
X_FORMAT = LONG_INT
The field names should not be changed and there must be an " = " sign between the field name and the value, blank spaces are optional.
When defining formats only the following values should be used, note that they are all upper-case
SHORT_INT (16 bit integer)
LONG_INT (32 bit integer)
IBM_FLOAT (32 bit IBM floating point)
IEEE_FLOAT (32 bit IEEE floating point)
SINGLE_BYTE (8 bit integer)
ASCII (Standard ASCII text)
EBCDIC (EBCDIC format text)
Default directories can be assigned for various import and export operations. Note that on most operating systems file paths are case sensitive.
The directories that can be defined are:
JAR_DIR Directory where SegyTool jar file resides. SegyTool looks for the license file here.
START_DIR Directory where SegyTool will start looking for files.
IMPORT_DIR Import survey files etc. from this directory.
EXPORT_DIR Export survey or other files to this directory.
SEGY_2D_DIR Export 2D SEGY files to this directory.
SEISX_2D_DIR Export 2D SeisX files to this directory.
SEGY_3D_DIR Export 3D SEGY files to this directory.
SEISX_3D_DIR Export 3D SeisX files to this directory.
IMAGE_DIR Export image files from trace display to this directory.
SCALING_DIR Export output from trace scaling to this directory.
AGC_DIR Export output from AGC scaling to this directory.
RESAMP_DIR Export output from resampling to this directory.
BPASS_DIR Export output from bandpass filtering to this directory.
HUGE_ARRAY_DIR Directory where arrays too big to be created in RAM are written to disk.
Note that the defined directories are starting points. The user can select other directories in a file browser. Once a different directory is selected it becomes the default until SegyTool is terminated.

Import Defaults

Select File / Import Default File from the menu bar or the left pointing hand from the File toolbar.
Select the defaults file to import from the file browser and click "Open". The file will be imported and the defaults reset to the values contained in the file.
The defaults file can have any name and an extension is optional. However at startup SegyTool will look for a file called SegyTool_Default.cfg or SegyTool_Defaults.txt in the users home directory.

Edit and Save Defaults

Click on the right pointing hand in the file toolbar to bring up the above dialog. The dialog contains a separate page for each type of parameter. Make whatever changes are desired and click the "Save To File" button to save the changes to a SegyTool defaults file that can be imported later.
Once the file is saved the current defaults are set to the new values.