Skip to content

Ontario daily average climate variables by Census districts

Notifications You must be signed in to change notification settings

minnzc/Ontario_Daily_Climate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ontario average climate conditions by Census divisions data set

Climate conditions variables (average temperature, minimum temperature, maximum temperature, and average precipitation) are recorded daily with a 2-3 day lag by weather stations. I take the mean of all weather stations non-null climate variable values contained within a Census subdivision. Then, I take the weighted mean of all Census subdivisions with non-null climate variable values within a Census division. Weights are frequency weights using 2019 Census subdivision population estimates. If a Census division contains no weather stations (8 of 49) or if weather stations in a district were shut down or for some reason did not record a measurement on a day, I take the mean of the 3 closest Census divisions with weather stations.

Final data set

daily_cd_climate.csv

Variables

  • cduid: 4-digit Census division code (2-digit province code and 2-digit unique Census division code)
  • date: date formatted YYYY-MM-DD
  • avg_temp: average temperature in degrees Celsius
  • min_temp: average minimum temperature in degrees Celsius
  • max_temp: average maximum temperature in degrees Celsius
  • avg_precip: average precipitation (rain and/or snow) in mm

Data sources

Analysis code

Key elements of the analysis code are as follows:

  • getCDAverages.py: a Python script run once weekly to update climate contained in the DATA folder and calculate averages
  • functions.py: a Python script containing all defined functions called upon by getCDAverages.py

Contact

Minnie Cui minniehcui@gmail.com

About

Ontario daily average climate variables by Census districts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published