Simple command line tool to download METAR's and TAF's for a given station and store them in text files.
Project description
get-metars
Simple command line tool to download METAR's and TAF's for a given station and store them in text files.
Requirements
This package requires:
Python because it was developed on that version.
Installation
For install only run this command from your terminal
pip install get-metars
Update
Update with pip
adding the option --upgrade
pip install --upgrade get-metars
Examples
The data are downloaded from Ogimet.com, so be nice and don't saturate the server. This site only accepts requests of data of 31 days or less at a time.
To download data for a specific month (i.e. january 2022) of JFK INT. Airport only run
get-metars kjfk --init 2022-01-01
The program will understand that you want all data of the month.
If you need only the METAR's run
get-metars kjfk --init 2022-01-01 --type SA
where SA
means METAR
type of aeronautical report. Type get-metars --help
to see all
the available options.
If you need a specific time of period you need to give the initial and final datetimes, as follows
get-metars kjfk --init 2021-12-05T01:00:00 --final 2021-12-10T22:30:00 --type SP
where SP
means SPECI
type of aeronautical reports.
To standarize the reports for TAF-VER verification program add the flag --sanitize
or -s
.
To make the program store the reports in one line add the flag --one-line
or -o
.
By default, reports are written to the file with the datetime prefix with format %Y%m%d%H%M
. If you
want to remove that prefix add the flag --no-datetime-prefix
.
So that's it. Simple no? Have a happy coding :D
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file get_metars-0.5.1.tar.gz
.
File metadata
- Download URL: get_metars-0.5.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0402414432f0307b4879ea6715336405fc8cc42086a34d125ee3ba621f4c7640 |
|
MD5 | 3aebc58b939e5e53f294f07a1120b24a |
|
BLAKE2b-256 | 9b21976c9b960315587238c431d232e71f0faba7ee88b1228424ac273d0eac9e |
File details
Details for the file get_metars-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: get_metars-0.5.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f14c01564e4fcb96e390a12e0aa14aedafd479e58383f1f9c10f038d219364c |
|
MD5 | bd3b6ce1af86be97005463e0de68f0bb |
|
BLAKE2b-256 | b73b5465137f67899bc974f86307d16d9289c119bafb64bf04ee700e02d1d130 |