Skip to content

Commit

Permalink
canopy height now crops any CRS
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidree committed Oct 3, 2024
1 parent 7a0a45b commit 7f6b4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/canopy-height.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ fd_canopy_height <- function(x = NULL,
}

# 5. Manage crop
if (crop) ch_sr <- crop(ch_sr, x, ...)
if (crop) ch_sr <- terra::crop(ch_sr, xwgs84, ...)

# 6. Return
return(ch_sr)
Expand Down

0 comments on commit 7f6b4b9

Please sign in to comment.