Description Usage Arguments Details Author(s) See Also
Assigns zname and zvalues and manages raster projection.
1 2 | prepare_climate_data(raster_files, raster_source, zname,
zvalue, proj)
|
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 |
no details
Jonathan Greenberg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.