load_raster: Load eBird Status and Trends raster data

Description Usage Arguments Details Value Examples

View source: R/ebirdst-loading.R

Description

Each of the eBird Status and Trends products is packaged as a GeoTIFF file with 52 bands, one for each week of the year. This function loads the data for a given product and species as a RasterStack object.

Usage

1
2
3
4
5
load_raster(
  product = c("abundance", "abundance_seasonal", "count", "occurrence",
    "abundance_lower", "abundance_upper", "template"),
  path
)

Arguments

product

character; status and trends product to load, options are relative abundance, seasonal abundance, count, occurrence, and upper and lower bounds on relative abundance. It is also possible to return a template raster with no data.

path

character; full path to the directory containing single species eBird Status and Trends products.

Details

The available raster layers are as follows:

Value

A RasterStack with 52 layers for the given product, labelled by week. Seasonal abundance is the result of averaging the weekly abundance raster layers for each season or across the whole year for resident species. The date boundaries used for the seasonal definitions appear in ebirdst_runs and if a season failed review no associated layer will be included. There will be up to four layers labelled according to the seasons.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# download example data
sp_path <- ebirdst_download("example_data")

# load data
load_raster("abundance", sp_path)

## End(Not run)

ebirdst documentation built on Jan. 16, 2021, 5:16 p.m.