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

Only getting data up until 2023 #147

Closed
rajibshibly opened this issue Jan 27, 2025 · 5 comments
Closed

Only getting data up until 2023 #147

rajibshibly opened this issue Jan 27, 2025 · 5 comments

Comments

@rajibshibly
Copy link

I was wondering if there has been any recent change in the weathercan package.

I am using R 4.1.1 32 bit. I am trying to download 2024 and 2025 hourly and daily climate data for the province of Newfoundland and Labrador.

However using stations() command I found that the 'end' field for all stations (daily and hourly) is showing 2023.

Just wondering if you instruct me how to obtain the 2024 and 2025 data.

Regards,

Shibly

@steffilazerte
Copy link
Member

steffilazerte commented Jan 27, 2025

Hi Shibly, sometimes you need to update your stations meta data (especially if it's been a while), you can run stations_dl() to update the local list of stations, which should hopefully give you the full ranges. Let me know how it goes!

@rajibshibly
Copy link
Author

Ok I got the latest data for 2024 and 2024. But my question is even after updating stations_dl(), the "end" field for stations() is still showing 2023. And this phenomenon is observed in both hourly and daily. I even expanded to identify all stations for Canada and the "end" field is showing 2023.

@steffilazerte
Copy link
Member

Hmm, good catch, it looks like the stations inventory list where weathercan was looking isn't getting updated. I've changed the link so that it should get the up-to-date stations inventory.

Note that this should have only affected the lists of what data is available, the actual download functions would have downloaded the full date range available.

Still, I'm glad you noticed this, thank you 😁 I've added a test to alert me if the list gets out of date in future.

Could you do me the favour of testing this? You can install the development version with either remotes or pak (which ever package you have installed, if neither I recommend pak).

pak::pkg_install("ropensci/weathercan@dev")

Or

remotes::install_github("ropensci/weathercan@dev")

If all is as it should be, I'll make an official release soon.

@rajibshibly
Copy link
Author

Yes you are correct the climate data is indeed up to date with 2025 data.

I shall check it out sometimes and let you know.

Thanks

@steffilazerte
Copy link
Member

Closed in #157

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

2 participants