For internal use. Flexible function for unwrapping SpatRasters or lists of SpatRasters but only when they exist.

unwrap_terra(object)

Arguments

object

The SpatRaster or the list of SpatRasters to pack