ErikKusch / KrigR

An R Package for downloading, preprocessing, and statistical downscaling of the European Centre for Medium-range Weather Forecasts ReAnalysis 5 (ERA5) family provided by the European Centre for Medium‐Range Weather Forecasts (ECMWF).
Other
97 stars 23 forks source link

Error when reading NetCDF data #29

Closed BB1464 closed 1 year ago

BB1464 commented 1 year ago

Good day @ErikKusch, I was playing around with your package to download satellite data from the API, I have registered for my user name and password for the API but I keep getting this error when I use the download_era function from your pakage:

Error message

Error in R_nc4_open: No such file or directory Error in ncdf4::nc_open(filename, readunlim = FALSE, suppress_dimvals = TRUE) : Error in nc_open trying to open file C:/Users/USER/Desktop/visualize-temperature-with-r/weather/0001_poland_2m_temperature.nc (return_on_error= FALSE )

ErikKusch commented 1 year ago

Hiya, please see issue #17. This is an issue that was created by an update to underlying ncdf4 libraries. With commit #21, I fixed this issue. Please reinstall KrigR. This has been shown to resolve this error also in issue #28.

Cheers, Erik

BB1464 commented 1 year ago

Thank you very much @ErikKusch , I was able to fix this by downloading the dataset manually and then I now try using the krigr package, then I discovered that all the error is no longer coming again. Your package is very good!!!