XPLMSetWeatherAtLocation

XPLM_API void       XPLMSetWeatherAtLocation(
                         double               latitude,
                         double               longitude,
                         double               ground_altitude_msl,
                         XPLMWeatherInfo_t *  in_info);

Set the current weather conditions at a given location on the ground and above it.. Please see the notes on individual fields in XPLMSetWeatherAtAirport, and notes on timing in XPLMEndWeatherUpdate.

The ground altitude passed into this function call does not set the area of influence of this weather vertically; the weather takes effect from 0 MSL ground up to the passed in max_altitude_msl_ft The ground altitude passed in is the elevation of the reporting station to calibrate QNH.

This call is not intended to be used per-frame. It should be called only during the pre-flight loop callback.