Computes PGT stability class using Turner method, based on the local wind speed, cloud cover, ceiling height and solar elevation.
Details
If datetime is a vector, an equal length vector for the other input
parameters is expected. It is also possible to provide a single value
for the other parameters; in that case the value is kept constant along
all the deadlines.
See also
stabilityClass() which computes stability class with other methods.
plotStabilityClass() to produce graphical outputs with stability class.
Examples
# Single value example:
turnerStabilityClass(
datetime = as.POSIXct("2024-12-01 13:00", tz = "ETC/GMT-1"),
longitude = 7.12,
latitude = 45.10,
ws = 3,
cloud_cover = 3,
ceiling_height = 3000
)
#> [1] 3
# datetime vector with constant values
deadlines <- seq(
from = as.POSIXct("2024-12-01 00:00"),
to = as.POSIXct("2024-12-31 23:00"),
length.out = 24 * 31
)
turnerStabilityClass(
datetime = deadlines,
longitude = 7.12,
latitude = 45.10,
ws = 3,
cloud_cover = 3,
ceiling_height = 3000
)
#> [1] 6 6 6 6 6 6 6 6 6 4 4 3 3 3 3 4 4 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 4 3 3
#> [38] 3 3 4 4 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 4 3 3 3 3 4 4 6 6 6 6 6 6 6 6 6
#> [75] 6 6 6 6 6 6 6 4 4 3 3 3 3 4 4 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 4 3 3 3 3
#> [112] 4 4 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 4 3 3 3 3 4 4 6 6 6 6 6 6 6 6 6 6 6
#> [149] 6 6 6 6 6 4 4 3 3 3 3 4 4 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 4 3 3 3 3 4 4
#> [186] 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 4 3 3 3 3 4 4 6 6 6 6 6 6 6 6 6 6 6 6 6
#> [223] 6 6 6 4 4 3 3 3 3 4 4 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 4 3 3 3 3 4 4 6 6
#> [260] 6 6 6 6 6 6 6 6 6 6 6 6 6 6 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