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

Error with extraction of wind variable #6

Closed
howardvanmeer opened this issue Feb 6, 2024 · 3 comments
Closed

Error with extraction of wind variable #6

howardvanmeer opened this issue Feb 6, 2024 · 3 comments

Comments

@howardvanmeer
Copy link

Dear David

It's me again, I downloaded all de files but when a want to extract "wind" from netcdf daily files I get de following error:

****dk_wind <- ag5_extract(coords = c(9.546480, 56.437384),

  •                    dates = c("2015-01-01", "2023-12-31"), variable = "10m_wind_speed", statistic="24_hour_mean",path = "D:/ERA5")
    

Error in get_file_path(date_to_search = X, variable, statistic, time, :
File not found****

All the other variables i can extract without any problem. My netcdf files are stored on a external drive because of size but that didn't give any problems for the other variables. What is the correct way for Variable and statistic for wind data sets?

Kind regards,
Howard

@dbrownf
Copy link
Member

dbrownf commented Feb 6, 2024

Hi Howard,

Thanks for pointing this out. There were some errors in both the documentation and the code. I fixed them in the current development version.

Could you please install the development version and try again. In your example the variable and statistic parameters now should be:

dates = c("2015-01-01", "2023-12-31"), 
variable = "Wind-Speed-10m", 
statistic = "24_hour_mean",
path = "D:/ERA5")

David

@howardvanmeer
Copy link
Author

Hi David with that it worked! Only statistic must be "Mean" NOT "24_hour_mean"
Thank you very much!
Howard

@dbrownf
Copy link
Member

dbrownf commented Feb 6, 2024

Great! Yes, I forgot to change the statistic as well. Thanks
Should be like this:

dates = c("2015-01-01", "2023-12-31"), 
variable = "Wind-Speed-10m", 
statistic = "Mean",
path = "D:/ERA5")

@dbrownf dbrownf closed this as completed Feb 6, 2024
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