Code Monkey home page Code Monkey logo

Comments (4)

brry avatar brry commented on July 19, 2024 1

Sounds like a bug on my side in readDWD, similar to #12.
I'll check it out and probably have a fix in the next few hours

from rdwd.

brry avatar brry commented on July 19, 2024

Hm, it works fine for me. I split up downloading and reading, but doing that in one step works fine as well.

url <- selectDWD(id=11, res="10_minutes", var="wind", per="now")
file <- dataDWD(url, dir=tempdir(), read=FALSE)
wind <- readDWD(file)
str(wind$MESS_DATUM)
# POSIXct[1:60], format: "2020-02-25 00:00:00" "2020-02-25 00:10:00" "2020-02-25 00:20:00" "2020-02-25 00:30:00" "2020-02-25 00:40:00" "2020-02-25 00:50:00" ...
head(wind$MESS_DATUM)
# "2020-02-25 00:00:00 GMT" "2020-02-25 00:10:00 GMT" "2020-02-25 00:20:00 GMT" "2020-02-25 00:30:00 GMT" "2020-02-25 00:40:00 GMT" "2020-02-25 00:50:00 GMT"

Does packageVersion("rdwd") return 1.3.1?

from rdwd.

brry avatar brry commented on July 19, 2024

The last rdwd version 1.2.0 (2019-10-28) up to one week ago on CRAN had exactly the error you have, so I assume it will be enough to run install.packages("rdwd") and re-run your code.

from rdwd.

yannikbuhl avatar yannikbuhl commented on July 19, 2024

Thank you so much! Yes, the package update did the trick. I had found the bug meanwhile in readDWD.data and now I can see the fix, (nch == 12) was missing.

from rdwd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.