ecocrop: ecocrop

Description Usage Arguments Details Examples

Description

dismo::ecocrop function, copied here temporarily to see if we can extract parts and/or increase flexibility. With added comments.

Usage

1
ecocrop(crop, tmin, tavg, prec, rainfed)

Arguments

crop

an ecocrop cropname or object

tmin

single tmin value for a site

tavg

single tavg value for a site

prec

single precipitation value for a site

rainfed

FALSE for irrigated

Details

adds suitability for a single pixel to the ecocrop object

This is from .doEcocrop, some additional data setup occurs in dismo::ecocrop and .ecoSpat()

source : https://r-forge.r-project.org/scm/viewvc.php/pkg/dismo/R/ecocrop.R?view=markup&root=dismo

Examples

1
2
3
4
crop <- getCrop('potato')
ecocrop(crop, 5:16, 15:26, runif(12)*100, rainfed=TRUE)
crop <- getCrop('Hot pepper')
ecocrop(crop, 5:16, 15:26, rainfed=FALSE)

AndySouth/climcropr documentation built on May 20, 2019, 5:08 p.m.