Skip to content

Commit

Permalink
now actually switching
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikKusch committed Jun 25, 2024
1 parent 0841b8c commit 571ec1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/Temporal.R
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Temporal.Aggr <- function(CDS_rast, BaseResolution, BaseStep,
# AggrIndex <- ceiling(LayerMatches/TStep)
# }

if(length(unique(AggrIndex)) == 0){ ## this is to avoid a warning message thrown by terra
if(length(unique(AggrIndex)) == 1){ ## this is to avoid a warning message thrown by terra
Final_rast <- tapp(x = CDS_rast,
cores = Cores,
fun = FUN)
Expand Down

0 comments on commit 571ec1e

Please sign in to comment.