Skip to content
An R package providing the ASRC NYS Atmospheric Chemistry Database
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
inst
old_R Delete redundant ultrafine file Apr 20, 2019
src
vignettes Add database documentation as vignette Apr 3, 2019
.Rbuildignore Add R package template files Mar 5, 2019
.gitignore Add database documentation as vignette Apr 3, 2019
CHANGELOG.md Treat zero WindDir_SD1_WVT as indicator of instrument malfunction Mar 1, 2019
DESCRIPTION
LICENSE Add license info for mediator.c Apr 16, 2019
NAMESPACE
README.md

README.md

The ASRC NYS Atmospheric Chemistry Database

The ASRC NYS Atmospheric Chemistry Database is a PostgreSQL database containing atmospheric chemistry data from ASRC sites in New York State.

The nysatmoschem R package provides utilities to reproduce the database, along with functions to generate various reports and processed datasets, and tools to visualize the data.

Usage

nysatmoschem builds on the etl package and follows the etl syntax and design structure. To reproduce the database, run etl_create() with a nysatmoschem dataset object. Users require a username and password to download the data, which can be obtained from the ASRC AQM Data Products page.

library(nysatmoschem)

# create a postgres database connection and nysatmoschem dataset object
dbcon = src_postgres(dbname = 'nysacdb', user = 'user')
nysac = etl('nysatmoschem', db = dbcon, dir = 'data')

# set up the database and add data from the ASRC's atmoschem server
nysac %>% etl_create(user = 'user', password = 'pass')

Installation

Install nysatmoschem from R using the remotes package:

install.packages('remotes')
remotes::install_github('ASRCsoft/nysatmoschem')

The package requires the PostgreSQL server to be running locally, and the database user account must have the required postgres privileges.

License

nysatmoschem is released under the open source MIT license.

You can’t perform that action at this time.