-
Notifications
You must be signed in to change notification settings - Fork 23
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
NETCDF writing and reading issues #17
Comments
Hi @ShinyFabio, thanks for bringing this to my attention. I believe this may have to do with For the time being, could you let me know your package versions? You may have to return to earlier versions for this to be fixed. To address your second part of your question, the correct variable name is "2m_dewpoint_temperature" (notice there is no underscore between dew and point). No idea how this download call worked in the first place. Cheers, |
Oh, you're right I added another underscore! Unfortunately, it still doesn't work. Now both
My KrigR version is 0.1.2 (I installed it three days ago). |
Please provide the versions of all loaded packages. |
Sure. Here's my sessionInfo
|
Right- thank you for that. As the issue traces back to the saving of a NETCDF file, this must be an issue with the new version of the ncdf4 package. Can you try to install a previous version of ncdf4? Version 1.19 works for me (as seen in my environment below). Obviously, this suggestion is a bandaid fix and I will continue to investigate solutions. R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] KrigR_0.1.2 httr_1.4.2 stars_0.5-5 abind_1.4-5 fasterize_1.0.3
[6] sf_1.0-5 lubridate_1.8.0 automap_1.0-14 doSNOW_1.0.19 snow_0.4-4
[11] doParallel_1.0.16 iterators_1.0.13 foreach_1.5.1 rgdal_1.5-28 raster_3.5-11
[16] sp_1.4-6 stringr_1.4.0 keyring_1.3.0 ecmwfr_1.3.0 ncdf4_1.19
loaded via a namespace (and not attached):
[1] Rcpp_1.0.10 lattice_0.20-41 FNN_1.1.3 prettyunits_1.1.1 class_7.3-17
[6] ps_1.6.0 zoo_1.8-9 utf8_1.2.2 assertthat_0.2.1 gstat_2.0-8
[11] rprojroot_2.0.2 sdm_1.1-8 R6_2.5.1 plyr_1.8.6 e1071_1.7-9
[16] pillar_1.6.4 rlang_0.4.10 curl_4.3.2 callr_3.7.0 desc_1.4.0
[21] devtools_2.4.3 proxy_0.4-26 compiler_4.0.2 pkgconfig_2.0.3 pkgbuild_1.3.1
[26] tidyselect_1.1.1 tibble_3.1.6 intervals_0.15.2 codetools_0.2-16 fansi_0.5.0
[31] reshape_0.8.8 spacetime_1.2-5 crayon_1.4.2 dplyr_1.0.7 withr_2.4.3
[36] grid_4.0.2 lwgeom_0.2-8 lifecycle_1.0.1 DBI_1.1.2 magrittr_2.0.1
[41] units_0.7-2 KernSmooth_2.23-17 cli_3.1.0 stringi_1.7.6 cachem_1.0.6
[46] fs_1.5.2 remotes_2.4.2 testthat_3.1.1 vctrs_0.3.8 ellipsis_0.3.2
[51] xts_0.12.1 generics_0.1.1 tools_4.0.2 glue_1.4.2 purrr_0.3.4
[56] processx_3.5.2 pkgload_1.2.4 fastmap_1.1.0 terra_1.7-18 sessioninfo_1.2.2
[61] classInt_0.4-3 memoise_2.0.1 usethis_2.1.5 |
Hi, I tried to install another version of ncdf4 but I could install only v1.21 (the actual version) and v1.20 (but KrigR doesn't work with this version too). I tested up to the v1.16 but they don't install (some errors during compilation). I tried also downloading the tar.gz and install locally but same. |
Hi - that's a bummer. As this is a netcdf/ncdf4 issue, I am afraid there is no way to resolve this directly in Unfortunately, Cheers, |
I've just spent few hours trying to help you. Your code returns the error when running the following line:
After a while I've found another function inside the terra package called However this is a workaround. The error comes from the terra/raster/ncdf4 packages. I opened an issue on the raster github page. |
Trial fix for netcdf saving issue (#17)
Hi, thank you very much for going the extra mile to resolving this issue! I really appreciate the help. I have made the necessary changes and this issue should no longer persist. |
Hi, I just want to inform you that the issue with |
Hi,
I was trying to use your package to downscale the ERA5 dew point temperature. I need a monthly product for 2020 and 2022 hence my code just for January 2020 is the following:
But that's the log:
So I tried to use first the download function and I had another error:
I don't understand the problem. For the variable name, I checked the API code from here. https://cds.climate.copernicus.eu/cdsapp#!/dataset/reanalysis-era5-land?tab=form
The text was updated successfully, but these errors were encountered: