ecocrop: Ecocrop model

Description Usage Arguments Value Author(s) Examples

Description

Very simple mechanistic model for plants.

Usage

1
2
3
ecocrop(crop, tmin, tavg, prec, rainfed=TRUE, ...) 
getCrop(name)
data(ECOcrops)

Arguments

crop

An object of class 'ECOCROP', or the name of a crop as in getCrop

tmin

Vector of monthly minimum temperature (degrees C)

tavg

Vector of monthly average temperature (degrees C)

prec

Vector of monthly precipitation (mm)

rainfed

Logical. If FALSE, the crop is assumed to be irrigated

...

Additinal arguments

name

Name of a crop (character). If missing a data.frame with all crop names is returned

Value

Object of class ECOCROP

Author(s)

Robert J. Hijmans

Examples

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

Example output

Loading required package: raster
Loading required package: sp
class      : ECOCROP 
Crop       : Potato 
Suitability: 0 0 0 0 0 0 0 0 0 0 0 0 
Best period: 0 
name: Umbrella mulga 
latn: Acacia brachystachya Benth. 
gdur: 60 180 
temp: 4 20 40 58 
prec: 150 250 300 500 
class      : ECOCROP 
Crop       : Hot pepper 
Suitability: 0 0.8181818 0.9090909 1 1 1 1 1 0 0 0 0 
Best period: 4 5 6 7 8 

dismo documentation built on May 2, 2019, 6:07 p.m.