Learn R Programming

simulariatools (version 3.1.0)

turnerStabilityClass: Turner stability class

Description

Computes PGT stability class using Turner method, based on the local wind speed, cloud cover, ceiling height and solar elevation.

Usage

turnerStabilityClass(
  datetime,
  longitude,
  latitude,
  ws,
  cloud_cover,
  ceiling_height
)

Value

A numeric value (or vector) in the range 1 to 6, where 1 = A, 2 = B, ..., 6 = F.

Arguments

datetime

datetime object (class POSIXct). Either a single value or a vector

longitude, latitude

geographical coordinates (in degrees) of the point of interest

ws

wind speed at 10 m (in m/s)

cloud_cover

Total cloud cover in the range 1...8

ceiling_height

Ceiling height in metres

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

Run this code

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

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


Run the code above in your browser using DataLab