TOC > MSC data > AQHI > AQHI data in CSV on MSC Datamart
Observation and forecast data generated in CSV format for the Air Quality Health Index (AQHI) program
This page describes the observation and forecast data available in CSV format for the Air Quality Health Index AQHI that are also available on the Environment and Climate Change Canada website.
Data location
MSC Datamart data can be automatically retrieved with the Advanced Message Queuing Protocol (AMQP) as soon as they become available. An overview and examples for accessing and using the Meteorological Service of Canada's open data is also available.
The data is available via the HTTPS protocol. It is possible to access it with a standard browser. In this case, we obtain a list of links giving access to a CSV file.
The data can be accessed at the following address:
-
Observations:
-
Files in real time:
- Atlantic region: https://dd.weather.gc.ca/air_quality/aqhi/atl/observation/realtime/csv
- Ontario region: https://dd.weather.gc.ca/air_quality/aqhi/ont/observation/realtime/csv
- Prairie and Northern Region: https://dd.weather.gc.ca/air_quality/aqhi/pnr/observation/realtime/csv
- Pacific and Yukon Region: https://dd.weather.gc.ca/air_quality/aqhi/pyr/observation/realtime/csv
- Quebec region: https://dd.weather.gc.ca/air_quality/aqhi/que/observation/realtime/csv
-
Monthly files:
- Atlantic region: https://dd.weather.gc.ca/air_quality/aqhi/atl/observation/monthly/csv
- Ontario region: https://dd.weather.gc.ca/air_quality/aqhi/ont/observation/monthly/csv
- Prairie and Northern Region: https://dd.weather.gc.ca/air_quality/aqhi/pnr/observation/monthly/csv
- Pacific and Yukon Region: https://dd.weather.gc.ca/air_quality/aqhi/pyr/observation/monthly/csv
- Quebec region: https://dd.weather.gc.ca/air_quality/aqhi/que/observation/monthly/csv
-
-
Public forecasts:
-
Monthly files:
- Atlantic region: https://dd.weather.gc.ca/air_quality/aqhi/atl/forecast/monthly/csv
- Ontario region: https://dd.weather.gc.ca/air_quality/aqhi/ont/forecast/monthly/csv
- Prairie and Northern Region: https://dd.weather.gc.ca/air_quality/aqhi/pnr/forecast/monthly/csv
- Pacific and Yukon Region: https://dd.weather.gc.ca/air_quality/aqhi/pyr/forecast/monthly/csv
- Quebec region: https://dd.weather.gc.ca/air_quality/aqhi/que/forecast/monthly/csv
-
-
Data from numerical models:
- Atlantic region: https://dd.weather.gc.ca/air_quality/aqhi/atl/forecast/model/csv
- Ontario region: https://dd.weather.gc.ca/air_quality/aqhi/ont/forecast/model/csv
- Prairie and Northern Region: https://dd.weather.gc.ca/air_quality/aqhi/pnr/forecast/model/csv
- Pacific and Yukon Region: https://dd.weather.gc.ca/air_quality/aqhi/pyr/forecast/model/csv
- Quebec region: https://dd.weather.gc.ca/air_quality/aqhi/que/forecast/model/csv
Data retention
Real-time CSV files are produced on an hourly basis and contain the data for the last 7 days. Monthly CSV files are produced at the end of each month.
File name nomenclature
NOTE : ALL HOURS ARE IN UTC.
-
Observations:
- Real-time files : YYYYYMMDDhh_AQHI_REGION_OBSTYPE.csv
- Monthly files : AAAAMM_MONTHLY_AQHI_REGION_OBSTYPE.csv
- Monthly files with backfilled data: AAAAMM_MONTHLY_AQHI_REGION_OBSTYPE_BACKFILLED.csv
-
where:
- YYYYY : Year of observation, 4 digits.
- MM : Month of observation, 2 digits (January = 01).
- JJ : Day of observation, 2 digits.
- hh : Hour of observation, 2 digits.
- mm : Minute of observation, 2 digits.
- 'MONTHLY' : Symbol that is present when the file contains data for the month.
- REGION : Name of Environment and Climate Change Canada region where the observations are located. The possible values are as follows:
- ATL' = Atlantic Region *'ON' = Ontario Region
- NRP' = Prairie and Northern Region
- PYR' = Pacific and Yukon Region
- 'QC' = Quebec Region
- OBSTYPE : Type of observation in the file. The possible options are as follows:
- 'SiteObs' = The file contains AQHI observations for communities,
- 'StationObs' = The file contains AQHI observations for the associated observation stations to communities (not available in January 2012).
- 'BACKFILLED' : Symbol that is present when the file contains AQHI observations that are not calculated in real time, but are calculated from the backfilled data or corrected (received within 48 hours of the validity time).
-
Public forecasts:
- AAAAMM_MONTHLY_AQHI_CGNDBcode_SiteFcst.csv
-
where:
- YYYYY : Year of forecast, 4 digits.
- MM : Month of forecast, 2 digits (January = 01).
- 'MONTHLY' : Symbol that is present when the file contains data for the month.
- CGNDB_code : A 5-character code that identifies each community in the AQHI.
- 'SiteFcst' : Symbol that is present to indicate that the file contains AQHI forecasts for a community.
A complete list of cities, with the codes of CGNDB, Canadian toponymic data maintained by Natural Resources Canada, is available in GeoJSON format.
-
Data from numerical models:
- AAAAMMDDhh_SPECIES_REGION_MODELTYPE.csv
-
where:
- YYYYY : Year for which data were generated, 4 digits.
- MM : Month for which data were generated, 2 digits (January = 01).
- DD : Day for which the data was generated, 2 digits.
- hh : Hour for which the data was generated, 2 digits (00 or 12 UTC).
- 'SPECIES': Name of the chemical species in the file. The possible options are as follows :
- 'O3' = Ozone
- 'NO2' = Nitrogen dioxide
- PM2.5' = Particles with a diameter of less than 2.5 um
- 'PM10' = Particles with a diameter of less than 10 um
- 'AQHI' = Air Quality Health Index
- REGION : Name of the Environment and Climate Change Canada region for which the data are valid. The values
possible are as follows:
- 'ATL' = Atlantic Region,
- 'ON' = Ontario Region,
- 'PNR'' = Prairie and Northern Region,
- 'PYR' = Pacific and Yukon Region,
- 'QC' = Quebec Region;
- MODELTYPE : Indicates the system used to generate the data. The possible options are as follows:
- 'AQFM' = Air quality prediction model.
- 'UMOSAQ' = the "Updateable Model Output Statistics" post-processing system applied to the raw outputs of the AQFM.
- 'UMOSAQMIST' = the combined data of the AQFM and UMOSAQ systems; generated to provide additional information to meteorologists because UMOSAQ data are not always directly available at observation points.
File content
-
CSV files with AQHI observations calculated from pollutant data received in real-time (for files in "real-time" and "MONTHLY" format):
- Header
The header is given on the first line and contains the following information:
Date | Hour | CGNDB_Site1 | CGNDB_Site2 | ... | CGNDB_SiteN |
---|---|---|---|---|---|
-
where:
- 'Date': Fixed string
- 'Hour': Fixed string
- CGNDB_Site#: A 5-letter CGNDB code that identifies each AQHI community
-
Data block
Observations are provided with an accuracy of two decimal. Each line of a data block contains the following information:
YYYYY-MM-DD | hh | AQHI_Site1 | AQHI_Site2 | ... | AQHI_SiteN |
---|---|---|---|---|---|
-
where:
- YYYYY: The year of observation.
- MM: The month of observation.
- DD: The day of observation.
- hhh: Hour for observation.
- AQHI_Site#: AQHI observations for all communities in the region.
Note: For real-time files, AQHI observations cover the latest seven days with the most recent observation on the first line. They are available on the MSC Datamart for a period of 48 hours. For "MONTHLY" files, the AQHI observations cover the period from month end (first line) to beginning of the month (in the last line). They are available on the MSC Datamart for a period of time of 12 months.
- CSV files with AQHI observations calculated from backfilled or corrected data (only files in "MONTHLY" format):
These products have the same description as for the "MONTHLY" files provided in 2.1.1. However, the content is different in that the AQHI values are calculated 48 hours after the validity time for allow the arrival of missing data and corrections for pollutants.
-
CSV files with public AQHI forecasts (only "MONTHLY" files) :
- Header
The header is given on the first line and contains the following information:
cgndb code | community name | issue date | issue time | period | period | value | amended |
---|---|---|---|---|---|---|---|
where the values are all the symbols that describe the content of the following lines.
- Data block
Public forecasts are provided in whole numbers.
CGNDBcode | CommunityName | IssueDate | IssueTime | ForecastPeriod | Value | AmendmentFlag |
---|---|---|---|---|---|---|
-
where:
- CGNDBcode: a 5-character code that identifies each AQHI community.
- CommunityName: the name used to identify the community associated with the CGNDB code, for which the forecast is valid,
- IssueDate: the day for which the forecast was issued (YYYY-MM-DD),
- IssueTime: the exact time the forecast was issued (hh:mm:ss),
- ForecastPeriod: integer with a value of 1, 2, or 3, which represents the forecast period ("Today", "Tonight and Night", or "Tomorrow", respectively),
- for forecasts issued at 06:00 (local time): 1=Today, 2=Today and tonight, 3=Tomorrow
- for forecasts issued at 17:00 (local time): 2=This evening and tonight, 3=Tomorrow
- Value: value of the AQHI forecast for the forecast period in question,
- AmendmentFlag: integer with a value of 0 for the first emission of the forecast and which is incremented by +1 for each subsequent amendment.
Note: In these "MONTHLY" files, AQHI public forecasts are written with the most recent issue (at the end of the month) in the first line and they proceed to move back in time to the first issue (at the beginning of the month) in the last line. They are available on the MSC Datamart for a period of 12 months.
-
CSV files that contain model data:
- Header
The header is given on the first line and contains the following information :
1) For files that contain pollutant data (O3, NO2, PM2.5, PM10):
stationId | forecast date (time 0) | forecast date (time 1) | ... | forecast date (time48) |
---|---|---|---|---|
2) For files that contain AQHI data:
cgndb | forecast date (hour0) | forecast date (hour1) | ... | forecast date (hour47) | forecast date (hour48) |
---|---|---|---|---|---|
-
where:
- "stationId" is a symbol that states that the values in the first column identify stations in the region of interest;
- "cgndb" is a symbol that states that the values in the first column identify the communities in the region of interest;
- The 49 values following stationId are the dates (format=YYYYYMMDDhh) that define the forecast time (H+000 to H+048) of the model and are applicable to all stations.
-
Data block
Model data for all species are provided to 2 decimal.
Each line of a data block contains the following information:
1) For files that contain pollutant data (O3, NO2, PM2.5, PM10):
StationID | Value (H+000) | Value (H+001) | ... | Value (H+047) | Value (H+048) |
---|---|---|---|---|---|
2) For files that contain AQHI data:
StationID | Value (H+000) | Value (H+001) | ... | Value (H+047) | Value (H+048) |
---|---|---|---|---|---|
-
where:
- StationID: NAPS ID that identifies the observation station to which the model data is provided.
- CGNDBcode: a 5-character code that identifies each AQHI community. A list of CGNDB codes is given at the end of this file.
- Value (H+000 to H+048): model value derived at the observation station (for UMOSAQ) or interpolated at the observation station (for AQFM, UMOSAQMIST).
Notes
-
Real-time CSV files are produced on an hourly basis and contain the data for the last 7 days. They are available on the MSC Datamart for a period of 8 days. "MONTHLY" CSV files are produced at the end of each month. They are available on the MSC Datamart for a period of 12 months.
-
In the CSV files for the AQHI, the value of the first hour is always missing because the AQHI formula requires a minimum of two hours in the last 3 hours to calculate moving averages.
-
In CSV files for UMOSAQ, it is possible that some values are missing since UMOS guidance may not be available for all hours. The availability of UMOS guidance for a specfic hour is dependent upon having sufficient historical data to be able to generate reliable predictive statistical equations.
-
Air quality observations are distributed by provinces and municipalities. Provincial jurisdictions control how comments are communicated to the public. Quebec has not authorized the publication of air quality data in the form of an Air Quality Health Index (AQHI). This explains why there are no observations under the directory: https://dd.weather.gc.ca/air_quality/aqhi/que/observation/. However, the Ministry of Sustainable Development, Environment and Climate Change and the City of Montreal also distribute some of their data on the American portal AirNow: https://www.airnowtech.org/index.cfm?page=login.
Support
If you have any questions about this data, please contact us.
Announcements from the dd_info mailing list
Announcements related to this dataset are available via the dd_info list