Learn R Programming

terra (version 1.8-21)

is.flipped: Check for rotation

Description

Check if a SpatRaster is "flipped" vertically, and may need to be adjusted with flip before it can be used.

Usage

# S4 method for SpatRaster
is.flipped(x)

Value

logical. One value for each raster data *source*

Arguments

x

SpatRaster

See Also

flip, is.rotated

Examples

Run this code
r <- rast(nrows=10, ncols=10)
is.flipped(r)

Run the code above in your browser using DataLab