Pipeline for downloading USGS site data, extracting events, and generating MRMS RadarOnly Zarr datasets.
Project description
Citation
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66b22ee2f07d583f75c37b53899e8d67cb032514a1891905f922458d9648ddf7
|
|
| MD5 |
1905110b027a8feded2c7c57a0473ba6
|
|
| BLAKE2b-256 |
4c0f97110c414320c8da8165e4198689b9d1905502c6aef0fdf2d56aa3d2bb7b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mrms_usgs_events-0.1.1.tar.gz -
Subject digest:
66b22ee2f07d583f75c37b53899e8d67cb032514a1891905f922458d9648ddf7 - Sigstore transparency entry: 1312261559
- Sigstore integration time:
-
Permalink:
GonzaloAlbertoForeroBuitrago/mrms_usgs_events@f95ef640adf91e5a728407128726fe36b0199295 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/GonzaloAlbertoForeroBuitrago
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@f95ef640adf91e5a728407128726fe36b0199295 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mrms_usgs_events-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mrms_usgs_events-0.1.1-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbd5f80cdd347f49c73f5ac76915ce317e3c9d5335a9687e8fc7a48f748a28e3
|
|
| MD5 |
cae3c27001f9ac2bdb28f987f7289b85
|
|
| BLAKE2b-256 |
1f90dce79e997f56f96740f4d0b74d137446fb5c01db3c9a473c7e5a6fc408aa
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mrms_usgs_events-0.1.1-py3-none-any.whl -
Subject digest:
bbd5f80cdd347f49c73f5ac76915ce317e3c9d5335a9687e8fc7a48f748a28e3 - Sigstore transparency entry: 1312261629
- Sigstore integration time:
-
Permalink:
GonzaloAlbertoForeroBuitrago/mrms_usgs_events@f95ef640adf91e5a728407128726fe36b0199295 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/GonzaloAlbertoForeroBuitrago
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@f95ef640adf91e5a728407128726fe36b0199295 -
Trigger Event:
push
-
Statement type: