You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: Their levels do not line up with the timeseries.
I have worked with @tracyfraley1 to determine that CWMSPlot looks to slice the date string removing everything but the date. I believe CDA will treat timestamps as UTC/Zulu if a offset is not provided in the timestamp at the end.
It appears the Level fetch begin and end has the hours and timezone truncated:
Namely the date becomes 2025-01-29 instead of 2025-01-29T05:30:00-06:00. I do think part of this could be blamed on the lack of clarification on the swagger page/docs for CDA.
Plot showing offset issue
Edit:
Issue created on CDA issues regarding timestamps/lack of docs:
LRH is attempting to plot various projects here:
https://wm.rsgis.dev/lrh/data/plots
Issue: Their levels do not line up with the timeseries.
I have worked with @tracyfraley1 to determine that CWMSPlot looks to slice the date string removing everything but the date. I believe CDA will treat timestamps as UTC/Zulu if a offset is not provided in the timestamp at the end.
It appears the Level fetch begin and end has the hours and timezone truncated:
groundwork-water/lib/components/data/plots/CWMSPlot.jsx
Line 166 in b419a86
You can see the fetch call this makes in the network tab here:
https://cwms-data.usace.army.mil/cwms-data/levels?level-id-mask=NoFkPound.Elev.Inst.0.Top%20of%20Normal&office=LRH&unit=EN&begin=2025-01-29&end=2025-02-03&format=json
Namely the date becomes
2025-01-29
instead of2025-01-29T05:30:00-06:00
. I do think part of this could be blamed on the lack of clarification on the swagger page/docs for CDA.Plot showing offset issue
Edit:
Issue created on CDA issues regarding timestamps/lack of docs:
The text was updated successfully, but these errors were encountered: