Skip to content

nasiegel88/airquality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

California Wildfire Air Quality

Binder

Air Quality Jupyter Notebook

The purpose of this repo is to make working with the PWFSLSmoke R package more easy to interact with for people without extensive background in R.

I. Run locally

In order to recreate this notebook book install clone this repo.

git clone [email protected]:nasiegel88/airquality.git
cd airquality

Next, create the R environment for the interactive python notebook. Mamba is the fastest way to set up this environment and information on how to get mamba installed can be found here. Note the installation assumes conda was previously installed. If conda has not been installed, the installation process is listed here.

mamba env create -n airquality -f environment.yml
conda activate airquality
R -e 'IRkernel::installspec()'

Launch the notebook!

jupyter-notebook
II. Using Binder

Binder is a service that allows users to turn GitHub repos into interactive notebooks. This workflow can be used in binder by clicking on the binder link on the top of the page. Once there, all of the software needed will be installed. Note, PWFSLSmoke has a lot of dependencies so it will take a few minutes to install everything. Also, since not all packages are available in conda, additional packages will also have to be installed after launching the python notebook.

Load additional packages.

source('00-R/main.R')

Using PWFSLSmoke

The PWFSLSmoke R package is being developed for PWFSL to help modelers and scientists more easily work with PM2.5 data from monitoring locations across North America.

Once the notebook is launched various parameters can be input such as criteria for what AQI monitors to include in a query. The California Air Resource Board(CARB) has a website where users can enter either a CARB site number or a AQS number to record PM2.5 emission in a given area or areas.

drawing

Troubleshooting:

  • Issue installing terra
    • Try installing the following Linux dependencies
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libgdal-dev libgeos-dev libproj-dev 

To-do

  • Calculate PM 2.5 concentration from air quality index
  • Concentration of PM 2.5 exposure during wildfire

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published