Skip to main content
U.S. flag

An official website of the United States government

Software

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

Filter Total Items: 1025

NLDI Flow Tools NLDI Flow Tools

NLDI Flowtools is a Python package for basin delineation and flow path tracing from any point within CONUS. It can return either the full upstream drainage basin or just the portion within the local NHD catchment (i.e., splitcatchment). The flow path tracing tool follows terrain downhill until it intersects the nearest NHD stream line, returning both the traced path and the intersected...

First Infrastructure Line Generator Version 1.0 First Infrastructure Line Generator Version 1.0

This software script is designed to generate a first infrastructure line polyline vector that delineates the seaward-most extent of impervious infrastructure, including parking lots, buildings, and roads. The software requires two inputs which include A) a raster representing the coverage of impervious surface B) a polyline baseline located seaward of and running parallel to the first

A finite difference code for the calculation of Fe-Mg interdiffusion timescales in orthopyroxene with initial condition optimization (version 1.0) A finite difference code for the calculation of Fe-Mg interdiffusion timescales in orthopyroxene with initial condition optimization (version 1.0)

These Python scripts calculate Fe-Mg diffusion timescales in orthopyroxene crystals for use in studies of pre-eruption processes. The model is based on a centered space, forward time implicit finite difference solution to the diffusion equation with with a compositionally depended diffusivity. The model includes an initial condition optimization step and a Monte Carlo approach to...

Code to evaluate occupancy and surface availability of Siskiyou Mountains salamanders (Plethodon stormi) and Scott Bar salamanders (P. asupak) in northern California, 2023-2024 Code to evaluate occupancy and surface availability of Siskiyou Mountains salamanders (Plethodon stormi) and Scott Bar salamanders (P. asupak) in northern California, 2023-2024

The code in this repository generates and analyzes directed acyclic graphs (DAGs) representing hypotheses about variables affecting the occurrence and surface availability of Plethodon salamanders in northern California; formats data from field surveys and GIS for analysis; and analyzes multi-scale occupancy models, including model selection, to evaluate the model and variables with the...

Bull Trout Population Dynamics Simulation Tool Bull Trout Population Dynamics Simulation Tool

Welcome to the README for the Bull Trout Population Dynamics Simulation Tool. This tool can be used directly in an R console (including IDEs such as RStudio) or it can be used via the web and an R Shiny interface (https://rconnect.usgs.gov/BullTroutPopulationDynamicsSimulationTool/).

Shakingstats (Version 1.0.0) Shakingstats (Version 1.0.0)

shakingstats is a Python package for calculating earthquake statistics from continuous seismic amplitudes. It calculates the time-varying amplitude completeness (A_C) and amplitude-based b‑value (b_A​) by fitting the joint distribution of seismic noise and earthquake shaking. It also provides an implementation of the b-positive (β+) method for comparison to catalog-based statistics.

wren: water-quality regression tools wren: water-quality regression tools

An R shiny application to organize and streamline the process of regression model development using time series data. An interactive browser interface allows users to evaluate potential variables, compare models, and output summary documents compiling descriptive graphs and statistics for archival purposes. The application allows for the processing of left-censored response variables...

ocelote 1.1.0 ocelote 1.1.0

This release adds functionality for building debris-flow likelihood lookup tables, and uploading the results to the National Weather Service (NWS) FTP endpoint. The release: * Adds the `authenticate nws` command, which collects authentication credentials for uploading to the NWS FTP endpoint * Updates the `run` command to compute debris-flow likelihood lookup tables, and save the results...

Code for Projected Canadian Forest Fire Danger Rating System (CFFDRS) metrics within Fire Danger Rating Areas in Alaska (1980–2099) (version 1.0.0) Code for Projected Canadian Forest Fire Danger Rating System (CFFDRS) metrics within Fire Danger Rating Areas in Alaska (1980–2099) (version 1.0.0)

Effective future fire planning and decision-making in Alaska requires accessible, interpretable, and locally relevant climate data to anticipate fire danger. To meet this need, we utilized an existing dataset of projected fire danger metrics from the Canadian Forest Fire Danger Rating System (Young et al. 2025). This dataset contains daily projections from 1980 through 2099 for key...

Integrating hunter dynamics and waterfowl dynamics to inform harvest management: Software release Integrating hunter dynamics and waterfowl dynamics to inform harvest management: Software release

R code and Stan models to simulate sample data set, perform parameter estimation, project future scenarios, and produce plots for accompanying publication examining the integrated dynamics of waterfowl and hunter populations through harvest.

telem_assembly: harmonizing wildlife telemetry data (version 1.0.0) telem_assembly: harmonizing wildlife telemetry data (version 1.0.0)

This software was developed using the statistical program R (R Core Team 2024) to compile multiple wildlife tracking datasets that contain locations of animals recorded through time. The software is organized through a series of scripts that run hierarchically through script sourcing. To demonstrate how the software works, we simulated four wildlife tracking datasets, each representing...

Alpha Calculator Alpha Calculator

Direct measurements of groundwater velocity made in screened wells must be compensated for the effects of flow-field distortion (also known as borehole acceleration). A theoretical equation developed by Drost et al. (1968) and simple inputs describing hydraulic properties of the well construction and geologic formation were programmed into an Excel Workbook to facilitate computation by...
Was this page helpful?