micEuroclim: Predict soil surface temperature anywhere in Europe

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/micEuroclim.R

Description

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.

Usage

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, ...)

Arguments

dtm

Digital terrain model, as a raster object

coast

Distances from the nearest sea (in km), in case dtm contains no sea (blocks of NA values; see coastal). Either a raster of coastal distances of the same extent as dtm, or a single approximate value to be used across the whole map (e.g. if the nearest sea is > 100 km away). See coastal for further details.

lat

Latitude (average) of the site. Only used if dtm does not have a "LonLat" projection.

cloud

Proportional cloud cover (see Details). Either a raster of the same extent as dtm, or a single value to be used across the whole map.

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 localtime (to be passed to trans or swrad2.raster). May be obtained from regional weather station or reanalysis data.

soltime.sw

For sw: Local solar time, in hours from midnight, at which any value for sw is given.

localtime.sw

For sw: Local clock time, in hours from midnight, at which any value for sw is given. Overrides any value for soltime.sw.

lon

For interpreting localtime.sw: Longitude, in degrees east from Greenwich

merid

For interpreting localtime.sw: Longitude of local standard time meridian, in degrees east from Greenwich. Thus the default (0) corresponds to the Greenwich Mean Time meridian. For Central European Time (most of Western Europe except UK, Eire and Portugal), use merid = 15.

dst

For interpreting localtime.sw: Correction for summer time (=1 if local time has been adjusted for summer daylight-saving time, =0 if not)

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 dtm below which a single, average, value for its latitude may be used, in order to speed computations and save memory.

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 coastal, trans, srad.raster, swrad2.raster).

Details

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.

Value

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 1- cloud*(1- trans0) if sw is not provided. Otherwise, it is obtained using trans.

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

Author(s)

Richard Gunton

References

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

See Also

coastal, swrad2.raster, srad.raster, trans

Examples

 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)
}

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