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
Release files for get-metars 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| get_metars-0.6.2.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| get_metars-0.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / get_metars-0.6.2.tar.gz
| Download URL | get_metars-0.6.2.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afb445cedbf8da210763f7a5133f191184d8a1aa71b35856ddbd4c7cb7c471fa
|
|
BLAKE2b-256 checksum How to use checksums |
58ed8602537158b0d33a386bc0b879c09692274ea551016106fc1e40a3aa9825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.24 Linux/6.11.0-1018-azure
|
Release files / get_metars-0.6.2-py3-none-any.whl
| Download URL | get_metars-0.6.2-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12e248fff0aa1117d8af08bf0e232e268b6ced1bf429631e683d49eb58306422
|
|
BLAKE2b-256 checksum How to use checksums |
15a3d5097e5f94533e524ea1ffee968cb9fb73c3bcc21b468a6e523807ff8106
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.24 Linux/6.11.0-1018-azure
|