Climate variability indices for ecological and crop models in R

Climate variability indices for ecological and crop models in R: the climatrends package - Published in JOSS (2023)

https://github.com/agrdatasci/climatrends

Science Score: 95.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 1 DOI reference(s) in JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org, zenodo.org
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

climate-data climatology timeseries-analysis

Scientific Fields

Engineering Computer Science - 40% confidence
Last synced: 4 months ago · JSON representation

Repository

Climate Variability Indices for Ecological Modelling

Basic Info
  • Host: GitHub
  • Owner: AgrDataSci
  • License: mit
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 18.3 MB
Statistics
  • Stars: 4
  • Watchers: 6
  • Forks: 6
  • Open Issues: 2
  • Releases: 3
Topics
climate-data climatology timeseries-analysis
Created almost 6 years ago · Last pushed 4 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Codemeta

README.md

climatrends

JOSS status CRAN status cran checks Downloads lifecycle DOI <!-- badges: end -->

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

r install.packages("climatrends")

The development version can be installed via

r 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:

```r library("climatrends")

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

temperature(innlandet$tmax, innlandet$tmin)

maxDT minDT maxNT minNT DTR SU TR CFD WSDI CSDI T10p T90p 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.

```r

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

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

Meta

Owner

  • Name: AgrDataSci
  • Login: AgrDataSci
  • Kind: organization
  • Email: k.desousa@cgiar.org
  • Location: France

We develop methods and tools to support sustainable food systems, rural development and digital inclusion

JOSS Publication

Climate variability indices for ecological and crop models in R: the climatrends package
Published
May 08, 2023
Volume 8, Issue 85, Page 4405
Authors
Kauê de Sousa ORCID
Department of Agricultural Sciences, Inland Norway University of Applied Sciences, Hamar, Norway, Digital Inclusion, Bioversity International, Montpellier, France
Jacob van Etten ORCID
Digital Inclusion, Bioversity International, Montpellier, France
Magne Neby ORCID
Department of Agricultural Sciences, Inland Norway University of Applied Sciences, Hamar, Norway
Svein Ø. Solberg ORCID
Department of Agricultural Sciences, Inland Norway University of Applied Sciences, Hamar, Norway
Editor
Kristina Riemer ORCID
Tags
climate data climatology earth science precipitation data reproducibility weather data

CodeMeta (codemeta.json)

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "@type": "SoftwareSourceCode",
  "identifier": "climatrends",
  "description": "Supports analysis of trends in climate change, ecological and crop modelling.",
  "name": "climatrends: Climate Variability Indices for Ecological Modelling",
  "codeRepository": "https://agrdatasci.github.io/climatrends/",
  "issueTracker": "https://github.com/agrdatasci/climatrends/issues",
  "license": "https://spdx.org/licenses/MIT",
  "version": "1.1",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R version 4.3.3 (2024-02-29)",
  "provider": {
    "@id": "https://cran.r-project.org",
    "@type": "Organization",
    "name": "Comprehensive R Archive Network (CRAN)",
    "url": "https://cran.r-project.org"
  },
  "author": [
    {
      "@type": "Person",
      "givenName": "Kauê",
      "familyName": "de Sousa",
      "email": "desousa.kaue@gmail.com",
      "@id": "https://orcid.org/0000-0002-7571-7845"
    }
  ],
  "contributor": [
    {
      "@type": "Person",
      "givenName": "Jacob",
      "familyName": "van Etten",
      "@id": "https://orcid.org/0000-0001-7554-2558"
    },
    {
      "@type": "Person",
      "givenName": "Svein Ø.",
      "familyName": "Solberg",
      "@id": "https://orcid.org/0000-0002-4491-4483"
    },
    {
      "@type": "Person",
      "givenName": "Jacob",
      "familyName": "van Etten",
      "@id": "https://orcid.org/0000-0001-7554-2558"
    },
    {
      "@type": "Person",
      "givenName": "Svein Ø.",
      "familyName": "Solberg",
      "@id": "https://orcid.org/0000-0002-4491-4483"
    }
  ],
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Kauê",
      "familyName": "de Sousa",
      "email": "desousa.kaue@gmail.com",
      "@id": "https://orcid.org/0000-0002-7571-7845"
    }
  ],
  "softwareSuggestions": [
    {
      "@type": "SoftwareApplication",
      "identifier": "ag5Tools",
      "name": "ag5Tools",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=ag5Tools"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "chirps",
      "name": "chirps",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=chirps"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "knitr",
      "name": "knitr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=knitr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "rmarkdown",
      "name": "rmarkdown",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rmarkdown"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "sf",
      "name": "sf",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=sf"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "testthat",
      "name": "testthat",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=testthat"
    }
  ],
  "softwareRequirements": {
    "1": {
      "@type": "SoftwareApplication",
      "identifier": "R",
      "name": "R",
      "version": ">= 3.5.0"
    },
    "2": {
      "@type": "SoftwareApplication",
      "identifier": "methods",
      "name": "methods"
    },
    "3": {
      "@type": "SoftwareApplication",
      "identifier": "stats",
      "name": "stats"
    },
    "4": {
      "@type": "SoftwareApplication",
      "identifier": "nasapower",
      "name": "nasapower",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=nasapower"
    },
    "SystemRequirements": null
  },
  "fileSize": "4501.063KB",
  "citation": [
    {
      "@type": "SoftwareSourceCode",
      "datePublished": "2020",
      "author": [
        {
          "@type": "Person",
          "givenName": "Kauê",
          "familyName": "de Sousa"
        },
        {
          "@type": "Person",
          "givenName": "Jacob",
          "familyName": "van Etten"
        },
        {
          "@type": "Person",
          "givenName": "Svein Ø.",
          "familyName": "Solberg"
        }
      ],
      "name": "climatrends: Climate Variability Indices for Ecological Modelling",
      "url": "https://CRAN.R-project.org/package=climatrends",
      "description": "R package version 0.5"
    }
  ]
}

Papers & Mentions

Total mentions: 1

Data-driven decentralized breeding increases prediction accuracy in a challenging crop production environment
Last synced: 2 months ago

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 108
  • Total Committers: 3
  • Avg Commits per committer: 36.0
  • Development Distribution Score (DDS): 0.019
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
kauedesousa k****a@i****o 106
David LeBauer d****r@a****u 1
istfer f****m@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • 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 requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • istfer (6)
  • kauedesousa (5)
  • dlebauer (4)
Pull Request Authors
  • dlebauer (2)
  • istfer (1)
Top Labels
Issue Labels
enhancement (3)
Pull Request Labels

Packages

  • Total packages: 3
  • Total downloads:
    • cran 432 last-month
  • Total docker downloads: 21,613
  • Total dependent packages: 3
    (may contain duplicates)
  • Total dependent repositories: 6
    (may contain duplicates)
  • Total versions: 9
  • Total maintainers: 1
proxy.golang.org: github.com/agrdatasci/climatrends
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 4 months ago
proxy.golang.org: github.com/AgrDataSci/climatrends
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 4 months ago
cran.r-project.org: climatrends

Climate Variability Indices for Ecological Modelling

  • Versions: 7
  • Dependent Packages: 3
  • Dependent Repositories: 6
  • Downloads: 432 Last month
  • Docker Downloads: 21,613
Rankings
Forks count: 9.7%
Dependent packages count: 10.6%
Dependent repos count: 12.1%
Average: 17.3%
Downloads: 26.0%
Stargazers count: 28.0%
Maintainers (1)
Last synced: 4 months ago

Dependencies

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