prepare_climate_data: Preprocess Climate Data

Description Usage Arguments Details Author(s) See Also

Description

Assigns zname and zvalues and manages raster projection.

Usage

1
2
  prepare_climate_data(raster_files, raster_source, zname,
    zvalue, proj)

Arguments

raster_files

needs to be a properly formatted search string (?regex) to be used with dir(). You can test this by using this command: input_files=dir(dirname(raster_files), pattern=basename(raster_files),full.names=TRUE)

raster_source

the source of the climate/affiliated data. Currently supports:

zname

a string used by raster to denote the properties of the z-profile. This can be anything, but there are some special znames that will be used by other functions: "Date/time" (the z-values represent time series) and "months" (the z-values represent months, so there should only be 12 files, in order).

zvalue

if zname="Date/time", zvalue must be a character vector equal to the length of the number of raster_files found, which is coercable to a date via as.Date() using its defaults, " if zname="months", zvalue should be the character vector of the integer months of the input files. If no zvalue is given, zvalue will be a vector of 1 to 12.

proj

the projection string in PROJ4 format
Refer to http://trac.osgeo.org/proj/wiki/GenParms and http://www.remotesensing.org/geotiff/proj_list/
Example for lon/lat data:
proj="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"

Details

no details

Author(s)

Jonathan Greenberg

See Also

apply_gains_offsets


climstats documentation built on May 2, 2019, 6:15 p.m.