Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location Levels for CWMSPlot Ignoring Hours and TimeZone #83

Open
krowvin opened this issue Feb 3, 2025 · 0 comments
Open

Location Levels for CWMSPlot Ignoring Hours and TimeZone #83

krowvin opened this issue Feb 3, 2025 · 0 comments
Labels
plots Issues pertaining to plotting components

Comments

@krowvin
Copy link
Contributor

krowvin commented Feb 3, 2025

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:

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 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

Image

Edit:
Issue created on CDA issues regarding timestamps/lack of docs:

@krowvin krowvin added the plots Issues pertaining to plotting components label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plots Issues pertaining to plotting components
Projects
None yet
Development

No branches or pull requests

1 participant