Calculate Trajectory Map
calc_trajectory_map.Rd
This function calculates the trajectory map by reclassifying two rasters (representing land cover at two different time points), concatenating them, and then adding categorical information based on a provided lookup table.
Usage
calc_trajectory_map(
lc_t1_,
lc_t2_,
lookup_traj_reclass,
lookup_trajectory_complete,
trajectory_column_name = "trajectory"
)
Arguments
- lc_t1_
A raster object representing the land cover at time 1.
- lc_t2_
A raster object representing the land cover at time 2.
- lookup_traj_reclass
A data frame containing the reclassification rules.
- lookup_trajectory_complete
A data frame containing the lookup table for trajectories.
- trajectory_column_name
A string representing the column name for the trajectory in the lookup table.
Examples
if (FALSE) {
# assuming we have two raster objects "lc_t1", "lc_t2",
#a reclassification table "lookup_traj_reclass",
# and a lookup table "lookup_trajectory_complete"
my_trajectory_map <- calc_trajectory_map(lc_t1_, lc_t2_, lookup_traj_reclass,
lookup_trajectory_complete,
trajectory_column_name = "trajectory")
}