Description Usage Arguments Author(s) See Also Examples
Applies linear gains and offsets to input data following output = gains * x + offset.
1 2 | apply_gains_offsets(x, gains, offsets,
divide_by_days_in_month = FALSE, snow_nthreads = 1)
|
x |
An input, such as a numeric vector (UNSUPPORTED) or a raster object. |
gains |
The gain to apply to the input. gain should be either a numeric vector equal to the nlayers(x) (if x is a raster) or a single value which will be applied to all layers. |
offsets |
The offset to apply to the input. gain should be either a numeric vector equal to the nlayers(x) (if x is a raster) or a single value which will be applied to all layers. |
divide_by_days_in_month |
IF x is a raster, and has
a Date-coercible zvalue set, setting |
snow_nthreads |
UNUSED AT PRESENT. |
Jonathan A. Greenberg
1 2 3 4 5 6 7 8 | ## Not run:
#Divide all precipitation values by 10 to get cm H2O
load(system.file("extdata/pptTahoe.RData",package="climstats"))
ppt_cm=apply_gains_offsets(pptTahoe,gains=(1/10),
divide_by_days_in_month=FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.