daylengthFUN: Gets average month day lengths for an area

Description Usage Arguments Value Examples

View source: R/standardFUNs.R

Description

daylengthFUN Generates surfaces with information on day length for each month accross an area.

Usage

1
daylengthFUN(reference_raster)

Arguments

reference_raster

RasterStack or RasterLayer. Any raster representative of the are you want daylengths to.

Value

Returns a RasterStack with 12 layers, one for each month, containing information on the duration of the day at each pixel.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
FulanusEcoRasters_present <-
  get_rasters(
    raster_source = "/Users/gabriel/Documents/Mapinguari/global_grids_10_minutes",
    ext = FulanusDistribution,
    margin = 5,
    non_fixed_var = c('prec', 'tmin', 'tmax'),
    fixed_var = 'alt',
    years = c("present"),
    reorder = TRUE)

daylengthFUN(FulanusEcoRasters_present$present)

gabrielhoc/MapinguariLegacy documentation built on May 8, 2019, 9:54 p.m.