Search the Community
Showing results for tags 'sun'.
Found 1 result
Inspired by MKY's blizzard script, I created functions that provide you with climatological information. The functions contain a simple climatological model and statistical data, that I gathered from all kinds or sources on the web. The climatological data can be overridden by terrain makers, using config entries. I hope that this will contribute to the creation of weather add-ons, realism- and survival mods. The archive includes a demonstration script. Download: https://drive.google.com/file/d/1mkwaLX9Mxri2tIQvB-25OJ99t-K_WPq6/view?usp=sharing FEATURES Input variables for functions are mostly limited to time, date and a position or object. Besides climatological data, the functions determine Latitude, time, date, overcast, fog, cloud occlusion, terrain occlusion, and object occlusion to calculate output values. The following features are included: * Air and Sea temperatures (array of numbers: °C) - llw_fnc_getTemperature * Date and time (text: YYYY-MM-DD hh:mm:ss) - llw_fnc_getDateTime * Shadow detection (boolean: true / false) - llw_fnc_inShadow * Solar Azimuth and Elevation angles (array of numbers: degrees) - llw_fnc_getSunAngle * Solar Elevation angle at 12:00PM (number: degrees) - llw_fnc_getSunElevationNoon * Solar Radiation energy (number: W/m²) - llw_fnc_getSunRadiation * Sunrise and Sunset time (array of numebers: hours) - llw_fnc_getSunRise Please refer to the enclosed README.TXT for further details.