output_csv output_options
The output_csv command is used to control output of csv (comma separated) files of adjustment results that can be imported into other software. SNAP can generate three types of CSV files - metadata, station, and observation files. The metadata file contains summary and configuration information. The station and observation files contain input and calculated information about the stations, and observations in the adjustment.
The files can be formatted either with comma separated fields in which text fields are delimited by quote (") characters, or with tab character separated fieldsd, in which text fields are unquoted. In the comma separated format, quote characters within the text fields are replaced with two quote characters - eg "Bearing swing 5"" east". The first line of each file contains the names of the columns. This format is compatible with many software packages, for example Microsoft Excel.
The output CSV files are named with the name of the command file followed by "-type.ext", where type is one of "metadata", "stn", or "obs", and ext is either "csv" for comma separated files, or "txt" for tab delimited files.
The syntax of the output_csv command is very similar to that for the list command - it may be followed by several options separated by spaces. Each option can be negated by preceding it with "no_", for example "no_stations". The options that are available with the output command are:
metadata
Creates a metadata CSV file.
stations
Creates a CSV file of station data.
observations
Creates a CSV file of observation data
filelist
Creates a CSV file with a catalogue of files used by snap
all
A shorthand for "metadata stations observations filelist". (It is recommented that this shorthand is not used in configuration files - just in command files).
tab_delimited
Generate tab delimited files instead of the default comma delimiters
wkt_shape
Include a column "shape" containing a well known text format description of the geometry of the object, for inclusion into GIS systems. This will be a POINT geometry for stations and point type observations, and a LINESTRING geometry for other observations
The following options are used to control how vector observations are represented in the observation file. The file can contain the individual components of the vector, or summary information for the three components, or both. These can be split into separate records for each component, or placed in a single record. If vector components are included then their errors and residuals can be expressed in terms of XYZ components or ENU components (the observations are always XYZ components). Also if components are written inline then the record can include correlations of the vector and residual errors.
vector_components
Include vector components in the file. This is the default - use no_vector_components to cancel this option.
vector_summary
Include a summary of each vector in the file. This is the default - use no_vector_summary to cancel this option.
vectors_inline
All the components and summary information are included in a single record. This is the default - use no_vectors_inline to cancel this option..
enu_residuals
Output errors and residuals of vectors in terms of E,N,U components. This is the default - use no_enu_residuals to cancel this option.
correlations
Include correlations between vector components in the file. This only applies if the vector components are represented inline.