-
Notifications
You must be signed in to change notification settings - Fork 84
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
ghcnd_search() stopped pulling data after June 2018 #269
Comments
thanks @kgmccann ! i'll have a look |
p.s. when you share session info can you share the output of |
is this what you expect: broward1$prcp %>% select(date,prcp) %>% arrange(desc(date))
#> # A tibble: 436 x 2
#> date prcp
#> <date> <int>
#> 1 2018-08-10 53
#> 2 2018-08-09 0
#> 3 2018-08-08 0
#> 4 2018-08-07 NA
#> 5 2018-08-06 NA
#> 6 2018-08-05 NA
#> 7 2018-08-04 NA
#> 8 2018-08-03 NA
#> 9 2018-08-02 NA
#> 10 2018-08-01 0 does seem like data is returned up to your max date. |
Thanks, that is what i was looking for. maybe it's my version?
|
Can you try installing from github |
Still stopping at 06-30.
And the rest is:
|
can you run |
It worked! thanks so much. I have a follow-up question: |
At this point yes. But i will see if i can cache the files including the date so that you then shouldn't have to clear the cache. |
So I think this was the problem: You requested data for station The issue is that the same file is downloaded for a station (e.g., So if we cache files for every combination of stationid, min date and max date, that could lead to lots of files cached on your machine that are really all the same thing. SO unnecessarily taking up disk space. So here's the approach we'll take: for x <- ghcnd("US1FLBW0007")
attr(x, "source")
attr(x, "file_modified") reinstall with interested to hear your thoughts. |
add refresh parameter to force a download of the file add messages to print to let user know file path and last modiifed date for ghcnd and message of min and max dates for ghcnd_search update docs for both
Thanks for this fix. I have been struggling with this same issue for a couple months now. My work computer would only download data through the 1st of the year, but I could download all the data through the current date on my machine at home. Now that I've read through this, it makes sense that clearing the cache fixes the issue. Thanks again! |
@scoyoc great, glad this helps |
AFAICT seems sorted |
Not sure if this is isolated to the county I specifically need but following code stops returning rows after 6/30/2018 (not even dates with NAs). I checked here just to be sure that the station was still updating and it is, but even if it was offline, I would expect the function to return up to my date_max. Either way, this code is not behaving the way it has in the past.
System Info
setting value
version R version 3.5.0 (2018-04-23)
system x86_64, mingw32
ui RStudio (1.1.453)
language (EN)
collate English_United States.1252
tz America/New_York
date 2018-08-13
The text was updated successfully, but these errors were encountered: