daily_indices: Daily Climate Indices

Description Usage Arguments Value Author(s) Examples

Description

daily_indices implements a suite of basic climate indices based on daily records It is written to run one year of data at a time for scalability to large gridded domains.

Usage

1
2
daily_indices(tmin = NULL, tmax = NULL, prec = NULL, tmean = NULL,
  thresholds = NULL, time_PCICt = NULL)

Arguments

tmin

a data.frame or matrix with greater than 359 and less than 367 columns representing daily minimum temperature data; rows represent different locations.

tmax

a data.frame or matrix as with tmin representing maximum temperature data.

prec

a data.frame or matrix as with tmin representing precipitation data.

tmean

a data.frame or matrix as with tmin representing mean temperature data.

thresholds

A named list with the following structure:
thresholds=list(days_tmax_abv_thresh=c(),
days_tmin_blw_thresh=c(),
days_prcp_abv_thresh=c(),
longest_run_tmax_abv_thresh=c(),
longest_run_prcp_blw_thresh=c(),
growing_degree_day_thresh=c(),
heating_degree_day_thresh=c(),
cooling_degree_day_thresh=c(),
growing_season_lngth_thresh=c())
where thresholds are in celsius or mm for temperature or precipitation respectively. Multiple thresholds can be specified as a vector and entire statistics can be omitted.

time_PCICt

The time vector cooresponding to the data.frames or matrices in PCICt format.

Value

a matrix with columns representing variables requested and the number of rows(and order of them) the same as the input tmin, tmax, prec or tmean.

Author(s)

David Blodgett dblodgett@usgs.gov

Examples

1
2
3
4
5
6
## Not run: 
data(daily_indices_example, package='climates')
output<-daily_indices(tmin=tmin_data, tmax=tmax_data, prec=prcp_data,
tmean=tave_data, thresholds,time_PCICt)

## End(Not run)

jjvanderwal/climates documentation built on May 19, 2019, 11:41 a.m.