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

climatrends

Provides methods to compute precipitation and temperature indices for climate models in ecology.
https://github.com/AgrDataSci/climatrends

Category: Consumption
Sub Category: Agriculture and Nutrition

Keywords

climate-data climatology timeseries-analysis

Keywords from Contributors

agricultural

Last synced: about 18 hours ago
JSON representation

Repository metadata

Climate Variability Indices for Ecological Modelling

README.md

climatrends

JOSS status
CRAN status
cran checks
Downloads
lifecycle
DOI

climatrends: Climate Variability Indices for Ecological Modelling

Overview

The climatrends package provides methods to compute precipitation and temperature indices for climate models in ecology. The indices produced here can be used as explanatory variables for ecological modelling, crop modelling, and to assess trends in climate change.

Statement of need

Reproducibility, the ability to repeat the analysis, and Replicability, the ability to repeat an experiment are key to perform collaborative scientific research. This is still a gap in most of the studies in agriculture and ecology. climatrends addresses this specific issue. The package originates from a set of scripts to compute climate indices in our previous studies. Building up on the interest in expanding the analysis to other regions and to enable reproducible and replicable studies we developed climatrends. Most of the package functions take into account the heterogeneity of testing sites (locations), dates and seasons, a common characteristic of decentralized agricultural trials. Further development was made to enable time series analysis with fixed periods of time and locations. The package climatrends computes temperature, precipitation, crop growing and crop stress indices that were validated by previous studies on climatology and crop science. Currently climatrends is part of the CRAN Task View in Agriculture (https://cran.r-project.org/web/views/Agriculture.html).

Package website

https://agrdatasci.github.io/climatrends/

Installation

The package may be installed from CRAN via

install.packages("climatrends")

The development version can be installed via

library("remotes")
install_github("agrdatasci/climatrends", build_vignettes = TRUE)

Example

The default method for the function temperature() has as the basic input one numeric vector with the maximum temperature and one numeric vector with the minimum temperature:

library("climatrends")

data("innlandet", package = "climatrends")

temperature(innlandet$tmax, innlandet$tmin)

   maxDT  minDT maxNT  minNT   DTR    SU    TR   CFD  WSDI  CSDI   T10p  T90p
   <dbl>  <dbl> <dbl>  <dbl> <int> <int> <int> <int> <int> <int>  <dbl> <dbl>
1: 15.13 -14.86  6.77 -19.25     6     0     0   115     4     5 -15.81  9.09

The indices can be splitted in intervals for series analysis. Here we get the temperature indices with intervals of 30 days.


temperature(innlandet$tmax, innlandet$tmin,
            dates = innlandet$day, 
            timeseries = TRUE, 
            intervals = 30)

       id       date index  value
    <int>     <date> <chr>  <dbl>
1:      1 2019-01-01 maxDT  -0.15
2:      1 2019-01-01 minDT -14.86
3:      1 2019-01-01 maxNT  -3.41
4:      1 2019-01-01 minNT -18.67
5:      1 2019-01-01   DTR   4.35
---                              
68:     1 2019-05-31   CFD   3.00
69:     1 2019-05-31  WSDI   2.00
70:     1 2019-05-31  CSDI   3.00
71:     1 2019-05-31  T10p   0.20
72:     1 2019-05-31  T90p  11.14

Going further

The full functionality of climatrends is illustrated in the package vignette. The vignette can be found on the package website or from within R once the package has been installed, e.g. via

vignette("Overview", package = "climatrends")

Meta


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 108
Total Committers: 3
Avg Commits per committer: 36.0
Development Distribution Score (DDS): 0.019

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

Name Email Commits
kauedesousa k****a@i****o 106
David LeBauer d****r@a****u 1
istfer f****m@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 15
Total pull requests: 3
Average time to close issues: 6 months
Average time to close pull requests: 2 months
Total issue authors: 3
Total pull request authors: 2
Average comments per issue: 1.07
Average comments per pull request: 0.33
Merged pull request: 2
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/AgrDataSci/climatrends

Top Issue Authors

  • istfer (6)
  • kauedesousa (5)
  • dlebauer (4)

Top Pull Request Authors

  • dlebauer (2)
  • istfer (1)

Top Issue Labels

  • enhancement (3)

Top Pull Request Labels


Package metadata

cran.r-project.org: climatrends

Climate Variability Indices for Ecological Modelling

  • Homepage: https://agrdatasci.github.io/climatrends/
  • Documentation: http://cran.r-project.org/web/packages/climatrends/climatrends.pdf
  • Licenses: MIT + file LICENSE
  • Latest release: 0.1.13 (published over 3 years ago)
  • Last Synced: 2025-04-25T12:30:45.811Z (2 days ago)
  • Versions: 7
  • Dependent Packages: 3
  • Dependent Repositories: 6
  • Downloads: 369 Last month
  • Docker Downloads: 21,613
  • Rankings:
    • Forks count: 9.733%
    • Dependent packages count: 10.637%
    • Dependent repos count: 12.096%
    • Average: 17.288%
    • Downloads: 26.02%
    • Stargazers count: 27.955%
  • Maintainers (1)

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • methods * depends
  • stats * imports
  • chirps * suggests
  • knitr * suggests
  • nasapower * suggests
  • rmarkdown * suggests
  • sf * suggests
  • testthat * suggests

Score: 12.888851257787861