get the raster type (if any) of a stars object
st_raster_type(x, dimension = character(0))
object of class
optional: numbers or names of dimension(s) to get per-dimension type
dimension is not specified, return the spatial raster type:
NA (if the object does not have raster dimensions),
In case dimension(s) are specified, return one of
(irregular but numeric), or
"discrete" (anything else).
"affine" only refer to
the relationship between a pair of spatial (raster) dimensions.