daily_indices2geotiff: Daily Indices to GeoTiff

Description Usage Arguments Value Author(s) Examples

View source: R/daily_indices2geotiff.R

Description

This function wraps the daily_indices function. It writes data to a geotiff file in the working directory.

Usage

1
2
daily_indices2geotiff(tmax_data, tmin_data, prcp_data, tave_data, thresholds,
  coords_master, prj, year, time_PCICt)

Arguments

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.

year

A year to use in labeling the output file.

tmin

a data.frame or matrix with 12 or 52 columns representing monthly or weekly 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.

coordinates

Coordinates of grid cells as output by CF_bbox_grid.

projection

A Proj4 string for the spatial reference of the input string.

Value

A character vector of the files that were created.

Author(s)

David Blodgett dblodgett@usgs.gov

Examples

1
2
3
4
5
6
## Not run: 
data(daily_indices2geotiff_example, package='climates')
fileNames<-daily_indices2geotiff(tmax_data, tmin_data, prcp_data,
tave_data, thresholds, coords_master, prj, year,time_PCICt)

## End(Not run)

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