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
.
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
Hashes for get_metars-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ab490c4bfa3bd33d2a358e9cdced49fb19c022a8b2a4772e6e38495ca4f1e8b |
|
MD5 | fd2343d9b7b21895de0433aaa644cda3 |
|
BLAKE2b-256 | 51080c9842a94e616f6ac864cbbb1610b7e0648490e12d39ffcef1869c1c2dc2 |