Skip to main content
U.S. flag

An official website of the United States government


An official USGS software project is code reviewed and approved at the bureau-level for distribution.

Filter Total Items: 597

Per- and Polyfluoroalkyl Substances (PFAS) in U.S. Tapwater: Comparison of Public-Supply and Underserved Private-Well Exposures and Associated Health Implications

This software involves files to fit the statistical models described in Smalling et al. Specifically, there are R scripts and associated stan model files (when appropriate) for comparing PFAS concentrations among public-supply and private-wells and as a function of geospatial predictor variables. There is also an R script for modeling the number of PFAS chemicals detected among water sources and


Heavy is a Fortran program for calculating the change in gravity caused by the change in groundwater storage as predicted by a MODFLOW groundwater-flow model. Gravity change is calculated relative to the initial time step at user-specified locations (e.g., measurement locations). At each location, the gravitational attraction is the sum of the attraction caused by storage change (confined or uncon

Golden Eagle Survival in the Great Plains, Nestlings, with Territory and Time Random Effects - Supplemental Code

R code for modeling survival of nestling and fledgling golden eagles. It is supplemental material for a manuscript submitted to Journal of Raptor Research.


The R package precompute is used to perform periodic computations to set up data for loading and rendering in Shiny applications. These computations typically take too long to conduct on the fly, which is why they are performed with some frequency using this package.

SYNthetic DEPTH Phase Modeling (SYNDEPTH)

This python code models event depths by comparing high-frequency (~0.5-0.04 Hz) teleseismic body-wave waveforms to synthetics. High-frequency body waves contain depth information, primarily in the form of depth phases. While lower frequencies are used to generate moment tensor solutions, high-frequency body waves allow for more accurate estimates of source depth. A moment tensor solution must exis

fluvial-particle, U.S. Geological Survey software release

This Python package provides functions to simulate advection and dispersion of numerical particles using a lagrangian particle-tracking algorithm for 2 and 3-dimensionl hydraulic simulation results. Users may customize particle subclasses to provide custom particle classes. For example, the drift of larval fish, by creating classes to add behavior to particles. (McDonald and Nelson, 2021).

WREG: Weighted Least Squares Regression for Streamflow Frequency Statistics

Software package to support regression-based regionalization of streamflow frequency statistics that follow a log-Pearson type III distribution.

Code to Examine How the Influence of Fine-Scale Habitat Characteristics on Greater Sage-Grouse (Centrocercus urophasianus) Nest Site Selection and Nest Survival Varies by Mesic and Xeric Site Conditions version 1.0

This repository centralizes R code used to examine how the influence of fine-scale habitat characteristics on Greater sage-grouse (Centrocercus urophasianus) nest site selection and nest survival varies by mesic and xeric site conditions, utilizing data collected from a wide range of study sites in Nevada and California, USA. The R script "nest_selection_model.R" provides code for a GLMM framewor

plumeria PMAP software release 1.0.3

The PMAP tool is a one-dimensional plume model that predicts ash aggregation within an erupting volcanic plume. The tool was developed by D. W. Hoffman at Stanford, extending from the Plumeria model written by L. G. Mastin at USGS CVO. The code operates using Matlab. The purpose of this repository is to present the code used in the following publication, currently under review at Journal of Geop

Workflow to acquire and process large spatial data and build complex models

This software involves R scripts to download and process large-scale spatial data defined by an extent input by the user. The code then resamples data to the desired resolution, downloads metadata from a public website on West Nile virus prevalence in mosquito pools, then extracts spatial layer data as covariates for each record. Also, this software involves R script to fit models of abundance of

GSFLOW: Coupled Groundwater and Surface-Water Flow Model

Groundwater and Surface-water FLOW (GSFLOW) was developed to simulate coupled groundwater and surface-water resources. The model is based on the integration of the U.S. Geological Survey Precipitation-Runoff Modeling System (PRMS) and the U.S. Geological Survey Modular Groundwater Flow Model (MODFLOW).