
Function to format a prepared GLOBIOM netCDF file for use in Ibis.iSDM
Source:R/add_predictors_globiom.R
      formatGLOBIOM.RdThis 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
characterpointing to a GLOBIOM output in netCDF format.- oftype
 A
characterdenoting the output type (Default:'raster').- ignore
 A
vectorof variables to be ignored (Default:NULL).- period
 A
characterlimiting 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
SpatRasterobject towards which projects should be transformed.A
logicalon whether shares should be corrected to areas (if identified).- use_gdalutils
 (Deprecated)
logicalon to use gdalutils hack-around.- verbose
 logicalon whether to be chatty.
Value
A SpatRaster stack with the formatted GLOBIOM predictors.