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

Feature Request: Add functions to move TS data back and forth to pandas dataframe #53

Open
msweier opened this issue Oct 9, 2024 · 2 comments
Assignees

Comments

@msweier
Copy link

msweier commented Oct 9, 2024

Would be nice to have functions to move data back and forth to pandas dataframe. That way, cwms-python scripts developed using CDA would be easier to convert to local scripts that use dss.

@oskarhurst
Copy link
Contributor

@ktarbet I know you developed the script for converting between time series objects and cwms data frames. Is this method already with dss-py or do you have plans to add it in in the future?

@ktarbet ktarbet assigned ktarbet and perrymanmd and unassigned ktarbet Dec 16, 2024
@perrymanmd
Copy link
Collaborator

perrymanmd commented Dec 16, 2024

I'm currently working on a Python library that will do this and much more. It will natively handle the types of stuff that can be done with Jython scripting for HEC-DSS and CWMS. It will use dss-py for HEC-DSS storage/retrieval and cwms-python for CWMS database access. The TimeSeries class (which I'm currently working on) uses a pandas DataFrame to hold the times/values/qualities and has properties and methods that interact with the DataFrame directly. It uses a slightly different DataFrame structure than cwms-python currently does, but that is handled by the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants