This project identifies extreme climate events from environmental data. The current focus is on heatwave detection.
This project leverages the {targets} package, a pipeline toolkit for data science projects in R. The packages used in this analysis are catalogued in the DESCRIPTION
file. The project also uses the {renv} package to ensure reproducibility. To initialize the project on your machine, open the project (most easily by opening the .Rproj
file in Rstudio), install the {renv}
package and "restore" the project to ensure all of the necessary packages are installed (with the correct versions):
# install.packages("renv")
renv::restore()
Run targets::tar_make()
to run the project.
Heatwave detection is implemented using Open Government Licence - Canada data retrieved from Environment Canada and detected using the {heatwaveR} package.
duckdb
database.{fields}
R package), and combined as a 3-dimensional raster cube (x, y, time) of daily maximum temperatures using the {stars}
R packageheatwaveR::ts2clm()
and 30 years of daily maximum temperature data (1990-2020), and heatwave thresholds are calculated at the 90th percentile of the daily normal tmax.heatwaveR::detect_event()
, with a minimum duration of 2 days,
and the thresholds calculated in the previous step.out/heatwave_summaries
out/data/daily_temps
as .tif
filesThe air quality data are sourced from the B.C. Data Catalogue, provided under the Open Government Licence—British Columbia (this file: ftp://ftp.env.gov.bc.ca/pub/outgoing/AIR/AnnualSummary/2009-LatestVerified/PM25.csv)
Using the method implemented in rcaaqs::pm_24h_caaqs()
, data were aggregated to a daily average.
Water level (hydrometric) data is retrieved from the Environment & Climate Change Canada HYDAT database, provided under the Open Government Licence - Canada, using the {tidyhydat} package.
This project is in the very early stages of design.
To report bugs/issues/feature requests, please file an issue.
If you would like to contribute, please see our CONTRIBUTING guidelines.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Copyright 2020 Province of British Columbia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
This project was created using the bcgovr package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.