Skip to content

Commit

Permalink
localNotebooks/ cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathancallahan committed Jan 4, 2018
1 parent c0b70af commit a03ba7a
Show file tree
Hide file tree
Showing 10 changed files with 187 additions and 619 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Type: Package
Package: PWFSLSmoke
Version: 1.0.1
Version: 1.0.2
Title: Utilities for Working with Air Quality Monitoring Data
Authors@R: c(
person("Jonathan", "Callahan", email="[email protected]", role=c("aut","cre")),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ from the US EPA, AirNow, AIRSIS, WRCC and others.

## Version 1.0 -- Monitoring Data Access

### PWFSLSmoke 1.0.2

* `monitor~` functions now test for empty `ws_monitor` objects
* new Github `localNotebooks/` directory contains detailed examples

### PWFSLSmoke 1.0.1

* `monitor~` functions now test for empty `ws_monitor` objects
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ installSpatialData()

## Examples

Additional vignettes that demonstrate the functionality of the package can be found in the
[localVignettes](https://github.com/MazamaScience/PWFSLSmoke/tree/master/localVignettes)
directory on github. These vignettes are not part of the package because they require
Additional R Notebooks that demonstrate the functionality of the package can be found in the
[localNotebooks](https://github.com/MazamaScience/PWFSLSmoke/tree/master/localNotebooks)
directory on github. These notebooks are not part of the package because they require
installation of the **MazamaSpatialUtils** datasets.

To run them you should:

* make sure you have the proper spatial data installed in `~/Data/Spatial/`
* make sure you have both the **knitr** and **rmarkdown** packages installed
* download the localVignettes
* open one with RStudio
* click the "Knit" button
* download the `localNotebooks/` directory
* open a notebook with RStudio
* click the "Knit" or "Preview" button in RStudio

----

Expand Down
10 changes: 2 additions & 8 deletions localExecutables/airsis_getYearlyData_exec.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,17 @@

VERSION <- "0.0.1"

suppressPackageStartupMessages(
{
suppressPackageStartupMessages({
library(methods)
library(optparse)
library(PWFSLSmoke)
library(MazamaSpatialUtils)
}
)
})

##########################################

saveAirsisData <- function(opt) {

# Get all unitids
usfs_unitids <- airsis_availableUnits(opt$startdate, opt$enddate, provider = 'USFS')
apcd_unitids <- airsis_availableUnits(opt$startdate, opt$enddate, provider = 'APCD')

# for usfs and apcd, make a list of ws_monitor objects for all units
monitors <- list()

Expand Down
8 changes: 3 additions & 5 deletions localNotebooks/AIRSIS_Data_Handling.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
title: "AIRSIS Data Acquisition and Handling"
author: "Mazama Science"
date: '`r Sys.Date()`'
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{AIRSIS Data Acquisition and Handling}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
output:
html_notebook: default
html_document: default
---

```{r, echo=FALSE}
Expand Down
268 changes: 0 additions & 268 deletions localNotebooks/AIRSIS_Data_Handling.html

This file was deleted.

10 changes: 4 additions & 6 deletions localNotebooks/AIRSIS_Raw_Data.Rmd
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
---
title: "AIRSIS Raw Data"
author: "Mazama Science"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{AIRSIS Raw Data}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
date: '`r Sys.Date()`'
output:
html_document: default
html_notebook: default
---

```{r, echo=FALSE}
Expand Down
253 changes: 161 additions & 92 deletions localNotebooks/AIRSIS_Raw_Data.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions localNotebooks/airsis_yearlyData.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
title: "Yearly AIRSIS Data"
author: "Mazama Science"
date: "`r Sys.Date()`"
output: html_document
output:
html_document: default
html_notebook: default
---

```{r, echo=FALSE}
Expand All @@ -18,8 +20,8 @@ suppressPackageStartupMessages({
library(PWFSLSmoke)
library(ggplot2)
library(gridExtra)
}
)
})
logger.setLevel(ERROR)
load("~/Data/airsis/airsis_2015.RData")
load("~/Data/airsis/airsis_2016.Rdata")
Expand Down
230 changes: 0 additions & 230 deletions localNotebooks/airsis_yearlyData.html

This file was deleted.

0 comments on commit a03ba7a

Please sign in to comment.