A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

KrigR

An R Package for downloading, preprocessing, and statistical downscaling of the European ERA5 dataset.
https://github.com/ErikKusch/KrigR

Category: Climate Change
Sub Category: Climate Downscaling

Last synced: about 8 hours ago
JSON representation

Repository metadata

An R Package for downloading, preprocessing, and statistical downscaling of the European Centre for Medium-range Weather Forecasts ReAnalysis 5 (ERA5) family provided by the European Centre for Medium‐Range Weather Forecasts (ECMWF).

README.md

KrigR

An R Package for downloading, preprocessing, and statistical downscaling of the European Centre for Medium-range Weather Forecasts ReAnalysis 5 (ERA5) family provided by the European Centre for Medium‐Range Weather Forecasts (ECMWF).The package interfaces with the Climate Data Store hosted by the Copernicus Climate Change Service (C3S) for retrieval of climate data.

KrigR contains functions for:

NOTE: All kriging functionality can be parallelised for faster computing using the Cores argument.

How to Cite

KrigR has been published here.

Installation

KrigR is not yet on CRAN, so it needs to be installed as such:

devtools::install_github("https://github.com/ErikKusch/KrigR")
library(KrigR)

Users require personal API-access tokens which can be obtained here.

Workshop Material and Further Information

I have put together a comprehensive workshop that walks you through the functionality of the KrigR package. For any additional information on the project please refer to the project website. Upates will be available on said website as well as the KrigR twitter profile

Abstract

Advances in climate science have rendered obsolete the gridded observation data widely used in downstream applications. Novel climate reanalysis products outperform legacy data products in accuracy, temporal resolution, and provision of uncertainty metrics. Consequently, there is an urgent need to develop a workflow through which to integrate these improved data into biological analyses. The ERA5 product family (ERA5 and ERA5-Land) are the latest and most advanced global reanalysis products created by the European Center for Medium-range Weather Forecasting (ECMWF). These data products offer up to 83 essential climate variables (ECVs) at hourly intervals for the time-period of 1981 to today with preliminary back-extensions being available for 1950-1981. Spatial resolutions range from 30x30km (ERA5) to 11x11km (ERA5-Land) and can be statistically downscaled to study-requirements at finer spatial resolutions. Kriging is one such method to interpolate data to finer resolutions and has the advantages that one can leverage additional covariate information and obtain the uncertainty associated with the downscaling.

The KrigR R-package enables users to (1) download ERA5(-Land) climate reanalysis data for a user-specified region, and time-period, (2) aggregate these climate products to desired temporal resolutions and metrics, (3) acquire topographical co-variates, and (4) statistically downscale spatial data to a user-specified resolution using co-variate data via kriging. KrigR can execute all these tasks in a single function call, thus enabling the user to obtain any of 83 (ERA5) / 50 (ERA5-Land) climate variables at high spatial and temporal resolution with a single R-command. Additionally, KrigR contains functionality for computation of bioclimatic variables and aggregate metrics from the variables offered by ERA5(-Land).

This R-package provides an easy-to-implement workflow for implementation of state-of-the-art climate data while avoiding issues of storage limitations at high temporal and spatial resolutions by providing data according to user-needs rather than in global data sets.
Consequently, KrigR provides a toolbox to obtain a wide range of tailored climate data at unprecedented combinations of high temporal and spatial resolutions thus enabling the use of world-leading climate data through the R-interface and beyond.

Keywords

Climate data, Climate reanalysis, Interdisciplinary ecology, Macroecology, R, R Package, Statistical downscaling


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 460
Total Committers: 3
Avg Commits per committer: 153.333
Development Distribution Score (DDS): 0.004

Commits in past year: 145
Committers in past year: 1
Avg Commits per committer in past year: 145.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Erik Kusch e****k@i****e 458
Erik Kusch a****8@u****k 1
Beaton A****n@o****a 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 69
Total pull requests: 36
Average time to close issues: 2 months
Average time to close pull requests: about 8 hours
Total issue authors: 32
Total pull request authors: 3
Average comments per issue: 2.42
Average comments per pull request: 0.11
Merged pull request: 34
Bot issues: 0
Bot pull requests: 0

Past year issues: 32
Past year pull requests: 12
Past year average time to close issues: about 1 month
Past year average time to close pull requests: less than a minute
Past year issue authors: 13
Past year pull request authors: 1
Past year average comments per issue: 1.94
Past year average comments per pull request: 0.0
Past year merged pull request: 11
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ErikKusch/KrigR

Top Issue Authors

  • ErikKusch (27)
  • Doltrix (7)
  • japilo (3)
  • ShinyFabio (3)
  • dwittig1 (2)
  • poniitty (1)
  • BB1464 (1)
  • stephstewart02 (1)
  • bue21 (1)
  • YQ303 (1)
  • danyhernandezmu (1)
  • fipoucat (1)
  • lazarus394 (1)
  • milos-agathon (1)
  • loupeiqing (1)

Top Pull Request Authors

  • ErikKusch (34)
  • beatonan (1)
  • ShinyFabio (1)

Top Issue Labels

  • enhancement (17)
  • bug (15)
  • Download Functionality (5)
  • Kriging Functionality (5)
  • Discarded Idea (4)
  • Covariate Functionality (4)
  • documentation (2)
  • help wanted (1)

Top Pull Request Labels

  • bug (1)
  • enhancement (1)

Dependencies

DESCRIPTION cran
  • automap * depends
  • doParallel * depends
  • doSNOW * depends
  • ecmwfr * depends
  • fasterize * depends
  • foreach * depends
  • httr * depends
  • keyring * depends
  • lubridate * depends
  • ncdf4 * depends
  • raster * depends
  • rgdal * depends
  • sf * depends
  • sp * depends
  • stars * depends
  • stringr * depends

Score: 5.869296913133775