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

wdmtoolbox use and troubleshooting #38

Open
rburghol opened this issue Sep 12, 2023 · 0 comments
Open

wdmtoolbox use and troubleshooting #38

rburghol opened this issue Sep 12, 2023 · 0 comments

Comments

@rburghol
Copy link
Contributor

rburghol commented Sep 12, 2023

Use Examples

Add a new DSN

DSNs must exist before trying to put data in them. So we use wdmtoolbox (a la: sudo pip install wdmtoolbox, see more at https://pypi.org/project/wdmtoolbox/ and https://timcera.bitbucket.io/wdmtoolbox/docs/index.html)

  • Add a new DSN to hold runoff only (instead of runoff + upstream, DSN 11)
    • DSN 10
    • add with wdmtoolbox: wdmtoolbox createnewdsn --tstype WATR --tcode 3 river.wdm 10
    • this works well, except that wdm_insert_one cuts the hours from 1 to 24 which causes maybe a 1 hour lag? Either way, wdm2text will NOT export the final year since it is not deemed complete 12/31/2021 23:00:00

Troubleshooting / Debugging

  • This command: wdmtoolbox csvtowdm --input_ts=./N51165.PRC prad_N51165.wdm 2000 has error:
    • TypeError: <U24 cannot be converted to a FloatingDtype
  • Daylight savings time, consecutive entries are non-contiguous, i.e., this fails (lacks hour 3 on the 29th):
...
1984-04-29 01:00:00 UTC,0.00743772
1984-04-29 02:00:00 UTC,0.0109102
1984-04-29 04:00:00 UTC,0

  • But this does not (has manually added hour 3 on the 29th):
...
1984-04-29 01:00:00 UTC,0.00743772
1984-04-29 02:00:00 UTC,0.0109102
1984-04-29 03:00:00 UTC,0
1984-04-29 04:00:00 UTC,0

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

1 participant