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

Download isd-history on demand or if >1month since last download #120

Open
adamhsparks opened this issue Jul 28, 2024 · 0 comments
Open
Assignees

Comments

@adamhsparks
Copy link
Member

adamhsparks commented Jul 28, 2024

{GSODR} depends on the isd-history.txt file to know what stations are available and for what years, etc. Currently it's bundled in each release with https://github.com/ropensci/GSODR/blob/main/data-raw/fetch_isd-history.md

But, pygsod uses a timed method, which I've considered and think makes sense. It downloads if it i) doesn't exist on your system or ii) has been more than a month since the file was created.

Using R's caching abilities, this should be easily achievable and would simplify maintenance of this package.

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

No branches or pull requests

1 participant