FUNCTION_DESCRIPTION

convert_rastdtype(dtype_string, type)

Arguments

dtype_string

character data type string (e.g., Int16, etc.)

type

character - either "gdal" or "raster"

Value

tibble containing the representation of the data type both for gdal and raster

Examples

in_dtype <- "INT1U" convert_rastdtype(in_dtype, "raster")
#> # A tibble: 1 x 2 #> gdal raster #> <chr> <chr> #> 1 Byte INT1U
in_dtype <- "Float64" convert_rastdtype(in_dtype, "gdal")
#> # A tibble: 1 x 2 #> gdal raster #> <chr> <chr> #> 1 Float64 FLT8S