get the raster type (if any) of a stars object

st_raster_type(x)

Arguments

x

object of class stars

Value

one of NA (if the object does not have raster dimensions), "curvilinear", "rectilinear", "affine", or "regular"

Examples

tif = system.file("tif/L7_ETMs.tif", package = "stars") x = read_stars(tif) st_raster_type(x)
#> [1] "regular"