From e48024d31d53ba05682ff7908d9bfd2c86a78e3e Mon Sep 17 00:00:00 2001 From: David LeBauer Date: Mon, 21 Sep 2026 17:17:36 -0700 Subject: [PATCH] deduplicate met writes --- workflow/01_ERA5_nc_to_clim.R | 1 + 1 file changed, 1 insertion(+) diff --git a/workflow/01_ERA5_nc_to_clim.R b/workflow/01_ERA5_nc_to_clim.R index 5abc18c..f3cf8d9 100755 --- a/workflow/01_ERA5_nc_to_clim.R +++ b/workflow/01_ERA5_nc_to_clim.R @@ -82,6 +82,7 @@ loc_info <- read.csv(args$site_info_file) |> ((abs(lon) + 0.25) %/% 0.5) * 0.5, "W" ) ) |> + dplyr::distinct(ERA5_grid_cell, .keep_all = TRUE) |> dplyr::cross_join(data.frame(ens_id = 1:10)) if (!dir.exists(args$site_sipnet_met_path)) {