project_boundary: Project Boundary

Description Usage Arguments Value

Description

The Air Pollution Impacts Protocol requires that a project bounbary be defined as that the spatial and temporal extent of the atmospheric states resulting from an activity above a certain threshold. This function takes a raster of concentrations resulting from an activity and a threshold value and selects the valid project extent

Usage

1
2
3
4
project_boundary(r, period = 1/365, target_period = "both",
  thresh_acute = 19, period_acute = 1/365, thresh_chronic = 2.5,
  period_chronic = 365/365, chronic_cutoff = 0.9, vebose = FALSE,
  return.mask = FALSE, maskname = "masker", only.mask = FALSE)

Arguments

r

Raster* object with concentrations resulting from an activity

period

Numeric The averaging period represented by each layer of r expressed as a fraction of 365 days, i.e. 1/365 for daily values, 1/24/365 for hourly values

target_period

Character Apply function for a chronic or an acute scenario or both. options are "chronic", "acute", "both". Defaults to "both"

thresh_acute

Numeric The threshold for the 24 hour averaging period

period_acute

The period for which the acute threshold is valid. Default 1/365

thresh_chronic

Numeric The threshold for the 1 year averaging period

period_chronic

The period for which the chronic threshold is valid. Default 365/365

chronic_cutoff

Numeric Proportion data needed to construct a valid chronic estimate. Default 0.9

return.mask

Logical that assigns the masked resolution to the global environment when TRUE

maskname

Character vector. The name attributed to the masked resolution

only.mask

Logical If TRUE the function only returns a mask and not the raster

verbose

Logical Messages or not

Value

A single layer raster shruck to the minimum neccesary extent and with NAs in all remaining cells within that extent that falls outside of the project boundary and 1 in the cells that fall within. This object is then used as a mask to select the valid region for further steps in the air pollution impacts or offsets accouting


christiaanpauw/AQoffset documentation built on May 13, 2019, 6:57 p.m.