Debian Codegraph @

metar/__init__.py

raw symbols SCIP
1 # Copyright (c) 2004,2018 Python-Metar Developers.
2 # Distributed under the terms of the BSD 2-Clause License.
3 # SPDX-License-Identifier: BSD-2-Clause
4 """A python package for interpreting METAR and SPECI weather reports.
5
6 US conventions for METAR/SPECI reports are described in chapter 12 of
7 the Federal Meteorological Handbook No.1. (FMH-1 1995), issued by NOAA.
8 See http://www.ofcm.gov/publications/fmh/FMH1/FMH1.pdf
9
10 International conventions for the METAR and SPECI codes are specified in
11 the WMO Manual on Codes, vol I.1, Part A (WMO-306 I.i.A).
12
13 This module handles a reports that follow the US conventions, as well
14 the more general encodings in the WMO spec. Other regional conventions
15 are not supported at present.
16
17 The current METAR report for a given station is available at the URL
18 http://weather.noaa.gov/pub/data/observations/metar/stations/<station>.TXT
19 where <station> is the four-letter ICAO station code.
20
21 The METAR reports for all reporting stations for any "cycle" (i.e., hour)
22 in the last 24 hours is available in a single file at the URL
23 https://tgftp.nws.noaa.gov/data/observations/metar/cycles/<cycle>Z.TXT
24 where <cycle> is a 2-digit cycle number (e.g., "00", "05" or "23").
25 """
26
27 __author__ = "Tom Pollard"
28
29 __email__ = "[email protected]"
30
31 __version__ = "0.0.0" # Default
32 try:
33 # Exists after installation via scm write_to
34 from ._version import version as __version__
35 except ImportError:
36 from importlib.metadata import version, PackageNotFoundError
37 try:
38 __version__ = version("metar")
39 except PackageNotFoundError:
40 pass
41
42 __doc__ = """metar v%s (c) 2009, %s
43
44 Metar is a python package that interprets coded METAR and SPECI weather reports.
45
46 Please e-mail bug reports to: %s""" % (
47 __version__,
48 __author__,
49 __email__,
50 )
51
52 __LICENSE__ = (
53 """
54 Copyright (c) 2009, %s
55 All rights reserved.
56
57 Redistribution and use in source and binary forms, with or without
58 modification, are permitted provided that the following conditions are met:
59
60 Redistributions of source code must retain the above copyright notice,
61 this list of conditions and the following disclaimer.
62
63 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
64 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
65 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
66 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
67 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
68 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
69 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
70 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
71 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
72 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
73 POSSIBILITY OF SUCH DAMAGE.
74 """
75 % __author__
76 )