load_observations: Load observations from GBIF or ATLAS databases

View source: R/load_observations.R

load_observationsR Documentation

Load observations from GBIF or ATLAS databases

Description

Load observations from GBIF or ATLAS databases

Usage

load_observations(
  species,
  data_source,
  year_start,
  year_end = NULL,
  extent_wkt = NULL,
  extent_shp = NULL,
  proj_shp = NULL,
  xmin = NA,
  ymin = NA,
  xmax = NA,
  ymax = NA,
  bbox = NULL,
  limit = 1000
)

Arguments

species,

a character, scientific name of the species.

data_source,

an integer, "gbif" or "atlas", source to use

year_start,

an integer, starting year of the period

year_end,

an integer, end year of the period

extent_wkt,

a string in WKT format, used to subset the obs spatially (only used with gbif for now)

extent_shp,

sf polygone, used to subset the obs spatially (only used with gbif for now)

proj_shp,

extent_shp projection system, if not included in extent_shp.

xmin,

a float, xmin coords of extent box (MUST BE IN WGS84), used to subset the obs spatially (only used with gbif for now)

ymin,

a float, ymin coords of extent box (MUST BE IN WGS84), used to subset the obs spatially (only used with gbif for now)#' @param aggregation, a character, aggregation method as string, defining how to deal with pixels containing data from multiple images, can be "min", "max", "mean", "median", or "first"

xmax,

a float, xmax coords of extent box (MUST BE IN WGS84), used to subset the obs spatially (only used with gbif for now)#' @return a raster stack of variables not intercorrelated

ymax,

a float, ymax coords of extent box (MUST BE IN WGS84), used to subset the obs spatially (only used with gbif for now)

bbox,

a vector of float, format: c(xmin, ymin, xmax, ymax) (MUST BE IN WGS84), used to subset the obs spatially (only used with gbif for now)

limit,

an integer, limit param for rgbif::occ_data function

Value

a data.frame


ReseauBiodiversiteQuebec/sdm-pipeline documentation built on June 23, 2022, 9:10 p.m.