CDA 500 Interval Offset

Aperta
#259 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api, cli

Direzione di ricerca

Inizia con lo script CLI getusgs-timeseries e confronta la serie temporale che ha restituito un errore nei log con i record CDA e USGS collegati nel report. Analizza perché le scritture interessate producono l’errore ORA-20110 di offset su più intervalli, inclusi i casi che rimangono a 15 minuti. Il lavoro è completato quando la condizione di errore comune è riproducibile e i misuratori interessati possono essere scritti correttamente senza l’errore CDA 500.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
CLI Script

getusgs-timeseries

Describe the bug

Hello,
So I’ve been knocking out SWF's getUSGS stuff this month and I noticed a problem with some gages where they pop “CDA Error[500]” Example line being:
2026-08-21 15:42:07;INFO;Attempting to write values for ts_id --> PNRT2.Flow.Inst.15Minutes.0.Decodes-U,08032700.00060
2026-08-21 15:42:07;ERROR;CDA Error: response=<Response [500]>
I went into the log from swf's cda to check it out and the line was:
ORA-20110: ERROR: Incoming data set contains multiple interval offsets. Unable to store data for PNRT2.Stage.Inst.15Minutes.0.Decodes-U
From there I went into Cwms-Vue to check out the timeseries interval offset and it's set to 0s just like the original timeseries this guy is a replacement for. Dug into usgs just in case and it matches all the relevant numbers including the interval of course. Deleted the ts and remade it from scratch just in case it was a bad plug in and still got a 500.

Followed the steps from https://www.hec.usace.army.mil/confluence/cwmsdocs/ccm/getusgs-script-using-cda-198935663.html for setting up each location+timeseries. Out of 750 about 90 got this 500 error and I'm not 100% on what's the common thread. Like if you check 5, 2 were that the interval transmissions changed from 15 minutes to 5 minutes and needed that adjustment, but the other 3 are still 15 minutes on https://waterdata.usgs.gov/nwis/uv?format=rdb&site_no=08032700&period=PT7D for instance. That link is for the gage I used for the example error lines.

REDACTED relevant log output
getUSGS log line
2026-08-21 15:42:07;INFO;Attempting to write values for ts_id -->  PNRT2.Flow.Inst.15Minutes.0.Decodes-U,08032700.00060
2026-08-21 15:42:07;ERROR;CDA Error: response=<Response [500]>

catalina.out log line
ORA-20110: ERROR: Incoming data set contains multiple interval offsets. Unable to store data for PNRT2.Stage.Inst.15Minutes.0.Decodes-U
Steps to Reproduce

No response

Lingua principale
Python
Stelle
3
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HydrologicEngineeringCenter/cwms-cli

Tutte le issue di HydrologicEngineeringCenter/cwms-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.