2 |
michaesp |
1 |
.TH difference
|
|
|
2 |
.SH NAME
|
|
|
3 |
.B difference - calculate the difference of two trajecrtory files
|
|
|
4 |
.SH SYNOPSIS
|
|
|
5 |
.B difference
|
|
|
6 |
.I inpfil1
|
|
|
7 |
.I inpfile2
|
|
|
8 |
.I outfile
|
|
|
9 |
.I field
|
|
|
10 |
.I [ -single|-max ]
|
|
|
11 |
.SH DESCRIPTION
|
|
|
12 |
Calculate the difference of two trajectory files "inpfile1" and "inpfile2" and write it to a new trajectory file "outfile". The difference is calculated of the field "field", which must be available on both input files. If the field "LATLON" is specified, the spherical distance between the two trajectories is taken. Furthermore, with "-single" the difference is written at all times, with "-max" only the time of maximum difference is written.
|
|
|
13 |
.SH PARAMETERS
|
|
|
14 |
.TP 15
|
|
|
15 |
.I inpfile1
|
|
|
16 |
first trajectory file
|
|
|
17 |
.TP 15
|
|
|
18 |
.I inpfile2
|
|
|
19 |
second trajectory file
|
|
|
20 |
.TP 15
|
|
|
21 |
.I outfile
|
|
|
22 |
output trajectory file - note that this is not a standard trajectory file which can be further processed! The position of both trajectories are listed and also the field for both trajectories and their difference.
|
|
|
23 |
.TP 15
|
|
|
24 |
.I field
|
|
|
25 |
Name of field for which the difference should be calculated. It must be available in both trajectory files. IF "LATLON" is specified, the spherical distance between the trajectory positions is calculated.
|
|
|
26 |
.SH OPTIONAL PARAMETERS
|
|
|
27 |
.TP 15
|
|
|
28 |
.I -single
|
|
|
29 |
the difference is written to "outfile" for all trajectory times
|
|
|
30 |
.TP 15
|
|
|
31 |
.I -max
|
|
|
32 |
the difference is written to "outfile" only for the trajectory time with maximum difference.
|
|
|
33 |
.SH EXAMPLES
|
|
|
34 |
.TP 5
|
|
|
35 |
.B [1] difference tra1 tra2 out LATLON -single
|
|
|
36 |
gives the speherical distance (LATLON) between trajectories in "tra1" and "tra2". The difference is written for all trajectory times.
|
|
|
37 |
.TP 5
|
|
|
38 |
.B [2] difference tra1 tra2 out TH -max
|
|
|
39 |
gives the difference of potential temperature (TH) between trajectory file "ra1" and "tra2" and writes the maximum difference ("-max") to the output file "out".
|
|
|
40 |
.SH AUTHOR
|
|
|
41 |
Written by Michael Sprenger and Heini Wernli (January 2011)
|