{"id":20850653,"url":"https://github.com/atsyplenkov/rp5pik","last_synced_at":"2026-04-25T19:31:55.227Z","repository":{"id":160436967,"uuid":"598822800","full_name":"atsyplenkov/rp5pik","owner":"atsyplenkov","description":"Download And Preprocess Russian Meteorological Data","archived":false,"fork":false,"pushed_at":"2023-06-28T11:36:37.000Z","size":2575,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-07T18:12:06.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atsyplenkov.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json"}},"created_at":"2023-02-07T21:52:25.000Z","updated_at":"2023-07-08T23:44:34.000Z","dependencies_parsed_at":"2023-06-28T21:46:16.995Z","dependency_job_id":null,"html_url":"https://github.com/atsyplenkov/rp5pik","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsyplenkov%2Frp5pik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsyplenkov%2Frp5pik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsyplenkov%2Frp5pik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsyplenkov%2Frp5pik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atsyplenkov","download_url":"https://codeload.github.com/atsyplenkov/rp5pik/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243216314,"owners_count":20255352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T03:10:50.870Z","updated_at":"2025-12-11T19:14:29.135Z","avatar_url":"https://github.com/atsyplenkov.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\neditor_options: \n  chunk_output_type: inline\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n\nSys.setlocale(category = \"LC_TIME\", locale = \"en_us\")\n```\n\n# rp5pik \u003cimg src=\"man/figures/rp5pik_logo.png\" align=\"right\" height=\"139\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8090329.svg)](https://doi.org/10.5281/zenodo.8090329)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n[![pkgcheck](https://github.com/atsyplenkov/rp5pik/workflows/pkgcheck/badge.svg)](https://github.com/atsyplenkov/rp5pik/actions?query=workflow%3Apkgcheck)\n[![CRAN status](https://www.r-pkg.org/badges/version/rp5pik)](https://CRAN.R-project.org/package=rp5pik)\n![GitHub R package version](https://img.shields.io/github/r-package/v/atsyplenkov/rp5pik?label=github)\n![GitHub last commit](https://img.shields.io/github/last-commit/atsyplenkov/rp5pik)\n\u003c!-- badges: end --\u003e\n\nThe `rp5pik` package provides a set of functions to download and preprocess meteorological data from http://www.pogodaiklimat.ru/\n\n## Installation\n\nYou can install the development version of rp5pik from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"atsyplenkov/rp5pik\")\n\n# OR\n\n# install.packages(\"remotes\")\nremotes::install_github(\"atsyplenkov/rp5pik\")\n```\n\n## Examples\n### 1. Data download \n\nBelow is an example for `rp_parse_pik` functions. It allows you to download meteo data at **3-hour** temporal resolution for various stations using their WMO ID from [http://www.pogodaiklimat.ru/](http://www.pogodaiklimat.ru/):\n\n```{r example}\nlibrary(rp5pik)\n\nexample \u003c-\n  rp_parse_pik(\n    wmo_id = c(\"20069\", \"27524\"),\n    start_date = \"2022-05-01\",\n    end_date = \"2022-05-31\"\n  )\n\nexample\n```\n\nList of available variables:\n\n- `wmo`\ncharacter. WMO index of the meteostation\n\n- `datetime_utc`\nPOSIXct. Date and Time of the measurement at UTC\n\n- `ta`\nnumeric. Air temperature at 2m above the surface, °C\n\n- `td`\nnumeric. Dew point, °C\n\n- `rh`\nnumeric. Relative humidity at 2m above the surface, %\n\n- `ps`\nnumeric. Atmosphere pressure at meteostation, hPa\n\n- `psl`\nnumeric. Atmosphere pressure adjusted to the height of mean sea level, hPa\n\n- `prec`\nnumeric. Cumulative precipitation for the last 12 hours, mm\n\n- `windd`\ninteger. Wind direction, deg\n\n- `winds_mean`\nnumeric. Average 10-min wind speed, m/s\n\n- `winds_max`\nnumeric. Maximum wind speed, m/s\n\nWe can visualize the `example` dataset using `ggplot2` as follows:\n```{r plot, fig.align='center', dpi=1000, fig.width=7, fig.height=5, out.width='80%'}\nlibrary(ggplot2)\n\nexample |\u003e \n  ggplot(\n    aes(\n      x = datetime_utc,\n      y = ta,\n      group = wmo\n    )\n  ) +\n  geom_line(aes(color = wmo)) +\n  labs(\n    x = \"\",\n    y = \"Average Temperature, °C\"\n  ) +\n  theme_minimal()\n\n```\n\n### 2. Data preprocessing\nSince the downloaded with `rp_parse_pik` data contains raw data, it requires additional checking and cleaning. We suggest to explore the raw dataset by yourselves before any further manipulations.\n\nHowever, the `rp5pik` package has a function to aggregate raw data on daily (`24h`) or semi-daily (`12h`) periods. The `rp_aggregate_pik` function removes known error codes from precipitation data (`699` values). Additionally, it calculates daily precipitation sums based on measured precipitation at 06 UTC and 18 UTC in European part of Russia (see [meteostation manuals for more info](https://method.meteorf.ru/ansambl/pojasnenijaansambl.html)). \n\n⚠ As of `r Sys.Date()` this function  works only with Moscow timezone.\n\nThis is how you can aggregate data daily:\n```{r aggregate, message=FALSE, warning=FALSE}\nlibrary(dplyr)\n\nexample_daily \u003c- \n  example |\u003e \n  rp_aggregate_pik(.period = \"24h\") |\u003e \n  group_split(wmo)\n\nexample_daily\n\n```\n\nOr semi-daily:\n\n```{r aggregate_12, message=FALSE, warning=FALSE}\nlibrary(dplyr)\n\nexample_12h \u003c- \n  example |\u003e \n  rp_aggregate_pik(.period = \"12h\", .tz = \"Europe/Moscow\") |\u003e \n  group_split(wmo)\n\nexample_12h\n\n```\n\n\n## Roadmap\n```\nrp5pik 📦\n├── Parser functions for\n│   ├── pogodaiklimat\n│   │   ├── rp5pik::rp_parse_pik ✅\n│   │   └── rp5pik::rp_aggregate_pik ✅\n│   ├── rp5 🔲\n│   └── gmvo.skniivh 🔲\n├── WMO stations coordinates  🔲\n└── Rain/Snow guessing  \n    └── rp5pik::rp_get_temp50 ✅\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatsyplenkov%2Frp5pik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatsyplenkov%2Frp5pik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatsyplenkov%2Frp5pik/lists"}