Skip to content

Commit 9607887

Browse files
committed
Fix clc / efforts
1 parent 0030f95 commit 9607887

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/dwf_clc_plot.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ clc_plot <- function(clc_name, clc_map, eu_map, crosswalk, path_jpeg) {
182182
stringr::str_sub(labels$label[YY], 1, 70), ".jpeg") %>%
183183
stringr::str_replace_all("/", "_") %>%
184184
stringr::str_replace_all(" ", "_") %>%
185+
stringr::str_remove_all(",") %>%
185186
stringr::str_to_lower() %>%
186187
fs::path(path_jpeg_2, .)
187188
tile_path_nozero <- stringr::str_replace(
@@ -266,6 +267,7 @@ clc_plot <- function(clc_name, clc_map, eu_map, crosswalk, path_jpeg) {
266267
stringr::str_sub(labels$label[YY], 1, 70), ".jpeg") %>%
267268
stringr::str_replace_all("/", "_") %>%
268269
stringr::str_replace_all(" ", "_") %>%
270+
stringr::str_remove_all(",") %>%
269271
stringr::str_to_lower() %>%
270272
fs::path(path_jpeg_2_free, .)
271273
tile_path_free_nozero <- stringr::str_replace(

R/dwf_efforts_request.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ efforts_request <- function(
174174
erase_after = download_details$eraseAfter,
175175
download_link = download_details$downloadLink,
176176
size = download_details$size,
177-
total_records = download_details$total_records,
177+
total_records = download_details$totalRecords,
178178
n_datasets = download_details$numberDatasets,
179179
status = download_details$status,
180180
# size of data in megabytes
@@ -192,7 +192,7 @@ efforts_request <- function(
192192
dplyr::mutate(citation = purrr::map_chr(request, attr, "citation"))
193193

194194
ecokit::cat_time("Requesting efforts data was finished", level = 2L)
195-
195+
196196
# # ..................................................................... ###
197197

198198
# Save efforts request data ------

0 commit comments

Comments
 (0)