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: 583

gravmagsubs: Gravitational and magnetic attraction of 3-D vertical rectangular prisms

gravmagsubs is a software package for the R language that provides tools for forward modeling gravity and magnetic anomalies from 3-D right rectangular prisms. The gravity anomaly is defined as the vertical component of gravitational acceleration, while the magnetic anomaly includes the effects of both induced and remanent magnetization. The package can model the total anomaly from a collection

Agisoft Metashape/Photoscan Automated Image Alignment and Error Reduction version 2.0

This repository contains python scripts which automate image alignment and sparse point cloud error reduction in the Agisoft Metashape/Photoscan structure from motion photogrammetry software package using the Agisoft Metashape Python API. The current version of the script (version 2.0) approximates the workflow described in U.S. Geological Survey Open-File Report 2021-1039 (Over et al., 2021). The

GageStats Services

The Gage Statistic (GageStats) Services were developed to provide gage characteristics and streamflow statistics to support the StreamStats application via RESTful principles. The StreamStats application uses GageStats Services to display the gages and related gage pages. These services provide U.S. Geological Survey developed and published gage characteristics such as drainage area or mean basin


The U.S. Geological Survey (USGS) developed an R package called dataRetrieval to help simplify the process of discovering and retrieving water quality sample data, streamflow, groundwater, and other data available from Federal hydrologic web services such as National Water Information Systems (NWIS), the EPA Water Quality Exchange (WQX) System, and the National Hydrologic Dataset via the Hydro-Ne

QFASA Robustness to Assumption Violations: Computer Code

Quantitative fatty acid signature analysis (QFASA; Iverson et al. 2004) has become a common method of estimating diet composition, especially for marine mammals, but the performance of the method has received limited investigation. Bromaghin et al. (In press) used computer simulation to compare the bias of several QFASA estimators and developed recommendations regarding estimator selection. Simula

MODFLOW One-Water Hydrologic Flow Model (MF-OWHM)

The MODFLOW One-Water Hydrologic Flow Model (MF-OWHM) is an integrated hydrologic model designed for the analysis of conjunctive-use management.

mainstems workflow: HU12 NHDPlusV2 NHDPlus HiRes Matching

HU12 NHDPlusV2 NHDPlus HiRes Matching The logic encoded in this repository is documented in: Blodgett, D., Johnson, J. M., Sondheim, M., Wieczorek, M., Frazier, N. (2021). Mainstems: A logical data model implementing mainstem and drainage basin feature types based on WaterML2 Part 3: HY Features concepts. Environmental Modelling and Software, 135. Th

Simulations to understand and validate models

This software release contains one R script file that allows the user to download data and reproduce all of the figures and analyses associated with DiRenzo et al. In the R script, we provide a guide to understanding and validating complex models using data simulations. In an effort to facilitate the implementation of these methods, we provide a running example throughout DiRenzo et al. 2022 with

popcluster: hierarchical population monitoring frameworks, Version 2.0.0

We developed a method to construct hierarchically nested and biologically relevant groupings of similar habitats associated with field surveys while considering structure/connectedness (movements between habitats). This approach can support mobile species using high fidelity sites where monitoring during surveys occurs, such as birthing grounds, breeding grounds, or stopovers/seasonal habitats for

Spatial scale selection for greater sage-grouse population trends, Version 1.0.0

The distance within which populations respond to features in a landscape (scale of effect) can indicate how disturbance and management may affect wildlife. Using annual counts of male greater sage-grouse (Centrocercus urophasianus) attending 584 leks in southwest Wyoming (2003-2019) and estimates of sagebrush (Artemisia spp.) cover from a remote sensing product (Rigge et al., 2021; Monroe et al.,

ModelMuse Version 5.1.1

This version of ModelMuse fixes a serious bug in ModelMuse version 5.1.