Debian Codegraph @

man/man1/metar.1

raw
1 .\" Copyright (C) 2017 Alessandro Menti
2 .\"
3 .\" This program is free software; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License
5 .\" as published by the Free Software Foundation; either version 2
6 .\" of the License, or (at your option) any later version.
7 .\"
8 .\" This program is distributed in the hope that it will be useful,
9 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
10 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 .\" GNU General Public License for more details.
12 .\"
13 .\" You should have received a copy of the GNU General Public License
14 .\" along with this program; if not, write to the Free Software
15 .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 .\" Or try here: http://www.fsf.org/copyleft/gpl.html
17 .\"
18 .TH METAR 1 2017-06-25 FlightGear "FlightGear man pages"
19 .SH NAME
20 metar \- demo METAR utility for FlightGear
21 .SH SYNOPSIS
22 \fBmetar\fR \fB\-h\fR | \fB\-\-help\fR | [\fB\-v\fR | \fB\-\-verbose\fR]
23 [\fB\-e\fR \fIelevation\fR | \fB\-\-elevation\fR \fIelevation\fR] [\fB\-r\fR |
24 \fB\-\-report\fR | \fB\-c\fR | \fB\-\-command\-line\fR] \fI<list of ICAO airport
25 IDs or METAR strings>\fR
26 .SH DESCRIPTION
27 .B metar
28 is a demo utility for FlightGear that retrieves a METAR (encoded weather
29 information) for one or more given airports from the Internet and displays it
30 in a user-readable form. Optionally, it can also print the command-line
31 arguments required to start
32 .BR fgfs (1)
33 at the current time and with the weather conditions in effect.
34 .SH OPTIONS
35 .TP
36 \fB\-h\fR, \fB\-\-help\fR
37 Display usage information and exit.
38 .TP
39 \fB\-v\fR, \fB\-\-verbose\fR
40 Display debugging information while performing the required operation.
41 .TP
42 \fB\-e\fR \fIelevation\fR, \fB\-\-elevation\fR \fIelevation\fR
43 Set the airport elevation to \fIelevation\fR meters.
44 .TP
45 \fB\-r\fR, \fB\-\-report\fR
46 Print the weather information on the screen in a user-readable form.
47 .TP
48 \fB\-c\fR, \fB\-\-command\-line\fR
49 Print the command-line arguments required to start FlightGear at the current
50 time and with the weather conditions in effect.
51 .SH "EXIT STATUS"
52 .B metar
53 exits with
54 .B 0
55 on success, with
56 .B 1
57 if the syntax of the command-line arguments is wrong or an error occurs.
58 .SH ENVIRONMENT
59 .IP "\fBHTTP_PROXY\fR" 4
60 Specifies the HTTP proxy to use. Must be in the form
61 \fBhttp://host:port/\fR.
62 .SH EXAMPLE
63 Print the current weather information for KSFO and KOAK:
64
65 $ \fBmetar KSFO KOAK\fR
66
67 Print the current weather information for KSFO, as well as the command line
68 arguments required to start FlightGear with the weather conditions in effect:
69
70 $ \fBmetar -c KSFO -r KSFO\fR
71
72 Print the given METAR string as a user-readable weather report:
73
74 $ \fBmetar "LOWL 161500Z 19004KT 160V240 9999 FEW035 SCT300 29/23 Q1006 NOSIG"\fR
75 .SH "SEE ALSO"
76 .BR fgfs (1),
77 .UR http://\:wiki.flightgear.org/\:Weather_reports
78 the FlightGear wiki "Weather reports" page
79 .UE