microclim-package: Predicting microclimate

Description Details Author(s) References Examples

Description

A suite of functions to calculate variables useful in microclimate modelling. Currently the main predictions are for solar radiation (globally) and ground temperature (in Europe).

Details

Package: microclim
Type: Package
Version: 1.0
Date: 2013-12-03
License: GPL-2

The principal functions at present are srad.raster and swrad, both for predicting short-wave radiation, and micEuroclim, for predicting ground temperatures. micEuroclim calls most of the other functions in this package.

Author(s)

Jon Bennie, Richard Gunton Maintainer: Richard Gunton <fbsrmg@leeds.ac.uk>

References

Gunton et al. (submitted) "Predicting ground temperatures across European landscapes"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
if(require(raster)){
data(volcano)
dtm <- raster(volcano,xmn=0,xmx=610,ymn=0,ymx=870,crs="+proj=equirectangular")

# Specify some NA cells to constitute sea:
dtm[78:87,52:61] <- NA

par(mfrow=c(2,2))
plot(dtm,col=terrain.colors(255))

coastdist <- coastal(dtm,notsea=0.1)
plot(coastdist, col=topo.colors(255))

srad <- srad.raster(dtm, lat=36.9, trans=0.7, day=172, soltime=12)
plot(srad)

micro <- micEuroclim(dtm, lat=36.9, pred=3, day=172)
# ...imagining this site were in southern Spain.
plot(micro$microclim)
}

rforge/microclim documentation built on Feb. 21, 2022, 7:49 a.m.