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

downscaleR

An R package for empirical-statistical downscaling focusing on daily data and covering the most popular approaches (bias correction, Model Output Statistics, Perfect Prognosis) and techniques (e.g. quantile mapping, regression, analogs, neural networks).
https://github.com/SantanderMetGroup/downscaleR

Category: Climate Change
Sub Category: Climate Downscaling

Keywords from Contributors

climate-change-atlas climate4r cmip6 cordex ipcc-regions warming-levels

Last synced: about 4 hours ago
JSON representation

Repository metadata

An R package for climate data bias correction and downscaling (part of the climate4R bundle)

README.md

DOI

What is downscaleR?

downscaleR is an R package for empirical-statistical downscaling focusing on daily data and covering the most popular approaches (bias correction, Model Output Statistics, Perfect Prognosis) and techniques (e.g. quantile mapping, regression, analogs, neural networks). This package has been conceived to work in the framework of both seasonal forecasting and climate change studies. Thus, it considers ensemble members as a basic dimension of the data structure. Find out more about this package at the downscaleR wiki.

This package is part of the climate4R bundle, formed by loadeR, transformeR, downscaleR and visualizeR. The recommended installation procedure is to use the install_github command from the devtools R package:

devtools::install_github(c("SantanderMetGroup/transformeR", "SantanderMetGroup/downscaleR"))

NOTE: Note that transformeR is a dependency for downscaleR. The utilities in transformeR were formerly part of downscaleR (up to v1.3-4). Since downscaleR v2.0-0, these are in transformeR and downscaleR is strictly aimed to statistical downscaling. Note that transformeR also includes illustrative datasets for the climate4rframework.

EXAMPLE: The following code trains three different downscaling methods (analogs, linear regression and neural networks) using principal components (explaining 95% of the variance for each variable) and visualizes the results (the illustrative station and reanalysis data for DJF included in the transformeR package is used in this example):

library(downscaleR)
data("VALUE_Iberia_tas") # illustrative datasets included in transformeR
y <- VALUE_Iberia_tas 
data("NCEP_Iberia_hus850", "NCEP_Iberia_psl", "NCEP_Iberia_ta850")
x <- makeMultiGrid(NCEP_Iberia_hus850, NCEP_Iberia_psl, NCEP_Iberia_ta850)
# calculating predictors
data <- prepareData(x = x, y = y,spatial.predictors = list(v.exp = 0.95)) 
# Fitting statistical downscaling methods (simple case, no cross-validation)
analog <- downscale.train(data, method = "analogs", n.analogs = 1)
regression <- downscale.train(data, method = "GLM",family = gaussian)
neuralnet <- downscale.train(data, method = "NN", hidden = c(10,5), output = "linear")
# Extracting the results for a particula station (Igueldo) for a single year (2000)
igueldo.2000 <- subsetGrid(y,station.id = "000234",years = 2000)
analog.2000 <- subsetGrid(analog$pred,station.id = "000234",years = 2000)
regression.2000 <- subsetGrid(regression$pred,station.id = "000234",years = 2000)
neuralnet.2000 <- subsetGrid(neuralnet$pred,station.id = "000234",years = 2000)
library(visualizeR)  # Data visualization utilities
temporalPlot(igueldo.2000, analog.2000, regression.2000, neuralnet.2000)

Reference and further information:

[General description of the downscaleR package] Bedia et al. (2020) Statistical downscaling with the downscaleR package (v3.1.0): contribution to the VALUE intercomparison experiment. Geosientific Model Development, 13, 1711–1735,
https://doi.org/10.5194/gmd-13-1711-2020
Check out the companion notebooks GitHub.

[General description of the climate4R framework] Iturbide et al. (2019) The R-based climate4R open framework for reproducible climate data access and post-processing. Environmental Modelling and Software, 111, 42-54. https://doi.org/10.1016/j.envsoft.2018.09.009
Check out the companion notebooks for the two examples GitHub.

[Seasonal forecasting applications] Cofiño et al. (2018) The ECOMS User Data Gateway: Towards seasonal forecast data provision and research reproducibility in the era of Climate Services. Climate Services, 9, 33-43. http://doi.org/10.1016/j.cliser.2017.07.001


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 1,009
Total Committers: 13
Avg Commits per committer: 77.615
Development Distribution Score (DDS): 0.396

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

Name Email Commits
jbedia j****a@g****m 609
miturbide m****e@g****m 195
Jorge b****a@i****s 50
Sixto Herrera García h****s@u****s 42
szabotakacsb b****s@g****u 28
Jose M. Gutierrez g****m@u****s 26
Ana a****2@g****m 21
sixtohg s****g@g****m 15
Jorge Bano Medina j****a@M****l 10
jorgebanomedina j****a@g****m 7
Max Tuni m****a@g****m 4
jesusff j****f@g****m 1
Matte De Felice m****e@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 92
Total pull requests: 9
Average time to close issues: 5 months
Average time to close pull requests: 14 days
Total issue authors: 50
Total pull request authors: 7
Average comments per issue: 1.5
Average comments per pull request: 1.44
Merged pull request: 5
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

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

Top Issue Authors

  • matteodefelice (15)
  • jbedia (10)
  • durutti (3)
  • cyndyfem (3)
  • anubhavchoudhary (3)
  • Natel-Carolina (3)
  • idriswada007 (3)
  • Freestyleyang (2)
  • AZIZRIZWAN (2)
  • Violet-issak (2)
  • scbrown86 (2)
  • miturbide (2)
  • tubabucak (2)
  • arulalant (2)
  • sdbht (2)

Top Pull Request Authors

  • matteodefelice (2)
  • szabotakacsb (2)
  • jorgebanomedina (1)
  • jbedia (1)
  • dlebauer (1)
  • cofinoa (1)
  • gutierjm (1)

Top Issue Labels

  • enhancement (11)
  • bug (9)
  • question (4)
  • duplicate (1)
  • wontfix (1)

Top Pull Request Labels


Package metadata

proxy.golang.org: github.com/santandermetgroup/downscaler

proxy.golang.org: github.com/SantanderMetGroup/downscaleR

conda-forge.org: r-downscaler

  • Homepage: https://github.com/SantanderMetGroup/climate4R
  • Licenses: GPL-3.0-or-later
  • Latest release: 3.3.3 (published almost 3 years ago)
  • Last Synced: 2025-04-01T02:10:56.208Z (27 days ago)
  • Versions: 2
  • Dependent Packages: 1
  • Dependent Repositories: 2
  • Rankings:
    • Dependent repos count: 20.06%
    • Forks count: 23.624%
    • Average: 26.756%
    • Dependent packages count: 28.954%
    • Stargazers count: 34.385%

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • transformeR >= 2.0.1 depends
  • MASS * imports
  • RCurl * imports
  • abind * imports
  • deepnet * imports
  • evd * imports
  • fields * imports
  • glmnet * imports
  • magrittr * imports
  • parallel * imports
  • reticulate * imports
  • stats * imports
  • sticky * imports
  • utils * imports
  • climate4R.datasets * suggests
  • knitr * suggests
  • loadeR * suggests
  • loadeR.ECOMS * suggests
  • rmarkdown * suggests
  • visualizeR * suggests

Score: 8.626406276389554