Skip to content

RyanGan/washington_wildfire_2012

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Association between smoke exposure and hospital admissions during the 2012 wildfire season in Washington

Created and maintained by: Ryan Gan

Created on: 9/28/2016

Last Major Update: 5/23/2016

If you have any questions or issues regarding this repository, please contact me via GitHub or the cooresponding author contact in the manuscript below.

Overview

This GitHub repository contains R code and most files relevant to the NASA wildfire smoke project and is specific to our work on assessing the relationship between wildfire smoke exposure and hospital-related morbidity in Washington State during the 2012 wildfire season. This Git repository contains code and some data used in the manuscript Comparison of wildfire smoke estimation methods and associations with cardiopulmonary-related hosptial admissions found online and open access here: http://onlinelibrary.wiley.com/doi/10.1002/2017GH000073/full. (Link will be updated once final version comes out).

Quick Method Outline

The general aim of this project was to assess if there was any association between increasing smoke measured by particulate matter 2.5 ug/m^3 or less (PM2.5) and cardiopulmonary emergency department or urgent care visits in the state of Washington during the 2012 wildfire season.

The general approach was to use observations from sattellite, ground measurements, and chemical weather models to assess PM2.5 due to wildfire smoke at a given location. We then population-weighted these estimates to the ZIP code level as this was the finest spatial resolution available to us for our health data. We then created time-stratified case-cross over dataframes for each cardiopulmonary outcome of interest. We then compared within subject variability of PM2.5 due to wildfire smoke on admission days for the outcome event compared to referent days where the individual was assumed not to have an event.

All code to carry out this method outline is included herein. The code and data used to create the original estimates of wildfire smoke PM2.5 can be found at the Colorado State University Atmospheric Science Department's data repository: https://dspace.library.colostate.edu/handle/10217/179811

Note: This project uses protected health information (i.e. admission date of a patient and reported ZIP code) covered by the Health Information Portability and Accountability Act. Therefore, Washington Comprehensive Hospital Abstract Reporting System (CHARS) data are not available due to data use agreements with Washington State Health Department. Parties interested in reproducing or extending this work will need to set up their own data use agreements with Washington State Health Department in order to receive CHARS data.

File Descriptions

This repository has two main folders: r_scripts and data.

r_scripts

This folder contains three folders of scripts for the R statistical computing language.

/r_scripts/analysis/

  1. washington_results_zip_manuscript.Rmd: This is an R markdown file that contains the code used to produce all the results in the manuscript. The html output is also included in this folder.

/r_scripts/data_management/

  1. chars_2012_data_management.R: This R file contains general exploratory statistics for the CHARS 2012 dataset and creates age and race categories.
  2. chars_2012_outcome_data_management.R: This R file uses the .csv file created in chars_2012_data_management.R and creates binary cardiopulmonary outcomes using ICD-9 codes.
  3. chars_2012_smoke_jul_oct_time_stratified_case_crossover.R: This R file uses the cardiopulmonary outcomes identified and creates time-stratified case-crossover dataframes for each outcome of interest and then joins in smoke estimates. These dataframes are used in the results markdown file, but cannot be included on this GitRepo due to HIPAA requirements.

/r_scripts/smoke/

  1. proportion_intersection_zip_wrfgrid_wash_2012.R: This R file calculates the proportion intersection between the WRF-Grid and Washington ZIP code shape files. The proportion intersection is then used to calculate the ZIP code population-weighted smoke estimates.
  2. zip_population_weighted_estimates_wash_2012.R: This R file calculates the population-weighted smoke PM2.5 estimates for each ZIP code on each day in the smoke season. Estimates produced by this script are then joined to the case-crossover dataframes.

data

This folder contains two folders: pm_data and zipped shape_files.

/data/pm_data/

  1. background_pm25_wash2012.csv: This file is the background PM2.5 estiamtes for each WRF-Grid and is used to represent the background PM2.5 levels. The daily grid-level estimates are substracted off the daily grid-level estimates for the other PM2.5 estimation methods to estimate levels of PM2.5 that may be attributed to wildfire smoke.
  2. geo_weighted_ridge_regression_pm25_wash2012.csv: This file is the GWR estimates mention in the paper. Background levels subtracted off these estimates to get an estimate of GWR-smoke PM2.5.
  3. global_ridge_regression_pm25_wash2012.csv: Estimates of global ridge regression. Similar to GWR estimates.
  4. kriging_pm25_wash2012.csv: Smoothed Kriging estimates of PM2.5.
  5. wa_zip_exp_0710_2012_ryan.csv: This file was provided by our co-author at the CDC. Contains ZIP code-level estimates of windspeed, precipitation, humidity, and temperature.
  6. wash_popdens2010.csv: Census population density estimates rescaled to the WRF-grid. Used to population weight PM2.5 estimates.
  7. washington_fires_location201209.csv: Locations of fires in Washington state. Used in the maps visualizing the spatial extent of smoke impact.
  8. wrf_chem_2m_temperature_wash2012.csv: File of temperature (measured in Kelvin) for each WRF-Grid on each day from the WRF-Chem chemical weather model.
  9. wrf_chem_nofire_wash2012.csv: *File of WRF-Chem PM2.5 estimates with fire emissions option turned off. Used to estimate WRF-Chem smoke estimate.
  10. wrf_chem_pbl_wash2012.csv: File of estimates of planetary boundary layer estimated from WRF-Chem model.
  11. wrf_chem_pm25_wash2012.csv: File of WRF-Chem PM2.5 estimates with fire emissin option turned on. Difference between these estimates and the wrf_no_fire estimates used to estimate WRF-Smoke PM2.5.
  12. zip_pm_to_merge_with_chars.csv: File that contains daily ZIP code-level estimates of PM2.5 calcuated via WRF-Chem, Kriging, and GWR. Includes smoke PM2.5 estimates for each method. This file is merged with the case-crossover dataframes by date and ZIP code.
  13. zip_wrfgrid_proportion.csv: File of proportion overlap between ZIP shapefile and WRF-Grid shapefile.

/data/shape_files/

  1. WAECY_Ecology_Regions.zip: Shapefile of Washington state government ecology regions. Used to help seperate out state for time-series range of smoke maps.
  2. wash_grid_shapefile.zip: Shapefile of WRF-Grid.
  3. wash_zip_2012_shapefile.zip: Shapefile of 2012 US zipcode boundaries from US census. I subset to Washington in a script.

About

R code for NASA wildfire project for Washington State

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published