Git Product home page Git Product logo

cder's People

Contributors

mkoohafkan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

cder's Issues

improve documentation regarding default values of sensor number and duration code

The vignette should point out that not specifying a sensor number and/or duration code can yield unexpected results. The default sensor selected by the web service can vary from station to station, and sometimes empty results are returned if no sensor number or duration code is specified.

The duration codes appear to be limited to "Event", "Hourly", "Daily", and "Monthly" (based on the radio buttons available in the station search page. This should be noted in the documentation of cdec_query() and cdec_query_group() as well as in the vignette.

triple check CDEC time zone

The web services page now states

Dates, times, and output will always be Pacific Standard Time.

Which is different from the documentation that led to the decision for #3. Need to verify whether the timezone should be "GMT+8" or "US/Pacific".

Parsing problem, and problem with problems()

Very useful package. First issue encountered today: cdec_query() gave me a warning about a parsing issue:

> sgn <- cdec_query('SGN', 20, start.date="1990-10-01", end.date = "2022-09-30")
Warning message:
One or more parsing issues, see `problems()` for details 

I had some trouble following up on the warning, too:

> problems()
Error in problems() : could not find function "problems"

Loading readr prior to calling cdec_query, allowed me to see the "problem":

> problems()
# A tibble: 2 ร— 5
    row   col expected actual file                                                         
  <int> <int> <chr>    <chr>  <chr>                                                        
1  6237     7 a double BRT    C:/Users/lelan/AppData/Local/Temp/RtmpgFxiLf/file50d44d0b4d40
2 31687     7 a double BRT    C:/Users/lelan/AppData/Local/Temp/RtmpgFxiLf/file50d44d0b4d40

However, that doesn't help me know what data I'm missing

  1. Perhaps the SGN gauge example can help you improve the parser
  2. Might need some sort of handler for when readr issues a warning

Thanks!

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.