R/stars.R
st_raster_type.Rd
get the raster type (if any) of a stars object
st_raster_type(x)
object of class stars
stars
one of NA (if the object does not have raster dimensions), "curvilinear", "rectilinear", "affine", or "regular"
NA
"curvilinear"
"rectilinear"
"affine"
"regular"
tif = system.file("tif/L7_ETMs.tif", package = "stars") x = read_stars(tif) st_raster_type(x) #> [1] "regular"