Learn R Programming

PuffR (version 0.1)

PuffR-package:

Description

This package allows for the discovery, retrieval, organization, and production of inputs for the CALPUFF model.

Arguments

Details

Package: PuffR
Type: Package
Version: 0.1
Date: 2013-11-12
License: MIT

Examples

Run this code
# Create a CALMET domain of 100 by 100 km
# in the Los Angeles area
define.calmet.domain(lat.dec.deg = 34.050184,
                    long.dec.deg = -118.253959,
                    lat.long.grid.loc = 1,
                    EPSG_code = 32611,
                    cell.resolution.m = 250,
                    domain.width.m = 100000,
                    domain.height.m = 100000)

# Get surface station data from NCDC
ncdc.station.data(startyear = 2010,
                  endyear = 2010,
                  use.calmet.bounds = TRUE)
                  
# Select only 3 stations from the retrieved
# stations in the domain
# The format for each station is [USAF]-[WBAN]
station.select(id = c("720046-99999",
                      "722950-23174",
                      "722886-23130"))

# Create a 'SURF.DAT' file for CALMET
surf.dat.generate()

Run the code above in your browser using DataLab