XPLMWeatherInfo_t

Basic weather conditions at a specific point.

typedef struct {
     // The size of the struct.
     int                       structSize;
     // Temperature at the given altitude in Celsius
     float                     temperature_alt;
     // Dewpoint at the given altitude in Celsius
     float                     dewpoint_alt;
     // Pressure at the given altitude in Pascals
     float                     pressure_alt;
     // Precipitation rate at the given altitude
     float                     precip_rate_alt;
     // Wind direction at the given altitude
     float                     wind_dir_alt;
     // Wind speed at the given altitude, meters/sec
     float                     wind_spd_alt;
     // Turbulence ratio at the given altitude
     float                     turbulence_alt;
     // Height of water waves in meters
     float                     wave_height;
     // Length of water waves in meters
     float                     wave_length;
     // Direction from which water waves are coming
     int                       wave_dir;
     // Speed of wave advance in meters/sec
     float                     wave_speed;
     // Base visibility at 0 altitude, meters
     float                     visibility;
     // Base precipitation ratio at 0 altitude
     float                     precip_rate;
     // Climb rate due to thermals, meters/sec
     float                     thermal_climb;
     // Pressure at 0 altitude in Pascals
     float                     pressure_sl;
     // Defined wind layers. Not all layers are always defined.
     XPLMWeatherInfoWinds_t    wind_layers[13];
     // Defined cloud layers. Not all layers are always defined.
     XPLMWeatherInfoClouds_t   cloud_layers[3];
} XPLMWeatherInfo_t;