Subversion Repositories lagranto.um

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 michaesp 1
.TH create_startf
2
.SH NAME 
3
.B create_startf - 
4
create starting files for Lagranto
5
.SH SYNOPSIS 
6
.B create_startf 
7
.I date 
8
.I filename 
9
.I specifier 
10
[ 
11
.I optional arguments 
12
] 
13
.SH DESCRIPTION
14
Create starting files
15
for a Lagranto calculation. The staring positions are based on the P and S files for 
16
.I date
17
and are as specified in a 
18
.I specifier.
19
The starting coordinates (longitude, latitude, pressure [in hPa]) are written to the file 
20
.I filename.
21
.SH PARAMETERS
22
.TP 15
23
.I date        
24
date of input P and S file (e.g. 20100101_00). If the date is between two P and S files, 
25
linear interpolation is used between the two times.
26
.TP 15
27
.I filename    
28
output file with starting points (e.g. startf). Different formats are supported (see 
29
.B reformat
30
for details)
31
.TP 15
32
.I specifier   
33
detailed description of starting positions. The specifier has the following format:
34
.B 
35
.I <horizontal> 
36
@ 
37
.I <vertical> 
38
@ 
39
.I
40
<unit> 
41
@ 
42
.I <selection>.
43
The components of the specifier are described in greater detail in the following sections.
44
.SH HORIZONTAL
45
.TP 15
46
.B - file[filename] 
47
read lat/lon from file "filename"; each line contains one lat/lon pair.
48
.TP 15
49
.B - line[lon1,lon2,lat1,lat2,n] 
50
n points from (lon1,la1) to (lon2,lat2); the points are linearly interpolated in lat/lon space.
51
.TP 15
52
.B - box.eqd[lon1,lon2,lat1,lat2,ds] 
53
lat/lon box bounded with south-western point (lon1,lat1) and north-eastern point (lon2,lat2); the equdistant points within the box have a horizontal distance ds (in [km]).
54
.TP 15
55
.B - box.grid[lon1,lon2,lat1,lat2,] 
56
lat/lon box with south-western point (lon1,lat1) and north-eastern point (lon2,lat2 grid points; all grid points within this box are taken as staring points.
57
.TP 15
58
.B - point[lon,lat] 
59
single lon/lat point.
60
.TP 15
61
.B - shift[lon,lat,dlon,dlat] 
62
lon/at points and dlon/dlat shifhted ones, i.e. in total five points: central one and four shifted ones: (lon,lat), (lon+dlon,lat), (lon-dlon,lat), (lon,lat+dlat), (lon,lat-dlat).
63
.TP 15
64
.B - polygon.eqd[filename,ds] 
65
equidistant within arbirtrary polygon (ds in [km]). The file with the polygon points has the following format: 1st line a lon/lat point within the polygon; further lines lon/lat points of the vertices (max 500) of the polygon.
66
.TP 15
67
.B - polygon.grid[filename] 
68
grid points within arbirtrary polygon. The file with the polygon points has the following format: 1st line a lon/lat point within the polygon; further lines lon/lat points of the vertices (max 500) of the polygon.
69
.TP 15
70
.B - circle.eqd[lonc,latc,radius,ds] 
71
circle with centre at (lonc,latc) and radius "radius" (in km); the equdistant points within the circle have a horizontal distance ds (in [km]).
72
.TP 15
73
.B - circle.grid[lonc,latc,radius]
74
circle with centre at (lonc,latc) and radius "radius" (in km); all rid points within the circle are selected.
75
.TP 15
76
.B - region.eqd[id,ds] 
77
Read region specification from region file ("default regionf", to be changed with option "-regionf") and fill it equidistantly with starting points (ds in km). The region identification is "id", see below in section REGION FILE.
78
.TP 15
79
.B - region.grid[id]
80
Read region specification from region file ("default regionf", to be changed with option "-regionf") and fill it  with starting points on the input grid. The region identification is "id", see below in section REGION FILE.
81
.SH VERTICAL
82
.TP 15
83
.B - file[filename] 
84
read levels from file "filename"; each line in the file contains one level.
85
.TP 15
86
.B - level[lev]
87
a single level
88
.TP 15
89
.B - list[lev1,lev2,lev3,...] 
90
a list of levels; if many levels are needed they are better passed to "create_startf" with the option "file[filename]".
91
.TP 15
92
.B - profile[lev1,lev2,n]  
93
n equdistant levels between lev1 and lev2.
94
.SH UNIT
95
.TP 15
96
.B - hPa
97
pressure (in hPa).
98
.TP 15
99
.B - hPa,agl
100
pressure (in hPa) above ground level.
101
.TP 15
102
.B - K
103
potential temperature (in K).
104
.TP 15
105
.B - PVU
106
potential vorticty (in PVU). Note that potential vorticity (PV) might not be unique as a vertical coordinate; if several levels have a given PV value, the highest one is chosen.
107
.SH SELECTION
108
.TP 15
109
.B - criterion
110
Selection criteria based on meteorological fields applied to the starting position; The criteria follow the syntax of the program 
111
.B select.
112
.TP 15
113
.B - nil
114
If no selection criteria should be invoked, the argument "nil" should be given.
115
.SH REGION FILE
116
Several starting regions can be defined for every case in a region file (default filename is "regionf"; to be changed with optional parameter "-regionf filename"). There are two possible formats for specifying a region (they require either a line with 5 or 9 entries): 
117
.TP 5
118
.B "regnum lonw lone lats latn" 
119
a regular latitude-longitude square: regnum=integer region number; lonw=westernmost longitude of starting region; lone=easternmost longitude; lats=southernmost latitude; latnNorthernmost latitude. 
120
.TP 5
121
.B "regnum lon1 lat1 lon2 lat2 lon3 lat3 lon4 lat4" 
122
an irregular latitude-longitude square: regnum=integer region number; lon{x},lat{x} = longitude and latitude of the x-th corner. Note that the 4 corners must be arranged counterclockwise. For a triangle the 4th corner can be specified identically to the 3rd.
123
.TP 5
124
.B Note: (1) if a line starts with '#' it is regarded as comment and not further considered; (2) each line in the region file must start with '"!
125
.TP 5 
126
.B "101 -40. -24. 52. 60.": 
127
region in the central Atlantic from 40 W to 24 W and 52 N to 60 N; the region identifier is 101.
128
.TP 5
129
.B "250 -30. 43. -24. 36. -18. 50.2 -35.2 50.2": 
130
irregular square in the central Atlantic; the region identifier is 250.
131
.SH OPTIONAL
132
.br
133
.TP 15
134
.I -t tracefile 
135
tracing file with variables for selection criteria (see
136
.B trace
137
for format of the file). If no file is specified, the default 
138
"tracevars" is used. Further, if no selection criterion is invoked, no
139
tracing file is necessary.
140
.TP 15
141
.I -changet
142
flag whether the times of the P and S files should be changed or not before a calculation; the default is that the
143
times are not changed. 
144
.TP 15
145
.I -noclean
146
flag whether parameter and criterion files should be kept; this is particularly helpfuld for debugging.
147
.TP 15
148
.I -regionf filename
149
change the region file from its default value "regionf" to a new file name: the syntax is "-regionf filename".
150
.TP 15
151
.I -notimecheck
152
take the first time on the netCDF file - do no explicit test that the requested time is available on the file. This is particularly helpful if you have no write permission for the P files.
153
.SH EXAMPLES
154
.TP 5
155
.B [1] create_startf 19891020_00 startf 'point(-10,50) @ list(450,500,550) @ hPa' 
156
Starting points are (longitude, latitude, pressure in hPa): (-10,50,450); (-10,50,500); (-10,50,550). No selection criterion is applied; the positions are written to file "startf".
157
.TP 5
158
.B [2] create_startf 19891020_00 startf 'line(-10,-5,40,50,10) @ level(450) @ hPa,agl'
159
10 points are equidistantly specified between lon/lat point (-10,40) and (-5,50); all trajectories start at 450 hPa above ground level - the surface pressure is taken from the primary file P19891020_00. The positions are saved in "startf".
160
.TP 5
161
.B [3] create_startf 19891020_00 startf 'box.grid(-10,-5,40,50) @ list(300,320) @ K'
162
All grid points in the box with the south-eastern lon/lat point (-10,40) and the north-eastern one (-5,50) are taken - the horizontal grid spacing is specfified in the primary file P19891020_00. In the vertical, two isentropic levels are chosen: 300 K and 320 K. The potential temperature for the calculation is taken from the secondary file S19891020_00.
163
.TP 5
164
.B [4] create_startf 19891020_00 startf 'shift(-10,40,1,1) @ profile(1000,200,100) @ hPa'
165
A profile of 100 equidistant levels between 1000 hPa and 200 hPa; in the horizontal the central lon/lat point (-10,40) is taken and four horizontally displaced ones, the diplacement being 1 degree in zonal and meridional direction. 
166
.TP 5
167
.B [5] create_startf 19891020_00 startf.1 'shift(-10,40,1,1) @ profile(1000,200,100) @ hPa'
168
As in the previous example [4], but the starting positions are saved as a trajectory file instead of a (lon,lat,p)-list. 
169
.TP 5
170
.B [6] create_startf 19891020_00 startf.1 criterion
171
As in the previous example [5], but the criterion is saved on a file with filename "criterion". 
172
.TP 5
173
.B [7] create_startf 19891020_00 startf 'polygon.grid(polygon) @ level(500) @ hPa
174
A polygon is specified in the file "polygon"; the different lines in the file are:  -5. 45. / -10. 40. / 10. 40. / 10  50. / -10. 45. The first lon/lat point lies within the polygon, all other lon/lat points are the vertices of the polygon. All grid points within the polygon are taken as starting point, at level 500 hPa.
175
.TP 5
176
.B [8] create_startf 19891020_00 startf 'polygon.eqd(polygon,50) @ level(500) @ hPa
177
As in the previous example [7], except that the starting points are distributed equidistantly within the polygon. The horizontal distance between the starting points is 50 km in zonal and meridional direction.
178
.TP 5
179
.B [9] create_startf 19891020_00 startf 'shift(-10,40,1,1) @ profile(1000,200,100) @ hPa @ GT:TH:310'
180
As in example [4], but a selection criterion is additionally applied: only starting positions with potential temperature (TH) greater than (GT) 310 K are kept. Potential temperature must be available on the secondary file S19891020_00 and the file "tracevars" must have a line with "TH     1.  0   S". Further examples for selection criteria can be seen in 
181
.B
182
select.
183
.TP 5
184
.B [10] create_startf 19891020_00 START.1 'region.eqd(3,10) @ level(500) @ hPa'
185
get equidistant starting points (10 km distance) in the region with identifier 3, as listed in the region file "regionf" (the default).
186
.SH AUTHOR
187
Written by Michael Sprenger and Heini Wernli (January 2011)
188
 
189