SNAP Observation file format

An observation file contains a header line, some data definition commands which describe what is in the file, and then the data themselves. This may be followed by further data definition commands, and another set of data. For example the first set of data may be a set of GPS vectors, and the second set distances and angles to offset stations.

The following example illustrates the layout of a typical SNAP data file.

Demonstration data set
Header line to describe the contents of the file
#data sd
#ds_error  10mm 2ppm
Data definition commands (these start with a # character) The file will contain slope distances (SD) and the error associated with the distances is 10mm ± 2 ppm

S01  1.31  S02  1.25   1051.822
S01  1.31  S03  0.98    988.015
S01  1.31  S08  1.13    403.229

S02  1.21  S01  0.95   1051.815
The first line of the data is for a line from S01 to S02. The instrument is 1.31 metres above S01 and the target is 1.25 metres above S02. The slope distance from the instrument to the target is 1051.822

In this example there is just one data block which holds slope distance observations. However this could be followed by another data block containing horizontal angle observations.

Data definition commands are lines in the data file starting with the hash character (#). They are used to specify:

The data definition commands can throughout the file. In the data file illustrated above there may be a #ds_error command further down to specify a different error for the following distance observations, or there could be a #data command to specify that the following observations are horizontal angles.

Each data definition applies to the data following it until it is overridden by a subsequent data definition.

Following the data definition commands is are one or more blocks of data.

The observation types can be classified into three groups. These are

Each data block can contain only one of these groups. So, for example, you cannot include GPS baselines (vector data) in the same data block as levelling data. However one data file can contain several blocks of data, which may be of different types.

Each data block can be laid out in four basic ways:

Every observation must have an associated error. Errors can either be specified individually with each observation, or they can be defined for the entire data block in the data definition commands (as in the example above).

The data definition commands and observations do not need to be entered in specific columns. Each line consists of a number of items such as station names, observations, and so on separated by one or more spaces. If the information cannot be fitted onto a single line then it can be continued onto a second line by ending the first line with an ampersand & to indicate that there is more to follow.

Comments can be inserted anywhere into the data file. Comments are lines starting with an exclamation mark !. These comments are ignored when the file is read. You can also add notes using the #note data definition command. Unlike comments, notes are saved with the data when SNAP reads the file, and may appear in the output listings.

See also:

Summary of data types

CSV observation file format

Point observation format

Line observation format

Grouped observation format

Grouped observations with covariance format

Data definition commands by function

Data definition commands listed alphabetically