Configuration files

Many of the commands that you can put into a command file are to select options which you want to apply every time you run SNAP. For example you may want a different output format from the default. In SNAP you can do this by creating one or more configuration files. These files contain commands to change the default options of SNAP.

Configuration files differ from command files only in that they cannot contain commands specific to an adjustment. For example they cannot specify data files, or fixed stations.

SNAP may use several configuration files before running an adjustment. The files it will try to use are:

SNAP.CFG in the same directory as the SNAP program.

SNAP.CFG in the users directory. This directory is defined using either the SNAPDIR environment variable, or the -u option on the SNAP command line.

SNAP.CFG in the same directory as the command file

SNAP will check for the existence of each of these files and use it if it exists.

You can also specify additional configuration files within the command file. This can be used to easily change options for different types of adjustment. For example, you may want different listing formats for trial adjustments and for the final adjustment. You can put the options into configuration files called TEST.CFG and FINAL.CFG. Then in the command file you only need to enter the command configuration TEST or configuration FINAL to select the options.

SNAP will look for named configuration files in the following places:

the same directory as the command file

the user's directory. This directory is defined using either the SNAPDIR environment variable, or the -u option on the SNAP command line.

the same directory as the SNAP program

If the file is found in more than one of these directories the first one found is used.

See also:

Command file syntax

Alphabetical list of commands

Summary of commands by function

Adjustment mode

Defining the residual listing format