Skip to main content

Pipeline for downloading USGS site data, extracting events, and generating MRMS RadarOnly Zarr datasets.

Project description

Citation

DOI

For windows in a WSL terminal. Environment creation and package Installation

conda create -n mrms_usgs_events -c conda-forge python=3.11 gdal geopandas libgdal-grib -y

conda activate mrms_usgs_events

python -m pip install --upgrade pip # Upgrade pip

python -m pip install mrms-usgs-events # Install the package

gdalinfo --formats | grep -i grib # Verify gdal grib

mrms-usgs --help # Verify installation

Example use for the Texas July 4 2025 event at the Mystic Camp. (Use at least 1 year between start and end)

mrms-usgs run-site 08165500
--start 2023-07-01
--end 2025-07-10
--base-dir data
--overwrite

Data directory with subfolders created following this structure

data/

├── _mrms_cache/ # Temporary cache of downloaded MRMS .grib2 files to avoid re-downloading

├── basins_json/ # Watershed boundaries (GeoJSON) for each USGS station (used to mask rainfall)

├── events/ # Detected hydrologic events (CSV files with peaks, volumes, and timing)

├── logs/ # Execution logs for debugging and tracking pipeline progress

├── rain_zarr/ # Processed rainfall data stored in Zarr format (spatial + temporal arrays)

├── site_meta/ # Metadata for each USGS station (location, name, timezone, etc.)

└── stage_parquet/ # Time series of water level (stage) data from USGS in Parquet format

Acknowledgements

This material is based upon work supported by the U.S. National Science Foundation under Grant No. TI-2303756 and the Tethys Geoscience Foundation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mrms_usgs_events-0.1.1.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mrms_usgs_events-0.1.1-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file mrms_usgs_events-0.1.1.tar.gz.

File metadata

  • Download URL: mrms_usgs_events-0.1.1.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mrms_usgs_events-0.1.1.tar.gz
Algorithm Hash digest
SHA256 66b22ee2f07d583f75c37b53899e8d67cb032514a1891905f922458d9648ddf7
MD5 1905110b027a8feded2c7c57a0473ba6
BLAKE2b-256 4c0f97110c414320c8da8165e4198689b9d1905502c6aef0fdf2d56aa3d2bb7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mrms_usgs_events-0.1.1.tar.gz:

Publisher: publish_to_pypi.yml on GonzaloAlbertoForeroBuitrago/mrms_usgs_events

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mrms_usgs_events-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mrms_usgs_events-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbd5f80cdd347f49c73f5ac76915ce317e3c9d5335a9687e8fc7a48f748a28e3
MD5 cae3c27001f9ac2bdb28f987f7289b85
BLAKE2b-256 1f90dce79e997f56f96740f4d0b74d137446fb5c01db3c9a473c7e5a6fc408aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for mrms_usgs_events-0.1.1-py3-none-any.whl:

Publisher: publish_to_pypi.yml on GonzaloAlbertoForeroBuitrago/mrms_usgs_events

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page