calculate_pgvariables: Calculates all PRIO-GRID variables

View source: R/build_priogrid.R

calculate_pgvariablesR Documentation

Calculates all PRIO-GRID variables

Description

In PRIO-GRID, all functions that are named "gen_something()" are functions that return final variables as a SpatRaster (or a stack of these). This function calculates all variables and store them in "path/to/your/rawfolder/priogrid/version/variable_name.rds".

Usage

calculate_pgvariables(gen_functions = NULL, overwrite = FALSE)

Arguments

gen_functions

Character vector with priogrid functions starting with gen_. If NULL, then all are used.

overwrite

Boolean, if false, will ignore updating variables that already exist in the result folder

Examples

calculate_pgvariables()
r <- readRDS(file.path(pgoptions$get_rawfolder(), "priogrid", packageVersion("priogrid"), "naturalearth_cover.rds"))

prio-data/priogrid documentation built on June 14, 2025, 11:06 p.m.