cr_suit_simpler: cr_suit_simpler a simpler than ecocrop suitability function...

Description Usage Arguments Value Examples

Description

uses crop@GMIN / 30 as minimum months of crop cycle needed temp_suit : min cycle consecutive months where tavg is within crop@TMIN, crop@TMAX kill_temp : tmin-5 > crop@KTMP precip : total precip within growing cycle should be within crop@RMIN, crop@RMAX

Usage

1
2
cr_suit_simpler(crop, tmin, tavg, use_tmax = FALSE, tmax = NULL, prec,
  rainfed)

Arguments

crop

an ecocrop cropname or object

tmin

monthly tmin for a site

tavg

monthly tavg for a site

use_tmax

option to use tmax rather than tavg

tmax

monthly tmax for a site

prec

monthly precipitation for a site

rainfed

FALSE for irrigated

Value

1/0 for suitable/unsuitable

Examples

1
2
crop <- getCrop('potato')
cr_suit_simpler(crop, 5:16, 15:26, runif(12)*100, rainfed=TRUE)

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