Get WhiteboxRaster data type
Arguments
- x
Raster object of class WhiteboxRaster. See
wbw_read_raster()
for more details.
Examples
f <- system.file("extdata/dem.tif", package = "wbw")
wbw_read_raster(f) |>
wbw_data_type()
#> [1] "RasterDataType.F32"
f <- system.file("extdata/dem.tif", package = "wbw")
wbw_read_raster(f) |>
wbw_is_int()
#> [1] FALSE
f <- system.file("extdata/dem.tif", package = "wbw")
wbw_read_raster(f) |>
wbw_is_float()
#> [1] TRUE
f <- system.file("extdata/dem.tif", package = "wbw")
wbw_read_raster(f) |>
wbw_is_rgb()
#> [1] FALSE