easyclimate

Easy access to high-resolution daily climate data for Europe

https://github.com/verughub/easyclimate

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 8 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.5%) to scientific vocabulary

Keywords

climate-data europe r-package
Last synced: 6 months ago · JSON representation

Repository

Easy access to high-resolution daily climate data for Europe

Basic Info
Statistics
  • Stars: 48
  • Watchers: 8
  • Forks: 1
  • Open Issues: 9
  • Releases: 1
Topics
climate-data europe r-package
Created over 6 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
library(knitr)
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  cache = TRUE
)

```


# `easyclimate` 

# Easy access to high-resolution daily climate data for Europe



`r badger::badge_cran_release()`
![](https://img.shields.io/github/r-package/v/VeruGHub/easyclimate)
The diffify page for the R package easyclimate
[![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)
[![HitCount since 2022-10-27](https://hits.dwyl.com/VeruGHub/easyclimate.svg?style=flat-square)](https://hits.dwyl.com/VeruGHub/easyclimate)
[![HitCount: unique users since 2022-10-27](https://hits.dwyl.com/VeruGHub/easyclimate.svg?style=flat-square&show=unique)](https://hits.dwyl.com/VeruGHub/easyclimate)
[![](https://cranlogs.r-pkg.org/badges/grand-total/easyclimate)](https://cran.r-project.org/package=easyclimate)



Get 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.

This climatic dataset was originally built by [A. Moreno & H. Hasenauer](https://doi.org/10.1002/joc.4436) and further developed by W. Rammer, C. Pucher & 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).

In 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 () 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/).

For 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/).

## Installation

Stable version from CRAN:

``` r
install.packages("easyclimate")
```

Development version from GitHub:
``` r
# install.packages("remotes")
remotes::install_github("VeruGHub/easyclimate")
```

## Examples

### Obtain a data frame of climatic values

To obtain a data frame of daily climatic values for point coordinates:

```{r example, message = FALSE}
library(easyclimate)

coords <- data.frame(lon = -5.36, lat = 37.40)

prec <- get_daily_climate(coords, 
                          period = "2001-01-01:2001-01-03", 
                          climatic_var = "Prcp",
                          version = 4) # default
```

```{r echo=FALSE}
kable(prec)
```


### Obtain a raster of climatic values To obtain a (multi-layer) raster of daily climatic values for an area: ```{r message=FALSE, fig.width = 8, fig.height = 3} library(terra) ## Download the polygon contour of a region sobrarbe <- mapSpain::esp_get_comarca(comarca = "Sobrarbe") ## Coordinates must be in lonlat sobrarbe <- project(vect(sobrarbe), "EPSG:4326") ## Download Tmax values for that region between 1st and 3rd May 2020 sobrarbetemp <- get_daily_climate( coords = sobrarbe, climatic_var = "Tmax", period = "2020-05-01:2020-05-03", output = "raster" ) ``` The output (`sobrarbetemp`) is a SpatRaster with 3 layers (for each of 3 days): ```{r} sobrarbetemp ``` Let's make a map. First using terra: ```{r map_terra, eval=FALSE} plot(sobrarbetemp, col = rev(RColorBrewer::brewer.pal(9, "RdYlBu")), smooth = TRUE, nc = 3) ``` ![](man/figures/README-map_terra.png) Now using ggplot2 and tidyterra: ```{r map_ggplot, message=FALSE, fig.width = 8, fig.height = 3} library(ggplot2) library(tidyterra) ggplot() + geom_spatraster(data = sobrarbetemp) + facet_wrap(~lyr, ncol = 3) + scale_fill_distiller(palette = "RdYlBu", na.value = "transparent") + geom_spatvector(data = sobrarbe, fill = NA) + labs(fill = "Maximum\ntemperature (ºC)") + scale_x_continuous(breaks = c(-0.25, 0, 0.25)) + scale_y_continuous(breaks = seq(42.2, 42.8, by = 0.2)) + theme_minimal() ```
Visit the articles of the [package website](https://verughub.github.io/easyclimate/) for more extended tutorials!
## CITATION If you use easyclimate, please cite both the appropriate data source and the package as: ```{r echo=FALSE, results='asis', cache = FALSE} print(citation("easyclimate"), style = "text") ```

Owner

  • Name: Verónica Cruz-Alonso
  • Login: VeruGHub
  • Kind: user
  • Company: @HarvardUniversity

GitHub Events

Total
  • Issues event: 10
  • Watch event: 2
  • Member event: 1
  • Issue comment event: 3
  • Push event: 15
Last Year
  • Issues event: 10
  • Watch event: 2
  • Member event: 1
  • Issue comment event: 3
  • Push event: 15

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 205
  • Total Committers: 5
  • Avg Commits per committer: 41.0
  • Development Distribution Score (DDS): 0.356
Past Year
  • Commits: 11
  • Committers: 2
  • Avg Commits per committer: 5.5
  • Development Distribution Score (DDS): 0.455
Top Committers
Name Email Commits
Pakillo f****c@g****m 132
VeruGHub v****z@u****s 47
VeruGHub v****u@h****m 21
Paloma p****o@g****m 3
Julen Astigarraga j****a@g****m 2
Committer Domains (Top 20 + Academic)
uah.es: 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 48
  • Total pull requests: 3
  • Average time to close issues: 6 months
  • Average time to close pull requests: 10 days
  • Total issue authors: 6
  • Total pull request authors: 1
  • Average comments per issue: 2.29
  • Average comments per pull request: 0.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 4
  • Pull requests: 0
  • Average time to close issues: 5 months
  • Average time to close pull requests: N/A
  • Issue authors: 3
  • Pull request authors: 0
  • Average comments per issue: 0.75
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • VeruGHub (24)
  • Pakillo (19)
  • wiesehahn (1)
  • kun-ecology (1)
  • PythonCoderUnicorn (1)
  • Julenasti (1)
Pull Request Authors
  • Pakillo (3)
Top Labels
Issue Labels
enhancement (6) documentation (1)
Pull Request Labels

Packages

  • Total packages: 3
  • Total downloads:
    • cran 153 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 0
    (may contain duplicates)
  • Total versions: 4
  • Total maintainers: 1
proxy.golang.org: github.com/VeruGHub/easyclimate
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 6 months ago
proxy.golang.org: github.com/verughub/easyclimate
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 6 months ago
cran.r-project.org: easyclimate

Easy Access to High-Resolution Daily Climate Data for Europe

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 153 Last month
Rankings
Stargazers count: 8.2%
Forks count: 17.4%
Dependent packages count: 28.4%
Average: 29.0%
Dependent repos count: 36.9%
Downloads: 54.3%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • RCurl * imports
  • stats * imports
  • terra >= 1.2 imports
  • ClimInd * suggests
  • dplyr * suggests
  • ggplot2 * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • sf * suggests
  • testthat >= 3.0.0 suggests
  • tidyr * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite