Subversion Repositories lagranto.um

Rev

Details | Last modification | View Log | RSS feed

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