Description Usage Arguments Details Value Author(s) References See Also Examples
Predicts soil surface temperature (monthly mean or daily at 13.40, in open grassland or under trees) for any location in Europe on a given date and/or under specified weather conditions.
1 | micEuroclim(dtm, coast, lat, cloud, day = 197, month, air, conv, wind, air.mean, sw, soltime.sw=12, localtime.sw, lon, merid=0, dst=0, pred = c("mean_open", "mean_trees", "daily_open", "daily_trees"), daily = 12, trans0 = 0.2, scale.threshold = 0.5, cleanup = FALSE, reminders = TRUE, ...)
|
dtm |
Digital terrain model, as a |
coast |
Distances from the nearest sea (in km), in case |
lat |
Latitude (average) of the site. Only used if |
cloud |
Proportional cloud cover (see Details). Either a raster of the same extent as |
day |
Day of the year (1 - 365) at which a prediction is required |
month |
Month (1 - 12) at which a prediction is required |
air |
Temperature of the air at 2 - 10m above ground (in degrees Celsius). See Details. |
conv |
Convection variable, calculated as air temperature anomaly * sqrt(windspeed), where the first term is air temperature minus annual mean air temperature, and the wind speed is in in m/s. See Details. |
wind |
Wind speed (m/s). See Details. |
air.mean |
Mean annual air temperature (in Celsius degrees) |
sw |
Shortwave radiation (in Watts per square metre) incident on horizontal ground at |
soltime.sw |
For |
localtime.sw |
For |
lon |
For interpreting |
merid |
For interpreting |
dst |
For interpreting |
pred |
String or index specifying what microclimate predictions are required: one of (1) monthly means at open sites, (2) monthly means at tree-covered sites, (3) predictions for 13.40 at open sites, or (4) predictions for 13.40 at tree-covered sites. |
daily |
Number of daily intervals (temporal resolution) at which calculations should be made when mean solar radiation is calculated. |
trans0 |
Typical transmission (proportion) of diffuse short-wave radiation through overcast sky. If in doubt, leave at 0.2. |
scale.threshold |
Extent (in degrees latitude) of |
cleanup |
Logical: should rasters for estimated short-wave radiation be deleted (to save memory), and thus not returned in the output object? |
reminders |
Logical: should reminders about assumptions concerning input data be printed on the screen when the function runs? |
... |
Additional arguments to pass to component functions (currently |
The minimum requirement is a raster of elevations (dtm
), with specified projection, and a day; in this case the output will give relative temperature deviations for the specified time of year: these can be either monthly means or instantaneous estimates at 13.40, for either open grassland or tree-covered sites, as specified by pred
. If a value for air
is additionally be provided, the output comprises actual predictions; these will be improved if an estimate for conv
, or wind
together with air.mean
, is provided.
If any values for air
or conv
are provided, they must have appropriate temporal support for the type of predictions required. For pred=1
or pred=2
, they should simply be monthly means. For pred=3
, air
must be an estimate for the time when the prediction is required (i.e. 13:40) and conv
must be a morning mean (averaged over the previous midnight to noon). For pred=4
, air
must be a morning mean and conv
must be estimated for the time when the prediction is required (i.e. 13:40).
If conv
is not specified and values for wind
are instead provided, there are further requirements for wind
and air
: wind
should be a vector of typical daily wind speeds for the month or date in question, evenly spaced throughout the day, and air
should be an equal-length vector of corresponding air temperatures.
A typical or particular value for sw
(short-wave radiation on level ground) can be provided, along with the time (defined by localtime
with merid
and dst
; otherwise assumed to be solar noon) to which it applies. This will be used to calculate standard levels of incident radiation and also to estimate cloud cover, if cloud
is not specified.
microclim |
A raster of predicted temperatures (degrees Celsius) |
rad |
Predicted short-wave radiation values (Watts per sq. m): a raster, unless cleanup=TRUE |
cloud |
Predicted cloud cover (proportion) |
trans |
Value used for sky transmission (proportion); this will equal |
coast |
Distance from the sea (km): a raster if this was provided or if dtm contained NA values representing sea |
air |
Air temperature used for predictions (degrees Celsius) |
conv |
Convection value used for predictions |
day |
Day of the year to which predictions apply |
call |
The function call |
Richard Gunton
Gunton et al. (submitted) Predicting ground temperatures across European landscapes
coastal
,
swrad2.raster
,
srad.raster
,
trans
1 2 3 4 5 6 7 8 9 10 | if(require(raster)) {
data(volcano)
dtm <- raster(volcano,xmn=0,xmx=610,ymn=0,ymx=870,crs="+proj=equirectangular")
micro3 <- micEuroclim(dtm, lat=36.9, coast=4.5, pred=3, day=172)
# imagining this site were in southern Spain!
par(mfrow=c(1,3))
plot(dtm,col=terrain.colors(255))
plot(micro3$microclim)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.