Skip to content

Commit

Permalink
rm warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmseddy committed Oct 30, 2023
1 parent 6f81b21 commit 497fcb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/makeLociList.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ makeLociList <- function(ras, pts, idsCol = "FIRE_ID", dateCol = "YEAR", sizeCol
)
#Check if loci sizes are numeric, otherwise the rescaling fails
if (!inherits(x = lociDF$size, what = "numeric")){
warning(paste0("Fire sizes were classified as ", class(lociDF$size),". Converting to numeric."))
#TODO: #this is a terra::extract issue as of 31/10/2023 - check if issue persists at a later date
lociDF[, size := as.numeric(size)]
}
set(lociDF, NULL, "size", round(lociDF$size / (prod(res(ras)) / divisor), 0))
Expand Down

0 comments on commit 497fcb0

Please sign in to comment.