Learn R Programming

puff (version 0.1.0)

Simulate and Visualize the Gaussian Puff Forward Atmospheric Model

Description

Simulate and run the Gaussian puff forward atmospheric model in sensor (specific sensor coordinates) or grid (across the grid of a full oil and gas operations site) modes, following Jia, M., Fish, R., Daniels, W., Sprinkle, B. and Hammerling, D. (2024) . Numerous visualization options, including static and animated, 2D and 3D, and a site map generator based on sensor and source coordinates.

Copy Link

Version

Install

install.packages('puff')

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Philip Waggoner

Last Published

April 10th, 2025

Functions in puff (0.1.0)

interpolate_wind_data

Resample wind_speeds and wind_directions to the simulation resolution by interpolation
plot_3d_animated

Plot a 3D Animated Plot for Concentration Over Time
faceted_time_series_plot

Faceted Time Series Plot of Methane Concentrations and Wind Data
compute_sigma_vals

Compute Sigma Values Based on Stability Class and Distance
faceted_time_series_plot2

Alternate version with wind rose at each time step + scatter plot of methane concentration time series
create_site_map

Create a Site Map of Sensors and Sources
plot_2d_animated

Plot a 2D Animated Heatmap for Concentration Over Time
is_day

Determine Whether a Time is During the Day
get_stab_class

Determine Stability Class Based on Wind Speed and Time of Day
gpuff

Gaussian Puff Concentration Calculation
single_emission_rate_plot

Plot Multiple Emission Rate Sensor Concentrations
simulate_grid_mode

Simulate Atmospheric Concentration on a Grid
wind_vector_convert

Convert between (ws, wd) and (u,v)
time_series_plot

Plot Time Series of Sensor Concentrations
simulate_sensor_mode

Simulate Atmospheric Concentration at Sensor Locations