-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
129 lines (95 loc) · 4.41 KB
/
README.Rmd
File metadata and controls
129 lines (95 loc) · 4.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
output: github_document
bibliography: README.bib
link-citations: yes
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-"
)
```
# ASRC Atmospheric Chemistry Data Processing
[](https://github.com/ASRCsoft/atmoschem.process/actions)
[](https://codecov.io/gh/ASRCsoft/atmoschem.process?branch=master)
[](https://zenodo.org/badge/latestdoi/157783204)
```{r wfms, echo = FALSE, fig.height = 3.3, fig.width = 3.8, out.width = "400px", out.extra='align="right" style="padding:0px 10px 10px 10px;"'}
knitr::include_graphics('man/figures/whiteface-station.jpg')
```
The `atmoschem.process` R package processes atmospheric chemistry data from ASRC
sites in New York State. It provides tools to generate reports and processed
datasets from the ASRC's atmospheric chemistry data, and tools to visualize the
data.
## Table of contents
```{r toc, echo = FALSE, results = "asis", comment = ""}
readme = readLines('README.Rmd')
headers = readme[grepl('^## ', readme)][-1] # remove first header (toc)
titles = sub('^## ', '', headers)
links = paste0('#', gsub(' ', '-', tolower(titles)))
md_lines = paste0('- [', titles, '](', links, ')')
cat(paste(md_lines, collapse = '\n'))
```
## Overview
The atmospheric chemistry group at the ASRC, run by Dr. Jim Schwab, collects
data from instruments at 4 sites across the state of New York: Whiteface
Mountain (summit and base), Pinnacle State Park, and Queens College. We maintain
a variety of instruments measuring ozone and ozone precursors, airborne
particulate matter, sulfur dioxide, and meteorology.
The data undergoes a variety of adjustments and quality assurance checks before
being released to the public, where it is used by government agencies and
atmospheric science researchers, among others. Users can access the datasets
online via our website at <http://atmoschem.asrc.cestm.albany.edu/>.
This software, which generates the processed datasets, synthesizes advice from
atmospheric monitoring, statistical programming, and data management. In terms
of data processing, we tend to follow guidelines from NARSTO
[@christensen_narsto_2000], and we also work regularly with EPA standards. The
code is organized as an R package [@marwick_packaging_2018], and we use GitHub
for project management [@bryan_excuse_2018]. For data management, we tend to
follow @briney_data_2015, and we try to make the data convenient to use
[@white_nine_2013].
The data collection at Whiteface Mountain is described in detail in a series of
publications [@schwab_atmospheric_2016; @brandt_atmospheric_2016;
@schwab_atmospheric_2016-1], and another paper describes the measurements at
Pinnacle State Park [@schwab_ozone_2009].
## Installation
To install the package, run (from within R)
```R
install.packages('remotes')
remotes::install_github('ASRCsoft/atmoschem.process')
```
To generate the processed dataset, additional dependencies are requried:
```R
remotes::install_github('ASRCsoft/atmoschem.process', dependencies = TRUE)
```
## Reproducing the routine chemistry dataset
### Requirements
- R and R package dependencies
- GNU Make
- 15GB of disk space and 8GB of RAM
- An Air Quality System API key (get one
[here](https://aqs.epa.gov/aqsweb/documents/data_api.html))
- A user/password for the ASRC's atmoschem server (sign up
[here](http://atmoschem.asrc.cestm.albany.edu/))
### Creating the dataset
Download or clone the repository. The dataset package can be generated by
running, from a terminal,
```sh
cd /path/to/atmoschem.process
make routine asrc_user=youruser asrc_pass=yourpassword aqs_email=youremail aqs_key=yourkey
```
(replacing the values with your information).
Run `make help` to see more make options.
### Viewing the data
The R package comes with a Shiny app for viewing the processing steps. After
data has been processed, it can be launched with `make`:
```sh
make view
```
## Citation
Please cite this package using the citation available from Zenodo:
[](https://zenodo.org/badge/latestdoi/157783204)
## License
`atmoschem.process` is released under the open source MIT license.
## References