Skip to content

Commit 0030f95

Browse files
committed
Fix chelsa
1 parent 92f4ee3 commit 0030f95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/dwf_clc_plot.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ clc_plot <- function(clc_name, clc_map, eu_map, crosswalk, path_jpeg) {
179179

180180
tile_path <- paste0(
181181
"perc_cover_", file_prefix, "_", level_text, "_",
182-
labels$label[YY], ".jpeg") %>%
182+
stringr::str_sub(labels$label[YY], 1, 70), ".jpeg") %>%
183183
stringr::str_replace_all("/", "_") %>%
184184
stringr::str_replace_all(" ", "_") %>%
185185
stringr::str_to_lower() %>%
@@ -263,11 +263,10 @@ clc_plot <- function(clc_name, clc_map, eu_map, crosswalk, path_jpeg) {
263263

264264
tile_path_free <- paste0(
265265
"perc_cover_", file_prefix, "_", level_text, "_",
266-
labels$label[YY], ".jpeg") %>%
266+
stringr::str_sub(labels$label[YY], 1, 70), ".jpeg") %>%
267267
stringr::str_replace_all("/", "_") %>%
268268
stringr::str_replace_all(" ", "_") %>%
269269
stringr::str_to_lower() %>%
270-
stringr::str_sub(1, 35) %>%
271270
fs::path(path_jpeg_2_free, .)
272271
tile_path_free_nozero <- stringr::str_replace(
273272
tile_path_free, ".jpeg$", "_nozero.jpeg")

0 commit comments

Comments
 (0)