This function lets you see when it gets warm at a designated city. YOu set the minimum low and high for the day, plus the number of consecutive days the criteria must be met.
1
.
The location. Use  = to enter an entity corresponding to the city or town you want. Remember that you must resolve any ambiguities.
2
.
The minimum low temperature for the day. This can be either degrees Celsius or Fahrenheit. The default is °C.
3
.
The minimum high temperature for the day. Again, either degrees Celsius or Fahrenheit. The default is °C.
4
.
The number of consecutive days.
5
.
Setting for the temperature scale. True  °C, False  °F. If you omit this, °C will be used.
So, to see when it gets warm in Hackensack, NJ, warm being defined as at least 10°C for the low, 20°C for the high, for 5 consecutive days, execute:
In[]:=
whenDoesItGetWarm
Hackensack
CITY
,10,20,5,True
Out[]=
At Hackensack : Criteria: low temp ≥ 10°C, high temp ≥ 20°C for 5 consecutive days.
The earliest date that the criteria was met is :
Sun 29 Mar 1998
The last date that the criteria was met is :
Fri 23 Jun 2023
The median date that the criteria was met is :
May 21
In[]:=
whenDoesItGetWarm
Dublin
CITY
,10,20,5,True
Out[]=
At Dublin : Criteria: low temp ≥ 10°C, high temp ≥ 20°C for 5 consecutive days.
The earliest date that the criteria was met is :
Sun 28 May 1978
The last date that the criteria was met is :
None: years when it never got warm
The median date that the criteria was met is :
Cannot compute
In[]:=
whenDoesItGetWarm
Cairo
CITY
,10,20,5,True
Out[]=
At Cairo : Criteria: low temp ≥ 10°C, high temp ≥ 20°C for 5 consecutive days.
The earliest date that the criteria was met is :
Wed 1 Jan 2003
The last date that the criteria was met is :
Sat 11 Mar 2000
The median date that the criteria was met is :
February 13

Extras


Implementation

In[]:=

CITE THIS NOTEBOOK

When does it get warm? A function for urban warming trends via min/max temp thresholds​
by George Woodrow III​
Wolfram Community, STAFF PICKS, September 4, 2025
​https://community.wolfram.com/groups/-/m/t/3539980