Skip to content

Commit

Permalink
length to sum check
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejohnson51 committed Nov 21, 2023
1 parent 9254fcc commit f71b450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/climater_filter.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ climater_filter <- function(id = NULL,
gid = sapply(1:nrow(catalog), function(x) {
suppressWarnings({
tryCatch({
length(terra::is.related(make_vect(catalog[x,]),
sum(terra::is.related(make_vect(catalog[x,]),
terra::project(terra::ext(AOI), crs(AOI), catalog$crs[x]),
"intersects")) > 0
}, error = function(e) {
Expand Down

0 comments on commit f71b450

Please sign in to comment.