Skip to contents

This function expects a downscaled GLOBIOM output as created in the BIOCLIMA project. Likely of little use for anyone outside IIASA.

Usage

formatGLOBIOM(
  fname,
  oftype = "raster",
  ignore = NULL,
  period = "all",
  template = NULL,
  shares_to_area = FALSE,
  use_gdalutils = FALSE,
  verbose = getOption("ibis.setupmessages", default = TRUE)
)

Arguments

fname

A filename in character pointing to a GLOBIOM output in netCDF format.

oftype

A character denoting the output type (Default: 'raster').

ignore

A vector of variables to be ignored (Default: NULL).

period

A character limiting the period to be returned from the formatted data. Options include "reference" for the first entry, "projection" for all entries but the first, and "all" for all entries (Default: "reference").

template

An optional SpatRaster object towards which projects should be transformed.

shares_to_area

A logical on whether shares should be corrected to areas (if identified).

use_gdalutils

(Deprecated) logical on to use gdalutils hack-around.

verbose

logical on whether to be chatty.

Value

A SpatRaster stack with the formatted GLOBIOM predictors.

Examples

if (FALSE) { # \dontrun{
# Expects a filename pointing to a netCDF file.
covariates <- formatGLOBIOM(fname)
} # }