Function Repository Resource:

WindChill

Source Notebook

Calculate the effect of the wind on the temperature that humans perceive

Contributed by: Claudio Lobo Chaib Filho

ResourceFunction["WindChill"][]

gives the wind chill for the user's location.

ResourceFunction["WindChill"][loc]

gives the wind chill for a specific location loc.

ResourceFunction["WindChill"][{t,ws}]

gives the wind chill for a given temperature t and wind speed ws.

ResourceFunction["WindChill"][,form]

gives the result in the desired output form form.

Details and Options

Wind chill is the temperature perceived by humans, taking into account air temperature and wind speed. The function works with temperature values between -70 °C and 10 °C and values between 4.282 km/h and 400 km/h for wind speed.
The loc argument is a location in the form of an Entity, a GeoPosition or Here. This information comes from the nearest weather station to that location and the value may vary over time. A list of air temperature and wind speed information can be used in place of a location.
The form argument can be a temperature, a plot or an association giving both temperature and plot:
"Temperature"the perceived temperature due to wind chill
"Plot"a plot of the perceived temperature versus wind speed at the given air temperature
"PropertyAssociation"all results as an Association
The default value of the form argument when not given is "Temperature".
If the temperature unit is not specified for the t argument, the input is considered degrees Celsius. Examples of degree units for temperature accepted by the function are:
Quantity[-20,"DegreesCelsius"]degrees Celsius
Quantity[-90,"DegreesFahrenheit"]degrees Fahrenheit
Quantity[420,"DegreesRankine"]degrees Rankine
Quantity[215,"Kelvins"]Kelvins
-20degrees Celsius
If the wind speed unit is not specified for the ws argument, it is considered kilometers per hour. Examples of input allowed for wind speed and how it is interpreted are:
Quantity[30, "Kilometers"/"Hours"]kilometers per hour
Quantity[20, “Miles"/"Hours”]miles per hour
15kilometers per hour
ResourceFunction["WindChill"] accepts the option "ResultUnit" to specify the unit of the result. The accepted values are "DegreesFahrenheit", "DegreesCelsius", "DegreesRankine" and "Kelvins". By default, the unit is inherited from the inputs. If no unit is provided, "DegreesCelsius" is used.

Examples

Basic Examples (3) 

Using WindChill without arguments uses Here as the location:

In[1]:=
ResourceFunction["WindChill"][]
Out[1]=

Find the wind chill at a given location:

In[2]:=
ResourceFunction["WindChill"][
 Entity["City", {"Yakutsk", "Yakutia", "Russia"}]]
Out[2]=

This is equivalent to using "Temperature" as a second argument:

In[3]:=
ResourceFunction["WindChill"][
 Entity["City", {"Yakutsk", "Yakutia", "Russia"}], "Temperature"]
Out[3]=

Use WindChill with a temperature and wind speed:

In[4]:=
ResourceFunction[
 "WindChill"][{Quantity[-15, "DegreesCelsius"], Quantity[65, ("Kilometers")/("Hours")]}]
Out[4]=

Scope (6) 

The air temperature can be given in degrees Fahrenheit. Note that the result has the same temperature units:

In[5]:=
ResourceFunction[
 "WindChill"][{Quantity[-90, "DegreesFahrenheit"], Quantity[35, ("Kilometers")/("Hours")]}]
Out[5]=

If the temperature is not explicitly given a unit, it is interpreted as degrees Celsius:

In[6]:=
ResourceFunction[
 "WindChill"][{-27, Quantity[30, ("Miles")/("Hours")]}]
Out[6]=

If the wind speed is not explicitly given a unit, it is interpreted as kilometers per hour:

In[7]:=
ResourceFunction[
 "WindChill"][{Quantity[420, "DegreesRankine"], 115}, "Temperature"]
Out[7]=

Return a plot:

In[8]:=
ResourceFunction["WindChill"][
 Entity["Desert", "AntarcticDesert::t3r87"], "Plot"]
Out[8]=

Get an Association of results:

In[9]:=
ResourceFunction["WindChill"][
 Entity["City", {"PuntaArenas", "Magellanes", "Chile"}], "PropertyAssociation"]
Out[9]=

The function can accept a GeoPosition instead of an Entity:

In[10]:=
ResourceFunction["WindChill"][GeoPosition[{-53.933333, -71.333333}]]
Out[10]=

Options (2) 

The "ResultUnit" option specifies the temperature unit for the result:

In[11]:=
ResourceFunction[
 "WindChill"][{Quantity[-87, "DegreesFahrenheit"], 42}, "Temperature", "ResultUnit" -> "Kelvins"]
Out[11]=

By default, WindChill uses either the input units or degrees Celsius if the input is a location:

In[12]:=
ResourceFunction[
 "WindChill"][{Quantity[-87, "DegreesFahrenheit"], 42}, "Temperature"]
Out[12]=
In[13]:=
ResourceFunction["WindChill"][
 Entity["City", {"PuntaArenas", "Magellanes", "Chile"}], "Temperature"]
Out[13]=

Note that the "Plot" output is also changed in the plot when the option "ResultUnit" option is given:

In[14]:=
ResourceFunction[
 "WindChill"][{-25, Quantity[32, ("Kilometers")/("Hours")]}, "Plot", "ResultUnit" -> "DegreesRankine"]
Out[14]=

Possible Issues (4) 

Many times, the temperature of a specific location is outside the possible range for wind chill calculation. In these cases, the temperature of the result is provided directly by the weather station as wind chill; TildeTilde appears in the answer and a message is issued saying that the value is not accurate:

In[15]:=
ResourceFunction["WindChill"][Here]
Out[15]=

Sometimes the nearest weather station to a specific location does not have air temperature, wind speed or wind chill data:

In[16]:=
ResourceFunction["WindChill"][
 Entity["City", {"Quito", "Pichincha", "Ecuador"}]]

Even if the unit of the input wind speed is different from kilometers per hour, the x-axis in the plot remains in kilometers per hour:

In[17]:=
ResourceFunction[
 "WindChill"][{Quantity[230, "Kelvins"], Quantity[15, ("Miles")/("Hours")]}, "Plot", "ResultUnit" -> "DegreesRankine"]
Out[17]=

The function only accepts temperature values between -70 °C and 10 °C and wind speed between 4.828 km/h and 400 km/h, so when a specific weather station provides temperature and wind speed values outside these limits, the function automatically acquires the value of the wind chill directly from the weather station itself:

In[18]:=
WeatherData[
   Entity["City", {"Pyongyang", "Pyongyang", "NorthKorea"}], #] & /@ {"Temperature", "WindSpeed", "WindChill"}
Out[18]=
In[19]:=
ResourceFunction[
 "WindChill"][{Quantity[25, "DegreesCelsius"], Quantity[22.32`, ("Kilometers")/("Hours")]}, "Temperature"]
Out[19]=
In[20]:=
ResourceFunction["WindChill"][
 Entity["City", {"Pyongyang", "Pyongyang", "NorthKorea"}]]
Out[20]=

Publisher

Claudio Lobo Chaib Filho

Version History

  • 1.0.0 – 22 September 2020

Related Resources

License Information