https://github.com/prcwiek/pmetar
Processing METAR weather reports package
https://github.com/prcwiek/pmetar
airports aviation-weather historical-metar-reports metar metar-decoder
Last synced: 3 months ago
JSON representation
Processing METAR weather reports package
- Host: GitHub
- URL: https://github.com/prcwiek/pmetar
- Owner: prcwiek
- License: gpl-3.0
- Created: 2017-11-27T20:13:37.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2026-01-14T19:35:16.000Z (5 months ago)
- Last Synced: 2026-01-14T22:52:44.677Z (5 months ago)
- Topics: airports, aviation-weather, historical-metar-reports, metar, metar-decoder
- Language: R
- Homepage:
- Size: 10.4 MB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
pmetar
======
```{r echo=FALSE}
knitr::opts_chunk$set(
warning = FALSE,
message = FALSE,
collapse = TRUE,
comment = "#>"
)
```
[](https://cran.r-project.org/package=pmetar)
[](https://cran.r-project.org/web/checks/check_results_pmetar.html)
[](https://github.com/prcwiek/pmetar/actions/workflows/R-CMD-check.yaml)
[](https://www.repostatus.org/#active)


Package allows to download current and historical METAR weather reports and decode basic parameters.
### METAR weather reports source web pages
The main functions scrap data from the below web pages:
1. For current reports, the function *metar_get*:
* Aviation Weather Center https://aviationweather.gov/data/metar/
2. For historical reports, the function *metar_get_historical*:
* Iowa Environmental Mesonet web page of Iowa State University
ASOS-AWOS-METAR http://mesonet.agron.iastate.edu/AWOS/
* Weather Information Service http://www.ogimet.com/ developed by Guillermo Ballester Valor
Please take into consideration that the http://www.ogimet.com/ can block too frequent requests for data due to the server overload.
### Locations of METAR stations
Information about the locations of the METAR stations / ariports were taken from two sources:
1. The first choice is the file from https://ourairports.com/data/ created by David Megginson.
2. If information can't be found, the second source is searched, the ADDS Station Table prepared by Greg Thompson NCAR/RAP. The file is available on the web page of Aviation Weather Center https://weather.ral.ucar.edu/surface/stations.txt
from NOAA National Weather Service https://www.weather.gov/
The both above data sources are in the public domain.
#### Package pmetar is for extracting and parsing information, from current or historical METAR reports, only.
#### Don't use it for flight planning or navigation!
### Installation
CRAN version
```{r eval=FALSE}
install.packages("pmetar")
```
Get the development version from github:
```{r eval=FALSE}
# install.packages("devtools")
devtools::install_github("prcwiek/pmetar", ref = "develop")
```
```{r}
library('pmetar')
```
## Contributors
* David Megginson, Author of data set with airports list https://ourairports.com/data/
* Greg Thompson, Author of data set with airports list https://weather.ral.ucar.edu/surface/stations.txt