{"id":13948879,"url":"https://github.com/VeruGHub/easyclimate","last_synced_at":"2025-07-20T10:32:55.263Z","repository":{"id":44762686,"uuid":"220437812","full_name":"VeruGHub/easyclimate","owner":"VeruGHub","description":"Easy access to high-resolution daily climate data for Europe","archived":false,"fork":false,"pushed_at":"2025-04-30T09:45:55.000Z","size":55978,"stargazers_count":48,"open_issues_count":8,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-25T19:40:26.053Z","etag":null,"topics":["climate-data","europe","r-package"],"latest_commit_sha":null,"homepage":"https://verughub.github.io/easyclimate/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VeruGHub.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","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":null,"zenodo":null}},"created_at":"2019-11-08T09:56:39.000Z","updated_at":"2024-11-27T09:16:59.000Z","dependencies_parsed_at":"2023-12-19T12:07:23.180Z","dependency_job_id":"c147de3a-e4d7-4f41-985f-ce5e9aa6361f","html_url":"https://github.com/VeruGHub/easyclimate","commit_stats":{"total_commits":205,"total_committers":5,"mean_commits":41.0,"dds":"0.35609756097560974","last_synced_commit":"e899cd329c21f6600cc123ecb50311c62c8e2741"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/VeruGHub/easyclimate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeruGHub%2Feasyclimate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeruGHub%2Feasyclimate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeruGHub%2Feasyclimate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeruGHub%2Feasyclimate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VeruGHub","download_url":"https://codeload.github.com/VeruGHub/easyclimate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeruGHub%2Feasyclimate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262857264,"owners_count":23375490,"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":["climate-data","europe","r-package"],"created_at":"2024-08-08T05:01:33.295Z","updated_at":"2025-07-20T10:32:55.235Z","avatar_url":"https://github.com/VeruGHub.png","language":"R","funding_links":[],"categories":["Climate Change"],"sub_categories":["Climate Data Access and Visualization"],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nlibrary(knitr)\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  cache = TRUE\n)\n\n```\n\n\n# `easyclimate` \u003ca href='https://verughub.github.io/easyclimate/'\u003e\u003cimg src=\"man/figures/easyclimate_logo_small.png\" align=\"right\" height=\"139\"/\u003e\u003c/a\u003e\n\n# Easy access to high-resolution daily climate data for Europe\n\n\u003c!-- badges: start --\u003e\n\n`r badger::badge_cran_release()`\n![](https://img.shields.io/github/r-package/v/VeruGHub/easyclimate)\n\u003ca href=\"https://diffify.com/R/easyclimate\" target=\"_blank\"\u003e\u003cimg src=\"https://diffify.com/diffify-badge.svg\" alt=\"The diffify page for the R package easyclimate\" style=\"width: 100px; max-width: 100%;\"\u003e\u003c/a\u003e\n[![Project Status: Active -- The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) [![R-CMD-check](https://github.com/VeruGHub/easyclimate/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/VeruGHub/easyclimate/actions/workflows/R-CMD-check.yaml)\n[![HitCount since 2022-10-27](https://hits.dwyl.com/VeruGHub/easyclimate.svg?style=flat-square)](https://hits.dwyl.com/VeruGHub/easyclimate)\n[![HitCount: unique users since 2022-10-27](https://hits.dwyl.com/VeruGHub/easyclimate.svg?style=flat-square\u0026show=unique)](https://hits.dwyl.com/VeruGHub/easyclimate)\n[![](https://cranlogs.r-pkg.org/badges/grand-total/easyclimate)](https://cran.r-project.org/package=easyclimate)\n\n\u003c!-- badges: end --\u003e\n\nGet high-resolution (1 km) daily climate data (precipitation, minimum and maximum temperatures) for Europe from the European climatic database hosted at [University of Natural Resources and Life Sciences, Vienna, Austria](https://boku.ac.at/en/wabo/waldbau/wir-ueber-uns/daten). Data are currently available from 1950 to 2022.\n\nThis climatic dataset was originally built by [A. Moreno \u0026 H. Hasenauer](https://doi.org/10.1002/joc.4436) and further developed by W. Rammer, C. Pucher \u0026 M. Neumann (see [this document](https://github.com/VeruGHub/easyclimate/blob/master/inst/Description_Evaluation_Validation_Downscaled_Climate_Data_v2.pdf) for more details on the development and characteristics of the climatic dataset, and [this document](https://doi.org/10.6084/m9.figshare.22962671.v1) for the updates of the last version - v4).\n\nIn this R package we implemented [Cloud-Optimised Geotiffs](http://cogeo.org/) so that we can obtain daily climate data for thousands of sites/days within seconds/minutes, without having to download huge rasters. But if you need to obtain data for large areas, please download the rasters from the FTP server (\u003cftp://palantir.boku.ac.at/Public/ClimateData/\u003e) and extract the values locally rather than using this package, so as not to saturate the file server. For that, you may use a FTP client such as [FileZilla](https://filezilla-project.org/).\n\nFor a detailed description of {easyclimate}, please read [this paper](https://doi.org/10.1016/j.envsoft.2023.105627) (open access version [here](https://doi.org/10.32942/osf.io/mc8uj)) or visit the package [website](https://verughub.github.io/easyclimate/).\n\n## Installation\n\nStable version from CRAN:\n\n``` r\ninstall.packages(\"easyclimate\")\n```\n\nDevelopment version from GitHub:\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"VeruGHub/easyclimate\")\n```\n\n## Examples\n\n### Obtain a data frame of climatic values\n\nTo obtain a data frame of daily climatic values for point coordinates:\n\n```{r example, message = FALSE}\nlibrary(easyclimate)\n\ncoords \u003c- data.frame(lon = -5.36, lat = 37.40)\n\nprec \u003c- get_daily_climate(coords, \n                          period = \"2001-01-01:2001-01-03\", \n                          climatic_var = \"Prcp\",\n                          version = 4) # default\n```\n\n```{r echo=FALSE}\nkable(prec)\n```\n\n\u003cbr\u003e\n\n### Obtain a raster of climatic values\n\nTo obtain a (multi-layer) raster of daily climatic values for an area:\n\n```{r message=FALSE, fig.width = 8, fig.height = 3}\nlibrary(terra)\n\n## Download the polygon contour of a region\nsobrarbe \u003c- mapSpain::esp_get_comarca(comarca = \"Sobrarbe\")\n\n## Coordinates must be in lonlat \nsobrarbe \u003c- project(vect(sobrarbe), \"EPSG:4326\")\n\n## Download Tmax values for that region between 1st and 3rd May 2020\nsobrarbetemp \u003c- get_daily_climate(\n  coords = sobrarbe,\n  climatic_var = \"Tmax\",\n  period = \"2020-05-01:2020-05-03\",\n  output = \"raster\"\n)\n```\n\nThe output (`sobrarbetemp`) is a SpatRaster with 3 layers (for each of 3 days):\n\n```{r}\nsobrarbetemp\n```\n\nLet's make a map. First using terra:\n\n```{r map_terra, eval=FALSE}\nplot(sobrarbetemp, col = rev(RColorBrewer::brewer.pal(9, \"RdYlBu\")), \n     smooth = TRUE, nc = 3)\n```\n\n![](man/figures/README-map_terra.png)\n\nNow using ggplot2 and tidyterra:\n\n```{r map_ggplot, message=FALSE, fig.width = 8, fig.height = 3}\nlibrary(ggplot2)\nlibrary(tidyterra)\n\nggplot() +\n  geom_spatraster(data = sobrarbetemp) +\n  facet_wrap(~lyr, ncol = 3) +\n  scale_fill_distiller(palette = \"RdYlBu\", na.value = \"transparent\") +\n  geom_spatvector(data = sobrarbe, fill = NA) +\n  labs(fill = \"Maximum\\ntemperature (ºC)\") +\n  scale_x_continuous(breaks = c(-0.25, 0, 0.25)) +\n  scale_y_continuous(breaks = seq(42.2, 42.8, by = 0.2)) +\n  theme_minimal()\n```\n\n\u003cbr\u003e Visit the articles of the [package website](https://verughub.github.io/easyclimate/) for more extended tutorials!\n\n\u003cbr\u003e\n\n## CITATION\n\nIf you use easyclimate, please cite both the appropriate data source and the package as:\n\n```{r echo=FALSE, results='asis', cache = FALSE}\nprint(citation(\"easyclimate\"), style = \"text\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVeruGHub%2Feasyclimate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVeruGHub%2Feasyclimate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVeruGHub%2Feasyclimate/lists"}