# Let consider the next geographical positions:
lat <- c(s28434 = 56.65, s28418 = 56.47, s23711 = 62.70, ControlPoint = 57)
lon <- c(s28434 = 57.78, s28418 = 53.73, s23711 = 56.20, ControlPoint = 57)
# * ground temperatures at first three locations on 02 March 2023 at depth 3 m:
mgtdhgeo(head(lat, 3), head(lon, 3), tau = as.POSIXct("2023-03-02"), depth = 3)
# * it is the same as obtaining ground temperatures from weather stations:
mgtdhid(id = c(28434L, 28418L, 23711L), tau = as.POSIXct("2023-03-02"), depth = 3)
# * undisturbed ground temperature plot at Control Point:
days <- as.POSIXct("2023-01-01") + 3600*24*(seq.int(1, 365) - 1)
plot(
days,
mgtdhgeot(days, lat[["ControlPoint"]], lon[["ControlPoint"]]),
type = "l",
ylab = "Temperature, °C"
)
Run the code above in your browser using DataLab