Skip to contents

This function expects a downscaled GLOBIOM output as created in the BIOCLIMA project. It converts the input to a stars object to be fed to the ibis.iSDM R-package.

Usage

conv_downscalr2ibis(
  fname,
  ignore = NULL,
  period = "all",
  template = NULL,
  shares_to_area = FALSE,
  use_gdalutils = FALSE,
  verbose = TRUE
)

Arguments

fname

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

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.

Author

Martin Jung

Examples

if (FALSE) { # \dontrun{
## Does not work unless downscalr file is provided.
# Expects a filename pointing to a netCDF file.
covariates <- conv_downscalr2ibis(fname)
} # }