{"id":13794638,"url":"https://github.com/adamhsparks/epicrop","last_synced_at":"2025-05-12T21:31:53.409Z","repository":{"id":37686315,"uuid":"58613738","full_name":"adamhsparks/epicrop","owner":"adamhsparks","description":"Simulation modelling of crop diseases using a Susceptible-Exposed-Infectious-Removed (SEIR) model in R","archived":true,"fork":false,"pushed_at":"2023-11-19T08:10:53.000Z","size":10666,"stargazers_count":23,"open_issues_count":0,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-08-04T23:08:21.714Z","etag":null,"topics":["agricultural-modeling","agricultural-modelling","agricultural-research","botanical-epidemiology","crop-protection","disease","epirice-model","model","modeling","modelling","r","rice","rice-diseases","rstats","seir","seir-model"],"latest_commit_sha":null,"homepage":"http://adamhsparks.github.io/epicrop/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamhsparks.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-05-12T06:21:17.000Z","updated_at":"2024-04-27T15:38:47.000Z","dependencies_parsed_at":"2023-11-28T23:45:52.604Z","dependency_job_id":null,"html_url":"https://github.com/adamhsparks/epicrop","commit_stats":{"total_commits":842,"total_committers":1,"mean_commits":842.0,"dds":0.0,"last_synced_commit":"2a83e14ccd12d5d5db6ec6529cac2d29d9d3aa24"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhsparks%2Fepicrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhsparks%2Fepicrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhsparks%2Fepicrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhsparks%2Fepicrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamhsparks","download_url":"https://codeload.github.com/adamhsparks/epicrop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225157000,"owners_count":17429698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agricultural-modeling","agricultural-modelling","agricultural-research","botanical-epidemiology","crop-protection","disease","epirice-model","model","modeling","modelling","r","rice","rice-diseases","rstats","seir","seir-model"],"created_at":"2024-08-03T23:00:45.127Z","updated_at":"2024-11-18T09:30:44.892Z","avatar_url":"https://github.com/adamhsparks.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\ntitle: \"\"\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n# {epicrop} Simulation Modelling of Crop Diseases Using a Susceptible-Exposed-Infectious-Removed (SEIR) Model\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n\u003cimg align=\"right\" src=\"man/figures/logo.png\"\u003e\n\n\u003c!-- badges: start --\u003e\n\n[![tic](https://github.com/adamhsparks/epicrop/workflows/tic/badge.svg?branch=main)](https://github.com/adamhsparks/epicrop/actions)\n[![codecov](https://codecov.io/gh/adamhsparks/epicrop/branch/main/graph/badge.svg?token=NWrKsX9MaP)](https://codecov.io/gh/adamhsparks/epicrop)\n[![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)\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n[![DOI](https://zenodo.org/badge/58613738.svg)](https://zenodo.org/badge/latestdoi/58613738)\n\u003c!-- badges: end --\u003e\n\nA fork of [{cropsim}](https://r-forge.r-project.org/R/?group_id=335) (Hijmans _et al._ 2009) designed to make using the EPIRICE model (Savary _et al._ 2012) for rice diseases easier to use.\nThis version provides easy to use functions to fetch weather data from NASA POWER, via the [{nasapower}](https://cran.r-project.org/package=nasapower) package (Sparks 2018, Sparks 2020) and predict disease intensity of five rice diseases using a generic SEIR model (Zadoks 1971) function, `SEIR()`.\n\nThe original EPIRICE manuscript, Savary _et al._ (2012), which details the model and results of its use to model global epidemics of rice diseases, was published in _Crop Protection_ detailing global unmanaged disease risk of bacterial blight, brown spot, leaf blast, sheath blight and rice tungro, which are included in this package.\n\n# Quick start\n\nYou can easily simulate any of the five diseases for rice grown anywhere in the world for years from 1983 to near current using `get_wth()` to fetch data from the [NASA POWER web API](https://power.larc.nasa.gov).\nAlternatively, you can supply your own weather data for any time period as long as it fits the model’s requirements.\n\n{epicrop} is not yet on CRAN. You can install it this way.\n\n```{r eval=FALSE}\nif (!require(\"remotes\"))\n  install.packages(\"remotes\")\nremotes::install_github(\"adamhsparks/epicrop\",\n                        build_vignettes = TRUE\n)\n```\n\n## Get weather data\n\nFirst you need to provide weather data for the model; {epicrop} provides the `get_wth()` function to do this.\nUsing it you can fetch weather data for any place in the world from 1983 to near present by providing the and latitude and dates or length of rice growing season as shown below.\n\n```{r weather}\nlibrary(\"epicrop\")\n\n# Fetch weather for year 2000 wet season for a 120 day rice variety at the IRRI\n# Zeigler Experiment Station\nwth \u003c- get_wth(\n  lonlat = c(121.25562, 14.6774),\n  dates = \"2000-07-01\",\n  duration = 120\n)\n\nwth\n```\n\n## Modelling bacterial blight disease intensity\n\nOnce you have the weather data, run the model for any of the five rice diseases by providing the emergence or crop establishment date for transplanted rice.\n\n```{r example}\nbb \u003c- predict_bacterial_blight(wth, emergence = \"2000-07-01\")\n\nbb\n```\n\nLastly, you can visualise the result of the model run.\n\n```{r plot, fig.cap=\"Bacterial blight disease progress over time. Results for wet season year 2000 at IRRI Zeigler Experiment Station shown. Weather data used to run the model were obtained from the NASA Langley Research Center POWER Project funded through the NASA Earth Science Directorate Applied Science Program.\",}\nlibrary(\"ggplot2\")\n\nggplot(data = bb,\n       aes(x = dates,\n           y = intensity)) +\n  labs(y = \"Intensity\",\n       x = \"Date\") +\n  geom_line() +\n  geom_point() +\n  theme_classic()\n```\n\n# Meta\n\n  - Please [report any issues or bugs](https://github.com/adamhsparks/epicrop/issues).\n\n  - License: GPL-3\n\n  - To cite {epicrop}, please use the output from `citation(package = \"epicrop\")`.\n\n## Code of Conduct\n\nPlease note that the epicrop project is released with a [Contributor Code of Conduct](http://adamhsparks.github.io/epicrop/CODE_OF_CONDUCT.html).\nBy contributing to this project, you agree to abide by its terms.\n\n# References\n\nRobert J. Hijmans, Serge Savary, Rene Pangga and Jorrel Aunario. (2009). Simulation modeling of crops and their diseases. R package version 0.2-6.\n\nSerge Savary, Andrew Nelson, Laetitia Willocquet, Ireneo Pangga and Jorrel Aunario.(2012). Modeling and mapping potential epidemics of rice diseases globally. _Crop Protection_, Volume 34, Pages 6-17, ISSN 0261-2194 DOI: [10.1016/j.cropro.2011.11.009](https://doi.org/10.1016/j.cropro.2011.11.009).\n\nSerge Savary, Stacia Stetkiewicz, François Brun, and Laetitia Willocquet. Modelling and Mapping Potential Epidemics of Wheat Diseases-Examples on Leaf Rust and Septoria Tritici Blotch Using EPIWHEAT. (2015). _European Journal of Plant Pathology_ 142, no. 4:771–90. DOI: [10.1007/s10658-015-0650-7](https://doi.org/10.1007/s10658-015-0650-7).\n\nAdam Sparks (2018). nasapower: A NASA POWER Global Meteorology, Surface Solar Energy and Climatology Data Client for R. _Journal of Open Source Software_, 3(30), 1035, DOI: [10.21105/joss.01035](https://doi.org/10.21105/joss.01035).\n\nAdam Sparks (2021). _nasapower: NASA-POWER Data from R_. DOI: [10.5281/zenodo.1040727](https://doi.org/10.5281/zenodo.1040727), R package version 4.0.0, URL:\n[https://CRAN.R-project.org/package=nasapower](https://CRAN.R-project.org/package=nasapower).\n\nJan C. Zadoks. (1971). Systems Analysis and the Dynamics of Epidemics. _Phytopathology_ 61:600. DOI: [10.1094/Phyto-61-600](https://doi.org/10.1094/Phyto-61-600).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamhsparks%2Fepicrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamhsparks%2Fepicrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamhsparks%2Fepicrop/lists"}