1 |
.TH wrfmap
|
1 |
.TH wrfmap
|
2 |
.SH NAME
|
2 |
.SH NAME
|
3 |
.B wrfmap -
|
3 |
.B wrfmap -
|
4 |
transform between geographical and WRF coordinates
|
4 |
transform between geographical and WRF coordinates
|
5 |
.SH SYNOPSIS
|
5 |
.SH SYNOPSIS
|
6 |
.B wrfmap
|
6 |
.B wrfmap
|
7 |
.I [ -create filename anglemode | -ll2xy coords | -xy2ll coord ]
|
7 |
.I -create filename anglemode | -ll2xy coords | -xy2ll coords | -p2z coords | -z2p coords
|
8 |
.SH DESCRIPTION
|
8 |
.SH DESCRIPTION
|
9 |
Create a mapping netCDF file
|
9 |
Create a mapping netCDF file
|
10 |
.I wrfmap.nc
|
10 |
.I wrfmap.nc
|
11 |
which contains the forward and the backward coordinate transformation. The
|
11 |
which contains the forward and the backward coordinate transformation. The
|
12 |
forward transformation is from WRF grid indices (x/y) to geographical
|
12 |
forward transformation is from WRF grid indices (x/y) to geographical
|
13 |
longitude/latitude, the backward transformation the other way round.
|
13 |
longitude/latitude, the backward transformation the other way round.
|
14 |
If the mapping file
|
14 |
If the mapping file
|
15 |
.I wrfmap.nc
|
15 |
.I wrfmap.nc
|
16 |
exists, the tool allows to transform between the two coordinates.
|
16 |
exists, the tool allows to transform between the two coordinates.
|
17 |
.SH PARAMETERS
|
17 |
.SH PARAMETERS
|
18 |
.TP 15
|
18 |
.TP 15
|
19 |
.I -create filename [greenwich|dateline]
|
19 |
.I -create filename [greenwich|dateline]
|
20 |
create the mapping file wrfmap.nc based on the WRF output file
|
20 |
create the mapping file wrfmap.nc based on the WRF output file
|
21 |
.I filename.
|
21 |
.I filename.
|
22 |
The WRF output file must contain the fields XLAT and XLONG which give for
|
22 |
The WRF output file must contain the fields XLAT and XLONG which give for
|
23 |
each grid point of the WRF domain the corresponding longitude and latitude. This forward transfoation fields are written as LON and LAT to wrfmap.nc. For the
|
23 |
each grid point of the WRF domain the corresponding longitude and latitude. This forward transfoation fields are written as LON and LAT to wrfmap.nc. For the
|
24 |
reverse transformation, two additional fields X and Y arxe calculated and written, which give for each possible longitude/latitude the corresponding grid point (x/y) in the WRF domain. The optional second argument specifies whether the longitudes are given as -180...+180 (dateline, default) or as 0...360 (greenwich). The selection of the anglemode allows to handle regions which cover the either the Greenwich meridian or the dateline meridian.
|
24 |
reverse transformation, two additional fields X and Y arxe calculated and written, which give for each possible longitude/latitude the corresponding grid point (x/y) in the WRF domain. The optional second argument specifies whether the longitudes are given as -180...+180 (dateline, default) or as 0...360 (greenwich). The selection of the anglemode allows to handle regions which cover the either the Greenwich meridian or the dateline meridian.
|
25 |
.TP 15
|
25 |
.TP 15
|
26 |
.I -ll2xy [ lon lat | inpfile outfile ]
|
26 |
.I -ll2xy [ lon lat | inpfile outfile ]
|
27 |
write the x/y coordinates for either the single position lon/lat to screen, or for all coordinates on the input file 'inpfile' to 'outfile'. The input and output file can be trajectory files, in which case the column headers are accordingly adapted to x/y or lon/lat.
|
27 |
write the x/y coordinates for either the single position lon/lat to screen, or for all coordinates on the input file 'inpfile' to 'outfile'. The input and output file can be trajectory files, in which case the column headers are accordingly adapted to x/y or lon/lat.
|
28 |
.TP 15
|
28 |
.TP 15
|
29 |
.I -xy2ll [ x y | inpfile outfile ]
|
29 |
.I -xy2ll [ x y | inpfile outfile ]
|
30 |
write the lon/lat coordinates for either the single position x/y to screen, or for all coordinates on the input file 'inpfile' to 'outfile'. The input and output file can be trajectory files, in which case the column headers are accordingly adapted to x/y or lon/lat.
|
30 |
write the lon/lat coordinates for either the single position x/y to screen, or for all coordinates on the input file 'inpfile' to 'outfile'. The input and output file can be trajectory files, in which case the column headers are accordingly adapted to x/y or lon/lat.
|
31 |
.TP 15
|
31 |
.TP 15
|
32 |
.I -p2z [ x y p | inpfile outfile ]
|
32 |
.I -p2z [ x y p | inpfile outfile ]
|
33 |
convert from pressure (p) to geopotential height (z). If a single coordinate tupel (x,y,p) is given, the corresponding (x,y,z) tupel is written to screen; otherwise all coordinates in the input file (inpfile) will be converted and written to the output file (outfile). Note, the horizontal coordinates must be provided as grid indices (see option -ll2xy).
|
33 |
convert from pressure (p) to geopotential height (z). If a single coordinate tupel (x,y,p) is given, the corresponding (x,y,z) tupel is written to screen; otherwise all coordinates in the input file (inpfile) will be converted and written to the output file (outfile). Note, the horizontal coordinates must be provided as grid indices (see option -ll2xy).
|
34 |
.TP 15
|
34 |
.TP 15
|
35 |
.I -z2p [ x y z | inpfile outfile ]
|
35 |
.I -z2p [ x y z | inpfile outfile ]
|
36 |
convert from geopotential height (z) to pressure (p). If a single coordinate tupel (x,y,z) is given, the corresponding (x,y,p) tupel is written to screen; otherwise all coordinates in the input file (inpfile) will be converted and written to the output file (outfile). Note, the horizontal coordinates must be provided as grid indices (see option -ll2xy).
|
36 |
convert from geopotential height (z) to pressure (p). If a single coordinate tupel (x,y,z) is given, the corresponding (x,y,p) tupel is written to screen; otherwise all coordinates in the input file (inpfile) will be converted and written to the output file (outfile). Note, the horizontal coordinates must be provided as grid indices (see option -ll2xy).
|
37 |
.SH EXAMPLES
|
37 |
.SH EXAMPLES
|
38 |
.TP 5
|
38 |
.TP 5
|
39 |
.B [1] wrfmap -create wrfout_d01_2011-08-26_12:00:00
|
39 |
.B [1] wrfmap -create wrfout_d01_2011-08-26_12:00:00
|
40 |
Take the netCDF file 'wrfout_d01_2011-08-26_12:00:00' from WRF and write the forward and backward mapping fields to netCDF file 'wrfmap.nc'
|
40 |
Take the netCDF file 'wrfout_d01_2011-08-26_12:00:00' from WRF and write the forward and backward mapping fields to netCDF file 'wrfmap.nc'
|
41 |
.TP 5
|
41 |
.TP 5
|
42 |
.B [2] wrfmap -ll2xy -70 56
|
42 |
.B [2] wrfmap -ll2xy -70 56
|
43 |
Get the grid indices for (lon=-70/lat=56) and write them to screen.
|
43 |
Get the grid indices for (lon=-70/lat=56) and write them to screen.
|
44 |
.TP 5
|
44 |
.TP 5
|
45 |
.B [3] wrfmap -xy2ll traj.1 traj.1
|
45 |
.B [3] wrfmap -xy2ll traj.1 traj.1
|
46 |
Take the trajectory file 'traj.1' and convert all grid coordinates x/y into lon/lat coordinates. The output will overwrite the input file.
|
46 |
Take the trajectory file 'traj.1' and convert all grid coordinates x/y into lon/lat coordinates. The output will overwrite the input file.
|
47 |
.SH AUTHOR
|
47 |
.SH AUTHOR
|
48 |
Written by Michael Sprenger and Heini Wernli (January 2013)
|
48 |
Written by Michael Sprenger and Heini Wernli (January 2013)
|