Skip to content

Commit 56651fb

Browse files
committed
Fix chelsa and clc
1 parent c8442ba commit 56651fb

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

R/dwf_chelsa_process.R

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -329,20 +329,18 @@ chelsa_process <- function(
329329
attempt <- attempt + 1
330330
try_n <- try(
331331
expr = {
332-
333-
# Suppress GDAL warnings
334-
Sys.setenv("CPL_LOG" = "ERROR")
335-
336-
# suppress known warning
337-
# Using ecokit::quietly did not help to avoid these warnings
332+
# known warning
338333
# https://github.com/rspatial/terra/issues/1212
339334
# https://github.com/rspatial/terra/issues/1832
340335
# https://stackoverflow.com/questions/78098166
341336

342-
IASDT.R::chelsa_project(
343-
metadata = dplyr::slice(chelsa_to_process, x),
344-
env_file = env_file, compression_level = compression_level)
345-
337+
ecokit::quietly(
338+
IASDT.R::chelsa_project(
339+
metadata = dplyr::slice(chelsa_to_process, x),
340+
env_file = env_file, compression_level = compression_level),
341+
"is not a Latitude/Y dimension.",
342+
"is not a Longitude/X dimension.")
343+
346344
"Okay"
347345
},
348346
silent = TRUE)

0 commit comments

Comments
 (0)