Tools › Environmental › Weather and Climate › Climate Summary › Method

Climate Summary: Method

Open the free Climate Summary from Daily Weather Data

Climate Summary: Monthly and Yearly Statistics of a Daily Weather Record

The tool takes one row per day (date, maximum temperature, minimum temperature, precipitation and, if present, snowfall) and returns the figures a climate summary of a station holds: means and totals by calendar month and by year, heating and cooling degree days, counts of wet days and of days beyond temperature thresholds, extremes with their dates, a day-of-year band of the usual range, freeze dates and the straight-line trend of the yearly values. It summarizes the rows pasted, in the units pasted; the result is not a certified record and its figures are not design values.

The idea: a month first, then everything else from months

Every figure is built from the days of one month. A month's mean maximum is the mean of its daily maxima; its precipitation is the sum of its days. A calendar-month figure ("January") is the mean of the Januaries that have enough days. A yearly figure is built from that year's twelve months, and the Year row of the monthly table from the twelve calendar-month figures. Working through months is what lets a record with holes be summarized without a missing week in one July pulling every figure of the record.

The equations

QuantityFormulaNote
Daily mean temperatureTmean = (Tmax + Tmin)/2needs both values of the day
Heating degree days of a daymax(0, Tbase − Tmean)the National Weather Service base is 65 °F
Cooling degree days of a daymax(0, Tmean − Tbase)the two bases may differ
Monthly mean maximum, minimumsum of the daily values ÷ days with a valuemonth counted when few days are missing
Monthly average temperature(mean maximum + mean minimum)/2not the mean of the daily means when days are missing unevenly
Monthly totalssum over the days of the monthdegree days, precipitation, snowfall; a trace counts as zero
Calendar-month figuremean over the counted months of that nameone value per year, each year the same weight
Mean day count of a calendar monthmean over the years of (days meeting the condition ÷ days observed) × length of the monthFebruary taken as 28.25 days
Yearly temperaturemean of the twelve monthly meanseach month the same weight, whatever its length
Yearly totals and countssum of the twelve monthsgiven when all twelve months count
Trendb = Σ(t − t̄)(y − ȳ) ÷ Σ(t − t̄)²least squares on the yearly values; interval b ± tn−2 sb
Percentilevalue at rank 1 + (n − 1)p, interpolated between the two nearest ranks10th and 90th of the pooled window

A worked day, in the words of the National Weather Service example: a high of 33 °F and a low of 25 °F give a mean of 29 °F, and 65 − 29 = 36 heating degree days. A day with a high of 90 °F and a low of 66 °F has a mean of 78 °F and 78 − 65 = 13 cooling degree days. A day whose mean is exactly at the base adds nothing to either.

Missing days

For each element (maximum, minimum, precipitation, snowfall) and each month, the tool counts the days without a value and the longest run of such days. A day with no row at all is missing for every element. A month enters the means and totals of an element when at most N days are missing and at most R in a row; otherwise the month is left out for that element and listed. The opening values, N = 5 and R = 3, are those stated in the documentation of NOAA's Global Summary of the Month; the method papers of the 1981 to 2010 U.S. Climate Normals describe monthly temperatures computed with up to nine missing days. Other services use other rules: enter the rule your work calls for. The average temperature and the degree days of a month need both the maximum and the minimum to count.

A counted month may still lack a few days. Means are not affected much, but totals and counts of the days present run low. In Advanced mode the totals and counts of such a month can be scaled by the days in the month over the days present. Mean day counts of the calendar months always use shares of the observed days, the procedure the WMO asks for in climate normals, so that missing days do not pull a count down.

The day-of-year band

One station has only as many values for July 16 as it has years, too few for a percentile. The tool therefore pools, for each calendar day, every value within a window centered on it (15 days unless changed), over all years, and takes the mean, the 10th and 90th percentiles and the lowest and highest value of the pool. February 29 shares the slot of February 28.

Five years of daily maximum temperatures in July drawn as rows of squares; the 15 squares centered on July 16 in every year are highlighted and pooled into one sample of 73 values, two days being missing
Figure 1: The pool behind one calendar day of the band: 15 days in each of five years.

The band is a description of the pasted years. It is rougher than the smooth daily normals a weather service publishes, which rest on 30 years and on a fitted yearly cycle.

Freeze dates

For each year the tool finds the last day before July 1 and the first day from July 1 on whose minimum is at or below the freeze temperature, and counts the days between the two. The mean dates and the mean number of days use the years whose twelve months all count for the minimum temperature.

Trend

The yearly values are fitted by a least-squares line against the year. The slope is printed per decade with a t interval on n − 2 degrees of freedom and its p-value. With a handful of years the interval is wide, and the page says so beside the numbers: year-to-year scatter is large beside any slow change, which is why climate normals are 30-year averages.

What it assumes

  • One station, one instrument exposure and one observing practice throughout. A station move, a new sensor or a change in the hour of the daily reading shifts the values, and the page does not look for such shifts.
  • The daily mean is the midpoint of the maximum and the minimum, as in U.S. practice for degree days. A mean of 24 hourly readings differs from it, often by a degree or more.
  • The pasted values are right. Nothing is checked beyond a wide range test; a maximum below the minimum is counted and used as pasted. When a pasted NOAA file carries its attribute columns, values with a quality flag are treated as missing.
  • Years run from January to December. The heating season from July to June is shown beside the calendar year, and the freeze dates split the year at July 1: both suit the northern mid-latitudes only.
  • The trend interval treats the yearly values as independent and the change as a straight line.

When it misleads

  • A short record read as a climate. Ten years describe those ten years. A wet or cold spell of a few years moves every mean, and the slope of a line through ten points says little about the long run.
  • Totals of months with gaps. A month with four missing days counts, and its precipitation total is that of the days present unless scaling is chosen. If the missing days held the storm of the month, neither choice recovers it.
  • Days read as zero that were not measured. A blank and a zero are different. A file in which unmeasured precipitation was typed as 0 gives totals that are too low, and nothing in the numbers shows it.
  • Extremes of a short record. The highest and lowest values are those of the days pasted, not the records of the place.
  • Degree days used as an energy figure. Degree days to 65 °F track heating and cooling demand only roughly; the temperature at which a given building needs heat is its own. The two bases are inputs for that reason.
  • Comparison with published normals. Published normals rest on checked records adjusted for station changes and filled from neighboring stations, and on a fixed 30-year span. Differences of a few tenths of a degree from this page's plain averages are expected even for the same years.

Common mistakes

  • Computing degree days from the monthly mean temperature. A month with a mean of exactly 65 °F still has heating degree days on its cool days and cooling degree days on its warm ones; the sum over days is the definition.
  • Averaging the daily means of the days that happen to be present instead of the mean maximum and the mean minimum, when one of the two is missing on some days.
  • Averaging all the days of a year for the yearly temperature. Weather services average the twelve monthly means, which gives February the same weight as July.
  • Counting a trace as a wet day, or adding a small amount for it. A trace is recorded because it could not be measured; it adds zero.
  • Mixing units: degree days in °F are 1.8 times those in °C for the same base, and a base of 18 °C is not 65 °F (which is 18.33 °C).
  • Treating a month with no rows as a month of zeros. It is a month without data.
  • Comparing a calendar-year heating total with a heating-season total. The two cover different winters.

Related tools

This tool adds the summary of a pasted daily record to its neighbors: Extreme Value Analysis fits the yearly maxima or the peaks of such a record and gives return levels; Energy Baseline Regression relates metered energy to degree days or temperature, for which the monthly degree days computed here are the usual input; Room Heating and Cooling Load sizes equipment from design temperatures, which come from the governing standard and not from a summary of means; Flood Frequency Analysis treats annual peak flows by the Bulletin 17C procedure.

Verification

The monthly means, totals, day counts, extremes with their dates and degree days were reproduced for the 120 months of Chicago O'Hare International Airport, 2011 to 2020, against NOAA's Global Summary of the Month, and the yearly values against the Global Summary of the Year, from the same station's daily file. The degree-day arithmetic also reproduces the worked examples printed by the National Weather Service and the Climate Prediction Center. The calendar-month means, the day-count procedure, the missing-day rule, the day-of-year percentiles, the freeze dates and the trend intervals are checked against an independent script built on numpy and scipy, on a real record and on seeded records with gaps. One finding of that work: the summaries in degrees Celsius use a base of 18.33 °C (65 °F), although the documentation writes 18.3 °C.

Open the free Climate Summary from Daily Weather Data