terraincoef: Compute terrain influencing factor

View source: R/simplemodel.R

terraincoefR Documentation

Compute terrain influencing factor

Description

Function to compute terrain influencing factor

Usage

terraincoef(climatedata, lat, long, pai, slope, aspect, merid = 0, dst = 0)

Arguments

lat

the latitude of the location (decimal degrees)

long

the longitude of the location (decimal degrees)

pai

the total one sided area of canopy elements per unit ground area (see details)

slope

the slope of the underlying ground surface (decimal degrees). Ignored if method = S.

aspect

the aspect of the underlying ground surface (decimal degrees). Ignored if method = S.

merid

an optional numeric value representing the longitude (decimal degrees) of the local time zone meridian (0 for GMT)

dst

an optional numeric value representing the time difference from the timezone meridian (hours, e.g. +1 for BST if merid = 0).

climdata

a dataframe of hourly weather data formated and with units as per the internal dataset climdata

Value

a single numeric value giving a terrain influencing factor

Examples

# Compute influencing factor of an inclined surface
iH<-terraincoef(climatedata,50.2178,-5.32656,1,30,180)
# Compute influencing factor of a flat surface
iRef<-terraincoef(climatedata,50.2178,-5.32656,1,0,0)
# Compute ratio
iR<-iH/iRef
iR

ilyamaclean/microctools documentation built on Jan. 25, 2023, 5:29 a.m.