Subversion Repositories lagranto.um

Rev

Rev 3 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 14
1
.TH reformat
1
.TH reformat
2
.SH NAME 
2
.SH NAME 
3
.B reformat - convert trajectory files between different formats
3
.B reformat - convert trajectory files between different formats
4
.SH SYNOPSIS 
4
.SH SYNOPSIS 
5
.B reformat
5
.B reformat
6
.I inpfile
6
.I inpfile
7
.I outfile
7
.I outfile
8
.SH DESCRIPTION
8
.SH DESCRIPTION
9
Convert a Lagranto trajectory file 
9
Convert a Lagranto trajectory file 
10
.I inpfile
10
.I inpfile
11
from one format to another format; the new file is written to 
11
from one format to another format; the new file is written to 
12
.I outfile. 
12
.I outfile. 
13
The formats are specified with an appendix to the filename, e.g. "trajectory.1" specifies format 1. If no appendix is given, format 1 is chosen.
13
The formats are specified with an appendix to the filename, e.g. "trajectory.1" specifies format 1. If no appendix is given, format 1 is chosen.
14
.SH PARAMETERS
14
.SH PARAMETERS
15
.TP 15
15
.TP 15
16
.I inpfile
16
.I inpfile
17
input trajectory file
17
input trajectory file
18
.TP 15
18
.TP 15
19
.I outfile
19
.I outfile
20
output trajectory file (can be the same as inpfile).
20
output trajectory file (can be the same as inpfile).
21
.SH FORMATS
21
.SH FORMATS
22
Formats must be specified with an appendix to the filename. If no appendix is given, format 1 is chosen.
22
Formats must be specified with an appendix to the filename. If no appendix is given, format 1 is chosen.
23
.TP 5
23
.TP 5
24
.B .1
24
.B .1
25
ASCII file; the trajectories are sorted according to their starting positions. Different trajectories are separated by a blank line. This format is the only one supported
25
ASCII file; the trajectories are sorted according to their starting positions. Different trajectories are separated by a blank line. This format is the only one supported
26
by the Matlab and NCL visualisation scripts (see
26
by the Matlab and NCL visualisation scripts (see
27
.B lagrantohelp/visualisation).
27
.B lagrantohelp/visualisation).
28
.TP 5
28
.TP 5
29
.B .2
29
.B .2
30
ASCII file; the trajectories are sorted according to their times. Different times are separated with a blank line.
30
ASCII file; the trajectories are sorted according to their times. Different times are separated with a blank line.
31
.TP 5
31
.TP 5
32
.B .3 
32
.B .3 
33
unformatted Fortran; this is the most efficient format, but least portable one.
33
unformatted Fortran; this is the most efficient format, but least portable one.
34
.TP 5
34
.TP 5
35
.B .4 
35
.B .4 
36
netCDF; portable and compact data format.
36
netCDF; portable and compact data format.
37
.SH EXAMPLES
37
.SH EXAMPLES
38
.TP 5
38
.TP 5
39
.B [1] reformat trainp.1 trainp.4
39
.B [1] reformat trainp.1 trainp.4
40
Convert the input trajectory file in format 1 (ASCII) to format 4 (netCDF).
40
Convert the input trajectory file in format 1 (ASCII) to format 4 (netCDF).
41
.SH AUTHOR
41
.SH AUTHOR
42
Written by Michael Sprenger and Heini Wernli (January 2011)
42
Written by Michael Sprenger and Heini Wernli (January 2011)