{"name":"BIS_fnc_interpolateWeather","title":"BIS fnc interpolateWeather","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_interpolateWeather","revid":309835,"updated":"2022-05-05T12:09:52Z","groups":["Environment"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Interpolate weather (overcast and fog) according to 2 boundry dates and their weather conditions.","syntaxes":[{"syntax":"[param0, param1, param2, param3, param4] call BIS_fnc_interpolateWeather","params":[{"name":"param0","type":"Array","type_expr":"Array","description":"_date1     [_year1,_month1,_day1,_hour1,_min1]","text":"0: array    - _date1     [_year1,_month1,_day1,_hour1,_min1]","source":"docblock"},{"name":"param1","type":"Array","type_expr":"Array","description":"_weather1    [_overcast1,_fog1]","text":"1: array    - _weather1    [_overcast1,_fog1]","source":"docblock"},{"name":"param2","type":"Array","type_expr":"Array","description":"_date2     [_year2,_month2,_day2,_hour2,_min2]","text":"2: array    - _date2     [_year2,_month2,_day2,_hour2,_min2]","source":"docblock"},{"name":"param3","type":"Array","type_expr":"Array","description":"_weather2    [_overcast2,_fog2]","text":"3: array    - _weather2    [_overcast2,_fog2]","source":"docblock"},{"name":"param4","type":"Array","type_expr":"Array","default":"current date","description":"_subjectDate     [_year,_month,_day,_hour,_min] (default: current date)","text":"4: array    - _subjectDate     [_year,_month,_day,_hour,_min] (default: current date)","source":"docblock"}],"returns":{"text":"[_interpolatedOvercast,_interpolatedFog]","source":"docblock"},"inferred":true}],"examples":[{"code":["[_overcast,_fog] = [[2035,1,5,24,00],[0.1,0.5],[2035,1,10,24,00],[0.3,0.2],[2035,1,7,24,00]] call BIS_fnc_interpolateWeather;"]}],"docblock":{"text":"Description:\nInterpolate weather (overcast and fog) according to 2 boundry dates and their weather conditions.\n\nParameter(s):\n_this select 0: array    - _date1     [_year1,_month1,_day1,_hour1,_min1]\n_this select 1: array    - _weather1    [_overcast1,_fog1]\n_this select 2: array    - _date2     [_year2,_month2,_day2,_hour2,_min2]\n_this select 3: array    - _weather2    [_overcast2,_fog2]\n_this select 4: array    - _subjectDate     [_year,_month,_day,_hour,_min] (default: current date)\n\nReturns:\n[_interpolatedOvercast,_interpolatedFog]\n\nExample:\n[_overcast,_fog] = [[2035,1,5,24,00],[0.1,0.5],[2035,1,10,24,00],[0.3,0.2],[2035,1,7,24,00]] call BIS_fnc_interpolateWeather;"},"filled_from_docblock":["description","params","syntax","returns","examples"]}