HydrologicEngineeringCenter / HydrologicEngineeringCenter/cwms-cli
Get USGS Timeseries not storing 15 minute data when original data is 5 minute.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2
- Forks
- 4
- Avg merge
- 19h 59m
- Merged PRs (30d)
- 3
Description
CLI Script
getusgs-timeseries
Describe the bug
When attempting to download and store data that is natively 5 minute data from the USGS into a 15 minute pathname in CWMS fails. This works using the getUSGS_CDA.py script outside of cwms-cli.
REDACTED relevant log output
2026-01-23 07:56:00;INFO;Attempting to write values for ts_id --> College Park.Stage.Inst.15Minutes.0.Raw-USGS,01649190.00065
2026-01-23 07:56:35;ERROR;FAIL Data could not be stored to CWMS database for --> College Park.Stage.Inst.15Minutes.0.Raw-USGS,01649190.00065 CDA error = HTTPSConnectionPool(host='wm.nab.ds.usace.army.mil', port=8243): Max retries exceeded with url: /nab-data/timeseries?create-as-lrts=False&override-protection=False (Caused by ResponseError('too many 500 error responses'))
Steps to Reproduce
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the getusgs-timeseries CLI entry point and compare its USGS download and CWMS storage flow with getUSGS_CDA.py, which reportedly works outside cwms-cli. Reproduce the case using native 5-minute data written to a 15-minute pathname, then verify that the values are stored successfully rather than producing repeated CDA 500 errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100