vocc_gradient_calc: Velocity of climate change

Description Usage Arguments

View source: R/vocc-gradient.R

Description

Velocity of climate change

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
vocc_gradient_calc(
  data,
  layer,
  scale_fac = 1,
  time_step = "year",
  delta_t_step = 2,
  indices = NULL,
  divisor = 10,
  latlon = FALSE,
  log_space = FALSE,
  use_VoCC = F,
  quantile_cutoff = 0.05
)

Arguments

data

Gridded data.

layer

Variable to retain. Defaults to "est", for raw sdmTMB predictions.

scale_fac

Controls how the original 2-km projection is aggregated (e.g. a value of 5 means that the raster would be reprojected to 10km grid).

time_step

Time variable.

delta_t_step

Time between values of time variable. Required if raster layers not labeled with "X" plus an integer representing time.

indices

If null, gradient will be based on mean across all times. If integer vector of same length as number of unique time steps, gradient will be based on final time steps given largest index value.

divisor

Default of 10 gives trends and velocities per decade.

latlon

Default is TRUE. False for UTMs or other true distance grid.

log_space

Logical for layer being in log space. If TRUE will save 'cv' in log space and true 'sd'.

quantile_cutoff

Used for plotting to set min and max angles of vectors. Defaults to 0.05.


pbs-assess/gfranges documentation built on Dec. 13, 2021, 4:50 p.m.