Selbox 1.78 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
4
5
6
@BeginModule
@NewPage
@Name      = Selbox
@Title     = Select a box of a field
@Section   = Selection
@Class     = Selection
Uwe Schulzweida's avatar
Uwe Schulzweida committed
7
@Arguments = infile outfile
Uwe Schulzweida's avatar
Uwe Schulzweida committed
8
9
10
@Operators = sellonlatbox selindexbox

@BeginDescription
11
Selects a box of the rectangularly understood field.
Uwe Schulzweida's avatar
Uwe Schulzweida committed
12
13
14
15
16
@EndDescription
@EndModule


@BeginOperator_sellonlatbox
Uwe Schulzweida's avatar
Uwe Schulzweida committed
17
@Title     = Select a longitude/latitude box
Uwe Schulzweida's avatar
Uwe Schulzweida committed
18
19
20
@Parameter = lon1 lon2 lat1 lat2

@BeginDescription
Uwe Schulzweida's avatar
Uwe Schulzweida committed
21
22
Selects a regular longitude/latitude box. The user has to give the longitudes and latitudes of the 
edges of the box. Considered are only those grid cells with the grid center inside the lon/lat box.
Uwe Schulzweida's avatar
Uwe Schulzweida committed
23
For rotated lon/lat grids the parameter needs to be rotated coordinates.
Uwe Schulzweida's avatar
Uwe Schulzweida committed
24
25
26
27
28
@EndDescription
@EndOperator


@BeginOperator_selindexbox
Uwe Schulzweida's avatar
Uwe Schulzweida committed
29
@Title     = Select an index box
Uwe Schulzweida's avatar
Uwe Schulzweida committed
30
31
32
@Parameter = idx1 idx2 idy1 idy2

@BeginDescription
Uwe Schulzweida's avatar
Uwe Schulzweida committed
33
34
Selects an index box. The user has to give the indexes of the edges of the box. The index of the 
left edge may be greater then that of the right edge.
Uwe Schulzweida's avatar
Uwe Schulzweida committed
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@EndDescription
@EndOperator


@BeginParameter idx1
@Item = lon1
FLOAT    Western longitude
@Item = lon2
FLOAT    Eastern longitude
@Item = lat1
FLOAT    Southern or northern latitude
@Item = lat2
FLOAT    Northern or southern latitude
@Item = idx1
INTEGER  Index of first longitude
@Item = idx2
INTEGER  Index of last longitude
@Item = idy1
INTEGER  Index of first latitude
@Item = idy2
INTEGER  Index of last latitude
@EndParameter


@BeginExample
Uwe Schulzweida's avatar
Uwe Schulzweida committed
60
To select the region with the longitudes from 30W to 60E and latitudes from 30N to 80S from all input fields use:
Uwe Schulzweida's avatar
Uwe Schulzweida committed
61
@BeginVerbatim
Uwe Schulzweida's avatar
Uwe Schulzweida committed
62
   cdo sellonlatbox,-30,60,30,80 infile outfile
Uwe Schulzweida's avatar
Uwe Schulzweida committed
63
@EndVerbatim
Uwe Schulzweida's avatar
Uwe Schulzweida committed
64
If the input dataset has fields on a Gaussian N16 grid, the same box can be selected with @oper{selindexbox} by:
Uwe Schulzweida's avatar
Uwe Schulzweida committed
65
@BeginVerbatim
Uwe Schulzweida's avatar
Uwe Schulzweida committed
66
   cdo selindexbox,60,11,3,11 infile outfile
Uwe Schulzweida's avatar
Uwe Schulzweida committed
67
68
@EndVerbatim
@EndExample