trim_na | R Documentation |
The trim function from the terra package only remove cols and rows full of NA. This function remove all cols and rows with NA on the periphery. Useful to get a nicely formatted raster grid after reprojection.
trim_na(rast, verbose = F)
rast |
input raster (SpatRaster) |
verbose |
flag (default FALSE) to switch |
a trimmed raster (SpatRaster)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.